Makefile revision 432b5019a1852dc850e776caa268fef30ce0d7cc
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# Makefile
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# $Header$
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# Year: 2004
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# This Makefile will compile the new hets system and provides also
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# targets for test programs during implementation phases.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# !!! Note: This makefile is written for GNU make !!!
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# (gmake on solaris)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maederall: hets
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## Some varibles, which control the compilation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
43b4c41fbb07705c9df321221ab9cb9832460407Christian MaederINCLUDE_PATH = ghc fgl hxt
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederCOMMONLIB_PATH = Common/Lib Common/ATerm fgl/Data/Graph \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder fgl/Data/Graph/Inductive fgl/Data/Graph/Inductive/Internal \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder fgl/Data/Graph/Inductive/Monad fgl/Data/Graph/Inductive/Query
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederCLEAN_PATH = . utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder Logic CASL CASL/CCC Syntax Static GUI HasCASL Haskell Modal CoCASL COL \
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder CspCASL ATC ToHaskell Proofs Comorphisms Isabelle Driver $(INCLUDE_PATH) \
32a973e501a8c0d8d43e02c160419a50d9d02c76René Wagner Haskell/Hatchet Hatchet Taxonomy CASL_DL SPASS $(PFE_PATHS)
ce8b15da31cd181b7e90593cbbca98f47eda29d6Till Mossakowski
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederempty =
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederspace = $(empty) $(empty)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder## set ghc imports properly for your system
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederGHC_IMPORTS = `$(HC) --print-libdir`/imports
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederDRIFT_ENV = \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder DERIVEPATH=.:ghc:$(GHC_IMPORTS):$(subst $(space),:,$(PFE_PATHS))
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder# override on commandline for other architectures
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederINSTALLDIR = \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichDRIFT_deps = utils/DrIFT-src/*hs
eee4b2ee739f163e09d6af6e45c025681e6c01a0Christian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps) Common/Utils.hs
4d56f2fa72e4aec20eb827c11ed49c8cbb7014bdChristian MaederINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
eee4b2ee739f163e09d6af6e45c025681e6c01a0Christian Maeder Common/Lib/Pretty.hs Common/Keywords.hs Common/Lib/Set.hs \
eee4b2ee739f163e09d6af6e45c025681e6c01a0Christian Maeder Common/Lib/Map.hs Common/Lib/Rel.hs Common/Lib/State.hs Common/Id.hs \
eee4b2ee739f163e09d6af6e45c025681e6c01a0Christian Maeder Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs CASL/ShowMixfix.hs \
eee4b2ee739f163e09d6af6e45c025681e6c01a0Christian Maeder CASL/Utils.hs Common/Lexer.hs Common/Token.hs Common/Anno_Parser.hs \
eee4b2ee739f163e09d6af6e45c025681e6c01a0Christian Maeder Common/GlobalAnnotations.hs Common/PrettyPrint.hs \
eee4b2ee739f163e09d6af6e45c025681e6c01a0Christian Maeder Common/Print_AS_Annotation.hs Common/PPUtils.hs CASL/LiteralFuns.hs \
eee4b2ee739f163e09d6af6e45c025681e6c01a0Christian Maeder CASL/Print_AS_Basic.hs Common/AnnoState.hs CASL/Formula.hs \
d4892fa7401ceef014ea59d2d900773eaf88fcbdChristian Maeder CASL/OpItem.hs CASL/SortItem.hs CASL/Inject.hs Common/Result.hs \
eee4b2ee739f163e09d6af6e45c025681e6c01a0Christian Maeder Common/ConvertLiteral.hs Common/Earley.hs CASL/MixfixParser.hs \
eee4b2ee739f163e09d6af6e45c025681e6c01a0Christian Maeder CASL/Parse_AS_Basic.hs CASL/Sign.hs CASL/Overload.hs \
eee4b2ee739f163e09d6af6e45c025681e6c01a0Christian Maeder CASL/StaticAna.hs Modal/AS_Modal.hs Modal/Parse_AS.hs \
eee4b2ee739f163e09d6af6e45c025681e6c01a0Christian Maeder Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHC = ghc
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPERL = perl
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHAPPY = happy -sgca
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederDRIFT = utils/DrIFT
e593b89bfd4952698dc37feced21cefe869d87a2Christian MaederINLINEAXIOMS = utils/outlineAxioms
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHADDOCK = haddock
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederCPPP = cpp
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHC_WARN = -Wall
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHC_FLAGS = $(HC_WARN) -fglasgow-exts -fno-monomorphism-restriction \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder -fallow-overlapping-instances -fallow-undecidable-instances
a2d6702f18737cc5fff8e8631c08f221f8375c4bChristian Maeder# -ddump-minimal-imports
c6fcd42c6d6d9dae8c7835c24fcb7ce8531a9050Christian Maeder# flags also come in via ../uni/uni-package.conf
31c49f2fa23d4ac089f35145d80a224deb6ea7e4Till Mossakowski# but added it here in case of compilation without uni
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederHC_INCLUDE = $(addprefix -i, $(INCLUDE_PATH))
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maederlogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL Hatchet CASL_DL
8cacad2a09782249243b80985f28e9387019fe40Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
d3ae0072823e2ef0d41d4431fcc768e66489c20eChristian Maederifneq ($(strip $(UNI_PACKAGE_CONF)),)
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder -package uni-server -DUNI_PACKAGE
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# some modules from uni for haddock
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# if uni/server is included also HaXml sources are needed
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederuni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder ../uni/reactor ../uni/util ../uni/posixutil
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(wildcard ../uni/htk/haddock/*/*.hs)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederendif
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder### list of directories to run checks in
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian MaederTESTDIRS += Common CASL HasCASL Haskell/Hatchet/examples
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPFE_TOOLDIR = $(wildcard ../programatica/tools)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederifneq ($(strip $(PFE_TOOLDIR)),)
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/transforms base/transforms/Deriving property \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/syntax property/AST property/transforms \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/TI property/defs property/parse2 property/parse2/Parser
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederPFE_PATH = $(addprefix -i, $(PFE_PATHS))
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederPFE_FLAGS = -package data -package text $(PFE_PATH) -DPROGRAMATICA
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederLEX_DIR = $(PFE_TOOLDIR)/base/parse2/Lexer
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder$(LEX_DIR)/HsLex.hs: $(LEX_DIR)Gen/HsLexerGen
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $< > $@
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(LEX_DIR)/HsTokens.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(HC) --make -O -package data \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder -i$(PFE_TOOLDIR)/base/tests/HbcLibraries \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder -i$(PFE_TOOLDIR)/base/lib \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $@.hs -o $@
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maederlogics += Haskell
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederderived_sources += Haskell/PreludeString.hs $(LEX_DIR)/HsLex.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(LEX_DIR)Gen/HsLexerGen
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Haskell/ProgramaticaPrelude.hs
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder## rule for appendHaskellPreludeString
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(APPENDPRELUDESTRING)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(APPENDPRELUDESTRING) < $< > $@
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder HsModule HsName HsLiteral HsIdent
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/defs/UniqueNames base/Modules/TypedIds base/TI/TiKinds \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/syntax/PropSyntaxStruct
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederHaskell_files = $(addsuffix .hs, \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder## rule for ATC generation
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) ATC/Haskell.header.hs \
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maeder utils/genRules
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder utils/genRules -r $(rule) -o Haskell -h ATC/Haskell.header.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(Haskell_files)
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian MaederTESTDIRS += ToHaskell
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederendif
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maederhappy_files += Haskell/Hatchet/HsParser.hs
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### Profiling (only for debugging)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### Attention every module must be compiled with profiling or the linker
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### cannot link the various .o files properly. So after switching on
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### Profiling, do an 'gmake real_clean; gmake'
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### and comment out HC_PACKAGE variable definition above.
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### Comment in the following line for switching on profiling.
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder#HC_PROF = -prof -auto-all
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHCI_OPTS = $(HC_FLAGS) $(HC_INCLUDE) $(HC_PACKAGE) $(PFE_FLAGS)
e8896c7bb416c4ced255a4d500808c2ea5a6869aChristian MaederHC_OPTS = $(HCI_OPTS) $(HC_PROF) -DHATCHET -DCASLEXTENSIONS
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederDRIFT_OPTS = +RTS -K10m -RTS
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
0c355dd0b739631ee472f9a656e266be27fa4e64Christian Maeder## sources for hets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
d272062059eea4d7479e1c6e8517469f02f61287Christian Maedernon_sources = Common/LaTeX_maps.svmono.hs CspCASL/Main.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Static/LogicStructured.hs Common/CaslLanguage.hs ./Test.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederSOURCE_PATHS = $(COMMONLIB_PATH) $(CLEAN_PATH)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maedersources = hets.hs $(filter-out $(non_sources), \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(wildcard $(addsuffix /[A-Z]*hs, $(SOURCE_PATHS))))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder#endif
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederobjects = $(sources:%.hs=%.o)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
9df11f85fd7f8c4745d64464876e84ec4e263692Christian Maederdrifted_files = Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs Syntax/AS_Structured.hs \
e8896c7bb416c4ced255a4d500808c2ea5a6869aChristian Maeder HasCASL/As.hs \
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettich Modal/AS_Modal.hs CoCASL/AS_CoCASL.hs COL/AS_COL.hs CASL_DL/AS_CASL_DL.hs\
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder $(gendrifted_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettichgenrule_header_files = $(wildcard ATC/*.header.hs)
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettich
0799b5dc3f06d2640e66e9ab54b8b217348fd719Christian Maederatc_files = Common/AS_Annotation.der.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maeder Static/DevGraph.hs Proofs/Proofs.hs
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederatc_der_files = $(foreach file, $(atc_files), \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder CASL/AS_Basic_CASL.der.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHasCASL_files = HasCASL/As.hs HasCASL/Le.hs HasCASL/Morphism.hs \
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maeder HasCASL/Sublogic.hs
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maeder
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian MaederIsabelle_files = Isabelle/IsaSign.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederCOL_files = COL/AS_COL.hs COL/COLSign.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederCspCASL_files = CspCASL/AS_CSP_CASL.hs CspCASL/SignCSP.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHatchet_files = Haskell/Hatchet/AnnotatedHsSyn.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Haskell/Hatchet/MultiModuleBasics.hs Haskell/Hatchet/HsSyn.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Haskell/Hatchet/Representation.hs Haskell/Hatchet/Class.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Haskell/Hatchet/KindInference.hs Haskell/Hatchet/Env.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Hatchet/HatParser.hs
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus LuettichCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettich
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maedergenerated_rule_files = $(atc_der_files) $(atc_logic_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maedergendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederinline_axiom_files = Comorphisms/CASL2PCFOL.hs Comorphisms/PCFOL2FOL.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Comorphisms/Modal2CASL.hs Comorphisms/CASL2TopSort.hs
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maedergen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maederderived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(inline_axiom_files) Modal/ModalSystems.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# sources that have {-# OPTIONS -cpp #-}
277a88cd363c7e26d92d80583bd74f3735c7cb75Christian Maedercpp_sources = Haskell/Hatchet/FiniteMaps.hs Common/DynamicUtils.hs \
e8896c7bb416c4ced255a4d500808c2ea5a6869aChristian Maeder Isabelle/Logic_Isabelle.hs Isabelle/CreateTheories.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder Proofs/Proofs.hs hets.hs CASL/CCC/FreeTypes.hs \
e2d849b4152a234bc0afaa2ab3a7c17d28de7565Christian Maeder Comorphisms/LogicList.hs Comorphisms/LogicGraph.hs $(happy_files)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maedernondoc_sources = $(wildcard utils/DrIFT-src/*.hs) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(wildcard utils/DrIFT-src/*.lhs) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(wildcard utils/GenerateRules/*.hs) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(wildcard utils/InlineAxioms/*.hs) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(cpp_sources) $(pfe_sources) $(gen_inline_axiom_files) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(genrule_header_files) $(generated_rule_files) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Modal/GeneratePatterns.inline.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Haskell/PreludeString.append.hs Haskell/ProgramaticaPrelude.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder hxt/HXT.hs hxt/Net.hs $(patsubst %.hs, %.der.hs, $(drifted_files))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# this variable holds the modules that should be documented
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederdoc_sources = $(filter-out $(nondoc_sources), $(sources)) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(patsubst %.hs, %.hspp, $(cpp_sources)) $(uni_sources)
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnketax_sources = Taxonomy/AbstractGraphView.hs Taxonomy/MMiSSOntology.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Taxonomy/MMiSSOntologyGraph.hs Taxonomy/OntoParser.hs
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maedertax_objects = $(patsubst %.hs, %.o, $(tax_sources))
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### targets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder.PHONY : all hets-opt hets-optimized clean d_clean real_clean bin_clean \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder lib_clean distclean check capa hacapa h2h clean_genRules genRules \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder taxonomy count doc apache_doc post_doc4apache \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder derivedSources install_hets install release
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
7c99e334446bb97120e30e967baeeddfdd1278deKlaus Luettich
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederhets: $(sources) $(derived_sources)
0c355dd0b739631ee472f9a656e266be27fa4e64Christian Maeder $(HC) --make -o $@ hets.hs $(HC_OPTS)
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederhets-opt:
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(MAKE) distclean
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder $(MAKE) derivedSources
b10267ae0a6523b73113fc2dee9ea628266fce60Christian Maeder $(MAKE) real_clean
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder $(MAKE) hets-optimized
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederhets-optimized: $(derived_sources)
0c355dd0b739631ee472f9a656e266be27fa4e64Christian Maeder $(HC) --make -O -o hets hets.hs $(HC_OPTS)
ed9207cf24e96b0d6f59985822054ae28cb69b2eChristian Maeder strip hets
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maederhets-old: $(objects)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) $@
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder $(HC) -o hets $(HC_OPTS) $(objects)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettichhets.cgi: $(sources) GUI/hets_cgi.hs
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder ghc --make -package-conf /home/luettich/ghc-pkg/package.conf \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder -package WASH-CGI GUI/hets_cgi.hs -o hets.cgi $(HC_INCLUDE) \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(HC_FLAGS) -O
5c69cef4668bbd959d721668313a779126014d1eKlaus Luettich strip hets.cgi
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maedertaxonomy: Taxonomy/taxonomyTool.hs $(tax_sources)
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder $(HC) --make -o Taxonomy/taxonomyTool $< -ifgl $(HC_OPTS)
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder###############################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### TAGS files for (x)emacs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# load them with "M-x" "visit-tags-table" from
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# "HetCATS/hetcats.TAGS"
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# use "M-." to search for a tag
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# !!Beware this is somewhat instable, because it uses an absolute path!!
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhetcats.TAGS: $(sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder /home/ger/linux/ghc-5.04.2/bin/i386-unknown-linux/hasktags \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(sources); mv TAGS $@; mv tags hetcats.tags
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder###############################
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich### count lines of code
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettichcount: $(sources)
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich wc -l $(sources)
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich###############################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### Documentation via haddock
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maederdoc: docs/index.html
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder# generate haddock documentation with links to sources
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederdocs/index.html: $(doc_sources)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(HADDOCK) $(doc_sources) -o docs -h -v \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder -i docs/base.haddock -i docs/parsec.haddock -s ../ \
3a7788e09dd23b364a46c9488cbd1522369113dbChristian Maeder -t 'Hets - the Heterogeneous Tool Set' \
3a7788e09dd23b364a46c9488cbd1522369113dbChristian Maeder -p Hets-Haddock-Prologue.txt
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder# sources are not copied here
ef67402074be14deb95e4ff564737d5593144130Klaus Luettichapache_doc:
5958fabb264ec3f5b2125ac5602121bd34814a79Klaus Luettich $(RM) docs/*.*
c9e197862d9d8ef2585270dd08f5194b3aed4a9dKlaus Luettich cvs up -d ; echo "CVS exited with: " $$?
e7e1ab2ac3f1fded8611bb92ae00e8f3b8c693fbKlaus Luettich $(MAKE) hets-opt
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich $(MAKE) doc
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich $(MAKE) post_doc4apache
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich $(MAKE) o_clean
d784803f9c752667b4fcf7393d698002bedf3f89Klaus Luettich $(MAKE) hets.cgi
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettichpost_doc4apache:
725a68ec81cba9b8aa8647bebfb5baa449803e7eKlaus Luettich $(PERL) utils/post_process_docs.pl docs \
d579f5b263e6c73d466c265f2fbfd45b0e69ca64Klaus Luettich 'Common.Lib.Map.html:Common.Lib._Map.html'
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder cp docs/*.* a-docs/
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder###############################
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder### release management
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederderivedSources: $(derived_sources)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettichutils/DrIFT: $(DRIFT_deps)
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT && \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder strip ../DrIFT)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettichutils/genRules: $(GENERATERULES_deps)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder (cd utils/GenerateRules; \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder GenerateRules.hs -o ../genRules && strip ../genRules)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder$(INLINEAXIOMS): $(INLINEAXIOMS_deps)
43bb71dfe7ec405f563864d57c1cacdaa8ce9a80Christian Maeder $(HC) --make utils/InlineAxioms/InlineAxioms.hs $(HC_WARN) $(HC_PROF) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder -i../.. -o $(INLINEAXIOMS)
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder strip $(INLINEAXIOMS)
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maederrelease:
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(RM) -r HetCATS
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder cvs -d :pserver:cvsread@cvs-agbkb.informatik.uni-bremen.de:/repository\
9c3edf2b283c09d33b2820696886d1ed32fcadc8Christian Maeder co -P HetCATS
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(RM) -r uni
c22d75ec3ea1306219d1c09a5b3e8ff04f753ad6Christian Maeder if [ -d ../uni ] ; then ln -s ../uni uni ; fi
9c3edf2b283c09d33b2820696886d1ed32fcadc8Christian Maeder $(RM) -r programatica
c22d75ec3ea1306219d1c09a5b3e8ff04f753ad6Christian Maeder if [ -d ../programatica ] ; then \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder mkdir programatica; \
432b5019a1852dc850e776caa268fef30ce0d7ccChristian Maeder ln -s ../../programatica/tools programatica/tools ; fi \
432b5019a1852dc850e776caa268fef30ce0d7ccChristian Maeder (cd HetCATS; $(MAKE) derivedSources; $(MAKE) real_clean; \
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder cp Makefile Makefile.orig; \
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder cp ReleaseMakefile Makefile; \
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder ./clean.sh; \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder find . -name CVS -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder $(RM) clean.*)
94d3aa05411444596b44ede4531f05dd7ac20fdfChristian Maeder tar cvf HetCATS.tar HetCATS
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
8410667510a76409aca9bb24ff0eda0420088274Christian Maederinstall-hets:
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian Maeder chmod g+w hets
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian Maeder cp -p hets $(INSTALLDIR)/versions/hets-`cat version_nr`
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder cp -p version_nr $(INSTALLDIR)
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder (cd $(INSTALLDIR); $(RM) hets; \
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder ln -s versions/hets-`cat version_nr` hets; $(RM) version_nr)
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder
8410667510a76409aca9bb24ff0eda0420088274Christian Maederinstall: hets-opt install-hets
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus Luettich#############################
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus Luettich### ATC DrIFT-rule generation
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaedergenRules: $(generated_rule_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maedergen_atc_files = \
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maeder if [ -f ATC/$(basename $(basename $(notdir $(file)))).header.hs ]; \
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maeder then utils/genRules -r $(rule) -o ATC -h \
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maeder ATC/$(basename $(basename $(notdir $(file)))).header.hs $(file); \
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maeder else utils/genRules -r $(rule) -o ATC $(file); fi ;
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maeder
42aacf1f63419cbab63a88725e6a0b2c8776f101Christian Maeder$(atc_der_files): $(atc_files) $(genrule_header_files) utils/genRules
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(foreach file, $(atc_files), $(gen_atc_files))
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCASL/ATC_CASL.der.hs: $(CASL_files) utils/genRules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder utils/genRules -r $(rule) -o CASL $(CASL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) utils/genRules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder utils/genRules -r $(rule) -o HasCASL $(HasCASL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian MaederIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) utils/genRules
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maeder utils/genRules -r $(rule) -o Isabelle $(Isabelle_files)
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederModal/ATC_Modal.der.hs: $(Modal_files) utils/genRules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder utils/genRules -r $(rule) -o Modal $(Modal_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus LuettichCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) utils/genRules
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettich utils/genRules -r $(rule) -o CASL_DL $(CASL_DL_files)
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettich
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) utils/genRules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder utils/genRules -r $(rule) -o CoCASL $(CoCASL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCOL/ATC_COL.der.hs: $(COL_files) utils/genRules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder utils/genRules -r $(rule) -o COL $(COL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) utils/genRules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder utils/genRules -r $(rule) -o CspCASL $(CspCASL_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian MaederHatchet/ATC_Hatchet.der.hs: $(Hatchet_files) ATC/Hatchet.header.hs \
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maeder utils/genRules
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder utils/genRules -r $(rule) -o Hatchet -h ATC/Hatchet.header.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(Hatchet_files)
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederrule = ShATermConvertible
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
ba0ec5e897ef99d420c8c14c2374e0f32b7043dbKlaus Luettichclean_genRules:
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(RM) $(generated_rule_files) $(gendrifted_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder###############
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### clean up
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettichclean: bin_clean o_clean
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### removes *.hi and *.o in all include directories
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luetticho_clean:
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder for p in $(CLEAN_PATH) ; do \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder (cd $$p ; $(RM) *.hi *.o *.hspp) ; done
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder### remove binaries
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maederbin_clean:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) hets
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(RM) test_parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) CASL/capa
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) HasCASL/hacapa
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maeder $(RM) Haskell/hapa
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski $(RM) Haskell/hana
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maeder $(RM) Haskell/wrap
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder $(RM) ToHaskell/h2h
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder $(RM) Syntax/hetpa
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder $(RM) Static/hetana
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder $(RM) GUI/hetdg
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder $(RM) hetpa
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder $(RM) hetana
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder $(RM) hetdg
6ae5607d2def114f998fd49bac4eef12a2620fafChristian Maeder $(RM) atctest2
6ae5607d2def114f998fd49bac4eef12a2620fafChristian Maeder $(RM) atctest
6ae5607d2def114f998fd49bac4eef12a2620fafChristian Maeder $(RM) Common/annos
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder $(RM) Haskell/Hatchet/hatch
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder $(RM) ToHaskell/translateAna
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder $(RM) Taxonomy/taxonomyTool
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### additonally removes *.d (dependency files) in every include directory
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### also delete *.d.bak (dependency file backups)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederd_clean: clean
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder for p in $(CLEAN_PATH) ; do \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder (cd $$p ; $(RM) *.d *.d.bak) ; done
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder### remove files also in own libraries
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maederlib_clean:
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder for p in $(COMMONLIB_PATH) ; do \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder (cd $$p ; $(RM) *.hi *.d *.o) ; done
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### additionally removes the files that define the sources-variable
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maederreal_clean: bin_clean lib_clean clean
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### additionally removes files not in CVS tree
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckersdistclean: real_clean clean_genRules d_clean
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(RM) $(derived_sources)
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### test targets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### a parser to test annotation parser and Id parsers
470ca7a2797069ae4b27c34c1b71419f67be1f84Christian Maedertest_parser: Common/test_parser
470ca7a2797069ae4b27c34c1b71419f67be1f84Christian Maeder
470ca7a2797069ae4b27c34c1b71419f67be1f84Christian MaederCommon/test_parser: Common/test_parser.hs Common/AS_Annotation.der.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### interactive
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederghci:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC)i $(HCI_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### christian's target
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### CASL parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedercapa: CASL/capa
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
481d4fe351800ab00fd323db8974559431227305Christian MaederCASL/capa: CASL/capa.hs Common/*.hs CASL/*.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### HasCASL parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhacapa: HasCASL/hacapa
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
481d4fe351800ab00fd323db8974559431227305Christian MaederHasCASL/hacapa: HasCASL/hacapa.hs Common/*.hs HasCASL/*.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski### Haskell analysis
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowskihana: Haskell/hana
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian MaederHaskell/hana: Haskell/hana.hs Haskell/HatAna.hs Haskell/PreludeString.hs
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder### HasCASL to Haskell translation
23ab8855c58adfbd03a0730584b917b24c603901Christian Maederh2h: ToHaskell/h2h
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder
23ab8855c58adfbd03a0730584b917b24c603901Christian MaederToHaskell/h2h: ToHaskell/h2h.hs ToHaskell/*.hs Haskell/*.hs HasCASL/*.hs
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski $(HC) --make -o $@ $< $(HC_OPTS)
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### HetCASL parser
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maederhetpa: Syntax/hetpa.hs Syntax/*.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### HetCASL parser
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maederhetana: Static/hetana.hs Static/*.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers### ATC test system
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckersatctest: ATC/ATCTest.hs ATC/*.hs
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(HC) --make -o $@ $< $(HC_OPTS)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederatctest2: ATC/ATCTest2.hs Common/SimpPretty.hs Common/ATerm/*.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Common/Lib/*.hs
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich $(HC) --make -o $@ $< $(HC_OPTS)
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettich### ATerm.Lib test system
6da66254a8cff186a1e550b4ace23fb7bcac0d90Christian Maederatermlibtest: Common/ATerm/ATermLibTest.hs Common/SimpPretty.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Common/ATerm/*.hs Common/Lib/*.hs
d6c6ad132dcecc84fe71dbeeab6dba0e21483393Klaus Luettich $(HC) --make -o $@ $< $(HC_OPTS) $(EXTRA_HC_OPTS)
d6c6ad132dcecc84fe71dbeeab6dba0e21483393Klaus Luettich
d6c6ad132dcecc84fe71dbeeab6dba0e21483393Klaus Luettichhatermdiff: Common/ATerm/ATermDiffMain.hs Common/SimpPretty.hs \
d6c6ad132dcecc84fe71dbeeab6dba0e21483393Klaus Luettich Common/ATerm/*.hs Common/Lib/*.hs
d6c6ad132dcecc84fe71dbeeab6dba0e21483393Klaus Luettich $(HC) --make -o $@ $< $(HC_OPTS) $(EXTRA_HC_OPTS)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettich### OWL_DL test target
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus LuettichOWL_DL/readAStest: OWL_DL/ToHaskellAS.hs Common/ATerm/*.hs \
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettich Common/Lib/*.hs OWL_DL/*.hs
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettich $(HC) --make -o $@ $< $(HC_OPTS) $(EXTRA_HC_OPTS)
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### HetCASL with dev graph
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhetdg: GUI/hetdg.hs $(drifted_files) *.hs
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### run tests in other directories
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maedercheck:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## Preparing the version of HetCATS
43b4c41fbb07705c9df321221ab9cb9832460407Christian MaederDriver/Version.hs: Driver/Version.in version_nr
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder $(PERL) utils/build_version.pl version_nr < Driver/Version.in > $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## two hardcoded dependencies for a correct generation of Version.hs
43b4c41fbb07705c9df321221ab9cb9832460407Christian MaederDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maederhets.hs: Driver/Version.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## rules for DrIFT
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder.SUFFIXES:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder%: %.hs
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder $(HC) --make -o $@ $<
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder%.hs: %.ly
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maeder $(HAPPY) $<
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maeder
fdef3358918491badb0e29e42b5d3b5a01950716Christian Maeder%.hs: %.y
4d5652abf9ed9c5714723ff7fdb80a54f7350fb2Christian Maeder $(HAPPY) -o $@ $<
fdef3358918491badb0e29e42b5d3b5a01950716Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder%.hs: %.der.hs utils/DrIFT
a368e3bc3e9e92cd1981f08987295234f3441736Christian Maeder ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $(DRIFT_OPTS) $< > $@)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski## rules for inlineAxioms
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder%.hs: %.inline.hs $(INLINEAXIOMS)
bf76f4fcf07abaebea587df8135de8356c26a363Till Mossakowski $(INLINEAXIOMS) $< > $@
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder## rule for cpp and haddock
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich%.hspp: %.hs
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich $(HC) -E -cpp -DUNI_PACKAGE -optP -P $<
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## compiling rules for object and interface files
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.o %.hi: %.hs
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich $(HC) -c $< $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.o %.hi: %.lhs
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich $(HC) -c $< $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## compiling rules for dependencies
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.d : %.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.d : %.lhs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
1a6464613c59e35072b90ca296ae402cbe956144Christian Maeder
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder utils/genTransMFormFunc.pl $(INLINEAXIOMS)
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich $(PERL) utils/genTransMFormFunc.pl $< $@