Makefile revision 4c7cb5671b356d873d67829ec8062a5083c1ee0e
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# Authors: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Jens Elkner, Uni Magdeburg 2016
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# This GNU Makefile will compile the hets system and provides also
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# targets for test programs during implementation phases.
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian MaederHETS_VERSION ?= $(shell printf `cat version_nr`)
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# We assume ghc 7+
e7757995211bd395dc79d26fe017d99375f7d2a6Christian MaederGHCVERSION := $(shell $(HC) --numeric-version)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederGHC_PARALLEL_FEATURE := $(shell expr $(shell $(HC) --numeric-version | cut -d '.' -f 1) \>= 8)
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder -fwarn-unrecognised-pragmas -fno-warn-orphans $(NO_BIND_WARNING)
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich# uncomment HC_PROF for profiling (and comment out packages in var.mk)
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# call resulting binary with a final +RTS -p to get a file <binary>.prof
ad270004874ce1d0697fb30d7309f180553bb315Christian Maeder#HC_PROF := -prof -auto-all -osuf p_o +RTS -K100m -RTS
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# -ddump-minimal-imports
74eed04be26f549d2f7ca35c370e1c03879b28b1Christian Maeder# uncomment the above line to generate .imports files for displayDependencyGraph
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# *.bin variants here to let them survive a 'make clean'
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Documentation (no haddock stuff, i.e. "docs/index.html", since developer can
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian Maeder# generated it on demand by themselves and other users dont't need it). Other
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder# papers (doc/*.pdf) are already pre-generated.
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian MaederSED := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'gsed' || printf 'sed')
51d769d55d88dfa88bdf54bee78d8fa85a2deba8Christian MaederTAR := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'gtar' || printf 'tar')
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederINSTALL := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'ginstall' || printf 'install')
05a62e84edac8c64de04f8349dee418598d216b9Christian Maeder# indicate, whether working on an exported repo
1cd4f6541984962658add5cfaa9f28a93879881bChristian MaederGIT_TIMESTAMP := $(shell [ -d .git ] && git log -1 --format=%ct )
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederEXPORTED := $(shell [ -n "$(GIT_TIMESTAMP)" ] || printf 1)
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian MaederGENRULECALL = $(GENRULES) -r ShATermConvertible \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian MaederDTD2HS_src = utils/DtdToHaskell-src/pre-1.22/
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian MaederDTD2HS_src = utils/DtdToHaskell-src/current/
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# list glade files
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# the list of logics that need ShATermConvertible instances
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederlogics = CASL HasCASL Isabelle Modal Hybrid TopHybrid Temporal \
bc8cbf12aa172bf5673b92a9e7a0151d4aa4c315Christian Maeder SoftFOL ConstraintCASL Propositional RelationalScheme VSE OMDoc DFOL \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl THF \
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian MaederTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian Maeder Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian Maeder ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian Maeder Common/ATerm/ATermDiffMain.hs Common/annos.hs \
1cd4f6541984962658add5cfaa9f28a93879881bChristian Maeder SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
1cd4f6541984962658add5cfaa9f28a93879881bChristian Maeder Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder Common/testxupdate.hs Common/testxpath.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder### list of directories to run checks in
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederTESTDIRS += Common CASL Fpl/test HasCASL test ExtModal/Tries \
a9b59eb2ce961014974276cdae0e9df4419bd212Christian Maederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederPFE_TOOLDIR := $(wildcard $(dir $(PFE_SETUP)))
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian MaederPFE_DIRS := base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
dc679edd4ca027663212afdf00926ae2ce19b555Christian 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 \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder base/transforms base/transforms/Deriving property \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/syntax property/AST property/transforms \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder property/TI property/defs property/parse2 property/parse2/Parser
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederPFE_PATHS := $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
4017ebc0f692820736d796af3110c3b3018c108aChristian MaederDRIFT_ENV := DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder## rule for appendHaskellPreludeString
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederOther_PFE_files := property/AST/HsPropStruct base/defs/PNT \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
e6d5dbbc3308f05197868806e0b860f4f53875f1Christian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
e4f4d096e5e6d60dd91c746d0e833d0ac7a29c50Christian Maeder## rule for ATC generation
eb74267cf39e4e95f9eeb5c765f4c8dac33971b4Christian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
eb74267cf39e4e95f9eeb5c765f4c8dac33971b4Christian Maeder $(GENRULECALL) -r Typeable -i Data.Typeable -i Haskell.BaseATC \
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder# end of programatica stuff (PFE_FLAGS)
6cd33d6101fb1b93baa6d86fac158af18a115108Christian MaederTESTTARGETS := $(subst .hs,,$(TESTTARGETFILES))
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# files generated by DriFT
0e5b095a19790411e5352fa7cf57cb0388e70472Christian Maeder CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs Hybrid/AS_Hybrid.hs TopHybrid/AS_TopHybrid.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder RelationalScheme/AS.hs ATC/Grothendieck.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder ExtModal/AS_ExtModal.hs QBF/AS_BASIC_QBF.hs \
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder# files to extract data types from to generate ShATermConvertible instances
328a85c807f2a95c3f147d10b05927eaf862ebebChristian Maederatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
a6db617ca58eb6a0587b6366e913107dfecb71b5Heng Jiang Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
06dd4e7c29f33f6122a910719e3bd9062256e397Andy Gimblett Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder Common/Consistency.hs Common/ProofTree.hs \
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder Static/DgUtils.hs Static/XGraph.hs Static/DevGraph.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# files generated by genRules as input for DriFT
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederatc_der_files = $(foreach file, $(atc_files), \
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder# the rules to create ATC .der.hs file for DriFT
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederATC/Result.der.hs: Common/Result.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian MaederATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
54ea981a0503c396c2923a1c06421c6235baf27fChristian MaederATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian MaederATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
819e29dba060687cf391e444e0f6ff88c1908cc3Christian MaederATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -x Logic.Prover.ProverTemplate \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
ac34194a668399bb8ef238da77c3a09e93fb253bChristian MaederATC/DgUtils.der.hs: Static/DgUtils.hs $(GENRULES)
4fc9de0da898448f1d3597ebbd8c04a066464c21Christian Maeder $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/XGraph.der.hs: Static/XGraph.hs $(GENRULES)
4fc9de0da898448f1d3597ebbd8c04a066464c21Christian MaederATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maeder $(GENRULECALL2) -i ATC.XGraph -i ATC.AS_Library -o $@ $<
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# ATC files for every logic
986d3f255182539098a97ac86da9eeee5b7a72e3Christian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
01e278bdd7dce13b9303ed3d79683d83c89d09f9Liam O'ReillyHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
8c812cd83569e973f10cf69a342424ceabc07af9Christian MaederPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder HolLight/Sublogic.hs HolLight/Term.hs
05a206508bc898f87fe6ab6e069814df3c29d303Dominik LueckeQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till MossakowskiModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederHybrid_files = Hybrid/AS_Hybrid.hs Hybrid/HybridSign.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederTopHybrid_files = TopHybrid/AS_TopHybrid.hs TopHybrid/TopHybridSign.hs
0b349288edfa50fdf38fda1a14e1562d03f92574Christian MaederTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
1b3a2f98d1cd01fc9e0591f69507e20526727559Dominik LueckeConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus LuettichCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
f8e1a1eca871a26a535a4ee7d51902ba94b1db1eChristian MaederCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
ea3bff3e547a1ac714d4db39c5efef95e02b2e7dChristian Maeder CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
abf2487c3aece95c371ea89ac64319370dcb6483Klaus LuettichCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
76b9b2974795a6fb31f242fd032de3ff66df6204Christian MaederDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
76b9b2974795a6fb31f242fd032de3ff66df6204Christian MaederLF_files = LF/Sign.hs LF/Morphism.hs LF/AS.hs
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik DietrichMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder ExtModal/MorphismExtension.hs ExtModal/Sublogic.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder CommonLogic/Symbol.hs CommonLogic/Morphism.hs CommonLogic/Sublogic.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederTHF_files = THF/As.hs THF/Cons.hs THF/Sign.hs THF/Sublogic.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederOWL2_files = OWL2/AS.hs OWL2/Symbols.hs OWL2/Sign.hs OWL2/MS.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder OWL2/Morphism.hs OWL2/ProfilesAndSublogics.hs OWL2/Sublogic.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederRDF_files = RDF/AS.hs OWL2/AS.hs RDF/Symbols.hs RDF/Sign.hs RDF/Morphism.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# ATC DrIFT-rule generation for logics
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederQBF/ATC_QBF.der.hs: $(QBF_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHybrid/ATC_Hybrid.der.hs: $(Hybrid_files) $(GENRULES)
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina Sojakova $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Hybrid_files)
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina SojakovaTopHybrid/ATC_TopHybrid.der.hs: $(TopHybrid_files) $(GENRULES)
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(TopHybrid_files)
79834070d6d3c63a098e570b12fa3405c607dc70Kristina SojakovaTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
8a78868bae2ec6838c87366c35c57e109154c51eChristian MaederCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulz $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik DietrichCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
2b33802ca26124644f4311db4319376ecffdc8d2Christian Maeder $(GENRULECALL) -i ATC.IRI -o $@ $(OMDoc_files)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus LuettichMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
f443a57f2a8e0ca3daa7431b0c89a18ba52c337aChristian MaederExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till MossakowskiCSL/ATC_CSL.der.hs: $(CSL_files) $(GENRULES)
7c99e334446bb97120e30e967baeeddfdd1278deKlaus Luettich $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian MaederCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
27785f379d6810811b4e6d23feab18845fde9a98Christian MaederAdl/ATC_Adl.der.hs: $(Adl_files) $(GENRULES)
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
10883d13973c46cac98964b66ace7a52b2d059abChristian MaederFpl/ATC_Fpl.der.hs: $(Fpl_files) $(GENRULES)
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
10883d13973c46cac98964b66ace7a52b2d059abChristian MaederTHF/ATC_THF.der.hs: $(THF_files) $(GENRULES)
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder $(GENRULECALL) -i ATC.Id -i ATC.GlobalAnnotations -o $@ $(THF_files)
10883d13973c46cac98964b66ace7a52b2d059abChristian MaederFreeCAD/ATC_FreeCAD.der.hs: $(FreeCAD_files) $(GENRULES)
bf25e8c286cda74ef89a9cbc3c2143557e0d49c3Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(FreeCAD_files)
05a62e84edac8c64de04f8349dee418598d216b9Christian MaederOWL2/ATC_OWL2.der.hs: $(OWL2_files) $(GENRULES)
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder $(GENRULECALL) -i ATC.Result -o $@ $(OWL2_files)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederRDF/ATC_RDF.der.hs: $(RDF_files) $(GENRULES)
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder $(GENRULECALL) -i ATC.Result -o $@ $(RDF_files)
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian MaederCSMOF/ATC_CSMOF.der.hs: $(CSMOF_files) $(GENRULES)
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(CSMOF_files)
0c355dd0b739631ee472f9a656e266be27fa4e64Christian MaederQVTR/ATC_QVTR.der.hs: $(QVTR_files) CSMOF/ATC_CSMOF.hs $(GENRULES)
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder $(GENRULECALL) -i CSMOF.ATC_CSMOF -i Common.ATerm.ConvInstances \
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich# all ATC .der.hs files for all logics
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettichgenerated_rule_files = $(atc_der_files) $(atc_logic_files)
a883cd4d01fe39d23219cf5333425f195be24d8bChristian Maeder# a rule to create all .der.hs files
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder# the final ATC target files created by DriFT
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedergendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder# all sources that need to be created before ghc can be called
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maederderived_sources += $(drifted_files) Driver/Version.hs $(hs_der_files)
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder####################################################################
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder# BUILD related targets
a545f813d2f8006ef79617e4fedc841d89195e2dChristian Maeder####################################################################
a545f813d2f8006ef79617e4fedc841d89195e2dChristian Maeder.PHONY: all hets-opt hets-optimized hets_server-opt docs jars \
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich clean o_clean clean_pretty bin_clean java_clean realclean distclean \
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder annos check test capa hacapa h2h h2hf showKP clean_genRules genRules \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder count fromKif release cgi ghci build-hets callghc \
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder get-programatica check_desktop check_server check_cgi \
e05fd774e0181e93963d4302303b20698603a505Christian Maeder install install-common install-owl-tools archive \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder build-indep build-arch build binary-indep binary-arch binary rev.txt \
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder# dummy target to force ghc invocation
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski# some trickery to trigger a full clean if the main target (hets, hets_server)
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder# changed since last call
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder -@[ -e .hets_server -o -e .hets_cgi -o -e .hets_oow ] && $(MAKE) clean
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder -@[ -e .hets_desktop -o -e .hets_cgi -o -e .hets_oow ] && $(MAKE) clean
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder -@[ -e .hets_desktop -o -e .hets_server -o -e .hets_oow ] && $(MAKE) clean
c59d1c38ef94b4fb1c8d9fda9573bc1e1d2801e7Christian Maeder# the variant without GUI
cd36bffee51c77cdadcb9f916b34fa512e311946Christian Maederhets_server hets_server-opt: HASKELINE_PACKAGE :=
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maederhets_server hets_server-opt: GLADE_PACKAGE :=
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederhets_server hets_server-opt: check_server $(derived_sources)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(HC) --make $(HC_OPTS) -o hets_server hets.hs
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich# deprecated target name
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederhets_cgi hets_cgi-opt: check_cgi GUI/hets_cgi.hs $(derived_sources)
810746aea00b81c1eec27dae84d73a43599ff056Christian Maeder $(HC) --make $(HC_OPTS) -o hets.cgi GUI/hets_cgi.hs
82e29b77f0ef4cccd7ed734692c5e1e93dbbc645Christian MaederTEX_FILES := $(wildcard doc/*.tex doc/*.png doc/*.dot doc/*.sty doc/*.eps)
5f0e3e4cb7dd31033c9682cafa712d2a66b2f3bcChristian Maeder if [ -n "$$X" ]; then \
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder -pdflatex="pdflatex -interaction=nonstopmode" UserGuide.tex ; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder printf '\nMissing "latexmk" - unable to create doc/UserGuide.pdf!\n\n';\
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder# replace '$Header$' in all *.hs with the filename of the containing file
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# call it from time to time
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @find . -name '*.hs' -exec fgrep -l '$$Header$$' {} + | xargs -I@ \
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus LuettichGHC_BASEDIR := $(shell cd $(GHC_LIBDIR)/../.. && printf "$${PWD}")
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder# scanning the "whole" NFS server isn't so smart, so restrict to wellknown dirs
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederHADDOCK_INTERFACES = $(shell find $(GHC_BASEDIR)/share/doc/ghc \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder $(GHC_BASEDIR)/lib/ghc-doc/haddock -name '*.haddock' 2>/dev/null)
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederHAD_INTS = $(foreach file, $(HADDOCK_INTERFACES),\
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder -i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
e7757995211bd395dc79d26fe017d99375f7d2a6Christian MaederHADDOCK_OPTS := $(addprefix --optghc=, $(HC_OPTS))
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich printf '\nCheck log.haddock for results ...\n'
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HADDOCK) -o docs -h -s ../%F $(HAD_INTS) \
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder -t 'Hets - the Heterogeneous Tool Set' \
e1559d046eb2c6dde0e6e272b37b6756eac0e8adChristian Maeder -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder $(filter-out Scratch.hs, $(wildcard *.hs)) \
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl cd utils/DrIFT-src; $(HC) --make -o ../DrIFT DrIFT.hs
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl$(DTD2HS): $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder @cp -f $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder $(HC) --make $(HC_OPTS) -iutils/DtdToHaskell-src -o $@ \
0b349288edfa50fdf38fda1a14e1562d03f92574Christian MaederIsabelle/IsaExport.hs: $(DTD2HS) Isabelle/IsaExport.dtd
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder $(DTD2HS) Isabelle/IsaExport.dtd Isabelle/IsaExport.hs Isabelle.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowskiutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maederutils/genItCorrections: $(GENITCORRECTIONS_deps)
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maederpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini $(info $(EOL)Generating pretty/LaTeX_maps.hs ...$(EOL))
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder $(PERL) ../utils/words.pl > words.pl.log ; \
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder ../utils/genItCorrections gen_it_characters gen_it_words >> LaTeX_maps.hs
e50e41135ece589f7202bd4ef8d6b97531c2a56eKlaus Luettich $(info $(EOL)Done.$(EOL)Please copy the file manually to Common$(EOL))
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder @$(RM) $(generated_rule_files) $(gendrifted_files) $(hs_clean_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### removes all *.o, *.hi and *.p_o files in all subdirectories
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder @find . \( -name '*.o' -o -name '*.hi' -o -name '*.p_o' \
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder -o -name '*.dyn_hi' -o -name '*.dyn_o' \) -exec rm -f {} +
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder### remove binaries
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich# do not delete on exported archive, because latexmk might not be available
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian MaederUSER_GUIDE := $(shell [ -n "$(EXPORTED)" ] || printf 'doc/UserGuide.pdf')
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder# Ubuntu/Debian dash crap really hurts
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich @ksh -c "rm -rf pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty} \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder test/*/log */test/temp* ToHaskell/test/*.{out,output} \
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder ExtModal/Tries/*.{pp.het,th} Fpl/test/*.{pp.het,th} \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder CommonLogic/TestData/*.{pp.het,th} Common/testxmldiff \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder doc/UserGuide.{log,aux,bbl,blg,out,fdb_latexmk,fls} doc/hs2isa.ps \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder debian/{root,files,hets-*,tmp} \
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder @$(RM) -rf OWL2/*.jar OWL2/java/build OWL2/java/tmp OWL2/lib
fdef3358918491badb0e29e42b5d3b5a01950716Christian Maeder### additionally removes generated files not in the repository tree
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log \
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder### interactive
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maeder### build only, don't link. Target was formerly known as 'build'.
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### Kif parser
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### Annos parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### CASL parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### HasCASL parser
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder### Haskell analysis
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder### Haskell to Isabelle-HOLCF translation
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich### HasCASL to Haskell translation
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich### test program to check the known provers
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich### run tests in other directories
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich## Preparing the version of Hets
438f9bd974c8e668203e636b0f2bc80c589af043Klaus LuettichDriver/Version.hs: Driver/Version.in version_nr rev.txt
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder @${SED} -e "s|\$$Header\$$|./$@|" Driver/Version.in >$@
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder @printf ' ++ "$(shell cat version_nr), $(shell cat rev.txt)"\n' >> $@
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder elif [ ! -e rev.txt ]; then \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder printf 'Unable to create rev.txt (no git repo infos available)\n' ; \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder printf 'Keeping rev.txt (no git repo infos available)\n' ; \
89c9d707aa817684b88036a2dad66c3437840677Heng Jiang## two dependencies to avoid circular prerequisites
f78ce817f35574674d54e30ad1861a9b4ced20caChristian MaederCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder Common/annos Common/test_parser Comorphisms/test/showKP \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder$(CASL_DEPENDENT_BINARIES): $(derived_sources)
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke## suffix rules
c802a1041ed9251f8ad79139454267e802900e2aChristian Maeder## rule for GHC
53bbc1c9a4e986d1ee9c081d6f0ac7b9546f212bDominik Luecke## rule for DrIFT
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke $(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke## compiling rules for object and interface files
%.d : %.hs
%.d : %.lhs
jars:
@if [ -e $(PFE_BASE) ]; then \
@if [ -e $(PFE_SETUP_FILE) ]; then \
# remove trailing .txz or .tar.xz
if [ -e $(USER_GUIDE) ]; then \
DEFAULT_DESTDIR := \
SUBDIR_common := \
SUBDIR_hets := \
SUBDIR_hets_server := \
# see OWL2/ProveFact.hs - it doesn't use OSGi so we need to extract JNI libs
X=`ls ../lib/uk.ac.manchester.cs.owl.factplusplus*.jar` ; \
%.bin:
# *.debian.tar.xz, for local packages we generate it on demand.
-l$(CHANGELOG)
-l$(CHANGELOG)
-l$(CHANGELOG)