Makefile revision 9bd27fd420bd96640ee300b69c5104c60d8c888b
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# This Makefile will compile the hets system and provides also
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# targets for test programs during implementation phases.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# !!! Note: This makefile is written for GNU make !!!
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# (gmake on solaris)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
88c800932dd7053322501ea2039d9f234be6866cKlaus LuettichGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder -i Data.Typeable -i ATerm.Lib -i ATC.Grothendieck
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederDTD2HS_src = utils/DtdToHaskell-src/pre-1.22/
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder# list glade files
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus LuettichGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
c6fcd42c6d6d9dae8c7835c24fcb7ce8531a9050Christian Maeder# the list of logics that need ShATermConvertible instances
31c49f2fa23d4ac089f35145d80a224deb6ea7e4Till Mossakowskilogics = CASL HasCASL Isabelle Modal Hybrid TopHybrid Temporal \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder SoftFOL ConstraintCASL Propositional RelationalScheme VSE OMDoc DFOL \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl THF \
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maeder Common/ATerm/ATermDiffMain.hs Common/annos.hs \
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maeder SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder Common/testxupdate.hs Common/testxpath.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder### list of directories to run checks in
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederTESTDIRS += Common CASL Fpl/test HasCASL test ExtModal/Tries \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederPFE_TOOLDIR = $(wildcard programatica/tools)
fd09d0eee026d0db12542af37fd0fbd0790f0eeaChristian MaederPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
fd09d0eee026d0db12542af37fd0fbd0790f0eeaChristian Maeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
fd09d0eee026d0db12542af37fd0fbd0790f0eeaChristian Maeder base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder base/transforms base/transforms/Deriving property \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder property/syntax property/AST property/transforms \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder property/TI property/defs property/parse2 property/parse2/Parser
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder## rule for appendHaskellPreludeString
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
ca074a78b8dcccbb8c419586787882f98d0c6163Christian 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 \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder## rule for ATC generation
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder# unset this variable from var.mk because the programatica sources
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder# are needed to created our sources!
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder# end of programatica stuff
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederTESTTARGETS = $(subst .hs,,$(TESTTARGETFILES))
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder -fwarn-unrecognised-pragmas -fno-warn-orphans $(NO_BIND_WARNING)
97812b7ce9860bf514a8822a63503451795dbc65Klaus Luettich# uncomment HC_PROF for profiling (and comment out packages in var.mk)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# call resulting binary with a final +RTS -p to get a file <binary>.prof
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederHC_OPTS += $(HC_WARN) $(HC_PROF) $(HC_DEBIAN_OPT)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# -ddump-minimal-imports
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# uncomment the above line to generate .imports files for displayDependencyGraph
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# files generated by DriFT
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs Hybrid/AS_Hybrid.hs TopHybrid/AS_TopHybrid.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
9df11f85fd7f8c4745d64464876e84ec4e263692Christian Maeder RelationalScheme/AS.hs ATC/Grothendieck.hs \
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder ExtModal/AS_ExtModal.hs QBF/AS_BASIC_QBF.hs \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# files to extract data types from to generate ShATermConvertible instances
c432483b64662e8db604a58758cd18ea7fa65659Christian Maederatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
8659594bb40eb5f3da5439692f0908300947191eSonja Gröning Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
8c692d0cc44e7df93f58a3eed0d9774ba5908339Jorina Freya Gerken Common/Consistency.hs Common/ProofTree.hs \
eeb419aa20c97b4af973e97ee6ae77a8eed29e15Till Mossakowski Static/DgUtils.hs Static/XGraph.hs Static/DevGraph.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# files generated by genRules as input for DriFT
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederatc_der_files = $(foreach file, $(atc_files), \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# the rules to create ATC .der.hs file for DriFT
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/Result.der.hs: Common/Result.hs $(GENRULES)
afa6ceaf4359ae437aaa6830949583143ace2752Christian MaederATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
afa6ceaf4359ae437aaa6830949583143ace2752Christian MaederATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
a02a4eb2a2029d27a11fff2ebcc6c460574a74fcKlaus LuettichATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till MossakowskiATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(GENRULECALL) -x Logic.Prover.ProverTemplate \
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
53818ced114da21321063fff307aa41c1ab31dd3Achim MahnkeATC/DgUtils.der.hs: Static/DgUtils.hs $(GENRULES)
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency -o $@ $<
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederATC/XGraph.der.hs: Static/XGraph.hs $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder $(GENRULECALL2) -i ATC.XGraph -i ATC.AS_Library -o $@ $<
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# ATC files for every logic
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
b49276c9f50038e0bd499ad49f7bd6444566a834Christian MaederPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
b10267ae0a6523b73113fc2dee9ea628266fce60Christian MaederHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
b49276c9f50038e0bd499ad49f7bd6444566a834Christian MaederRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
b49276c9f50038e0bd499ad49f7bd6444566a834Christian MaederModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHybrid_files = Hybrid/AS_Hybrid.hs Hybrid/HybridSign.hs
b905126bab9454b89041f92b3c50bb9efc85e427Klaus LuettichTopHybrid_files = TopHybrid/AS_TopHybrid.hs TopHybrid/TopHybridSign.hs
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
b905126bab9454b89041f92b3c50bb9efc85e427Klaus LuettichConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian MaederCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederLF_files = LF/Sign.hs LF/Morphism.hs LF/AS.hs
b905126bab9454b89041f92b3c50bb9efc85e427Klaus LuettichMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder ExtModal/MorphismExtension.hs ExtModal/Sublogic.hs
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian MaederCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs \
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian MaederCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich CommonLogic/Symbol.hs CommonLogic/Morphism.hs CommonLogic/Sublogic.hs
e7e1ab2ac3f1fded8611bb92ae00e8f3b8c693fbKlaus LuettichTHF_files = THF/As.hs THF/Cons.hs THF/Sign.hs THF/Sublogic.hs
d784803f9c752667b4fcf7393d698002bedf3f89Klaus LuettichOWL2_files = OWL2/AS.hs OWL2/Symbols.hs OWL2/Sign.hs OWL2/MS.hs \
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich OWL2/Morphism.hs OWL2/ProfilesAndSublogics.hs OWL2/Sublogic.hs \
d579f5b263e6c73d466c265f2fbfd45b0e69ca64Klaus LuettichRDF_files = RDF/AS.hs OWL2/AS.hs RDF/Symbols.hs RDF/Sign.hs RDF/Morphism.hs \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder# ATC DrIFT-rule generation for logics
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
7b2177999334c920c5669621bd3c142fe198a8d7Christian MaederPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian MaederQBF/ATC_QBF.der.hs: $(QBF_files) $(GENRULES)
e593b89bfd4952698dc37feced21cefe869d87a2Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till MossakowskiHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
9c3edf2b283c09d33b2820696886d1ed32fcadc8Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
9c3edf2b283c09d33b2820696886d1ed32fcadc8Christian MaederIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
9c3edf2b283c09d33b2820696886d1ed32fcadc8Christian MaederModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
3c09fa452664b01b1f5559f9ca8cc2ddd910688aChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
94d3aa05411444596b44ede4531f05dd7ac20fdfChristian MaederHybrid/ATC_Hybrid.der.hs: $(Hybrid_files) $(GENRULES)
dc929508a3bd3c666e9b0182d56898fcafb5d66fChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Hybrid_files)
94d3aa05411444596b44ede4531f05dd7ac20fdfChristian MaederTopHybrid/ATC_TopHybrid.der.hs: $(TopHybrid_files) $(GENRULES)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(TopHybrid_files)
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian MaederTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian MaederConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
8410667510a76409aca9bb24ff0eda0420088274Christian MaederCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus LuettichCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
42aacf1f63419cbab63a88725e6a0b2c8776f101Christian 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)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i ATC.IRI -o $@ $(OMDoc_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix ReckersFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
afa6ceaf4359ae437aaa6830949583143ace2752Christian MaederMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix ReckersExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederCSL/ATC_CSL.der.hs: $(CSL_files) $(GENRULES)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix ReckersCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
ba0ec5e897ef99d420c8c14c2374e0f32b7043dbKlaus Luettich $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederFpl/ATC_Fpl.der.hs: $(Fpl_files) $(GENRULES)
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederTHF/ATC_THF.der.hs: $(THF_files) $(GENRULES)
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich $(GENRULECALL) -i ATC.Id -i ATC.GlobalAnnotations -o $@ $(THF_files)
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus LuettichFreeCAD/ATC_FreeCAD.der.hs: $(FreeCAD_files) $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(FreeCAD_files)
b9625461755578f3eed04676d42a63fd2caebd0cChristian MaederOWL2/ATC_OWL2.der.hs: $(OWL2_files) $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i ATC.Result -o $@ $(OWL2_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederRDF/ATC_RDF.der.hs: $(RDF_files) $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i ATC.Result -o $@ $(RDF_files)
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till MossakowskiCSMOF/ATC_CSMOF.der.hs: $(CSMOF_files) $(GENRULES)
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(CSMOF_files)
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder#QVTR/ATC_QVTR.der.hs: $(QVTR_files) $(GENRULES)
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder# $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(QVTR_files)
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder# all ATC .der.hs files for all logics
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maederatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
6ae5607d2def114f998fd49bac4eef12a2620fafChristian Maedergenerated_rule_files = $(atc_der_files) $(atc_logic_files)
6ae5607d2def114f998fd49bac4eef12a2620fafChristian Maeder# a rule to create all .der.hs files
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder# the final ATC target files created by DriFT
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedergendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# all sources that need to be created before ghc can be called
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederderived_sources += $(drifted_files) Driver/Version.hs $(hs_der_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder real_clean bin_clean distclean annos checkversion \
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder check capa hacapa h2h h2hf showKP clean_genRules genRules \
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder count doc fromKif derivedSources release cgi ghci build callghc
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder.SECONDARY : %.hs %.d $(generated_rule_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# dummy target to force ghc invocation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Documentation via haddock
481d4fe351800ab00fd323db8974559431227305Christian MaederHADDOCK_INTERFACES = $(shell find `ghc --print-libdir`/../.. -name \*.haddock)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHAD_INTS = $(foreach file, $(HADDOCK_INTERFACES),\
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder -i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHADDOCK_OPTS = $(addprefix --optghc=, $(HC_OPTS))
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski $(HADDOCK) -o docs -h -s ../%F $(HAD_INTS) \
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski -t 'Hets - the Heterogeneous Tool Set' \
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT)
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski$(DTD2HS): $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell.hs
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski mkdir -p utils/DtdToHaskell-src/DtdToHaskell
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder cp -f $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder utils/DtdToHaskell-src/DtdToHaskell.hs -o $@ $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederIsabelle/IsaExport.hs: $(DTD2HS) Isabelle/IsaExport.dtd
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder ($(DTD2HS) Isabelle/IsaExport.dtd Isabelle/IsaExport.hs Isabelle.)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
6da66254a8cff186a1e550b4ace23fb7bcac0d90Christian Maederutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich# release management
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettich svn co -q https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederutils/genItCorrections: $(GENITCORRECTIONS_deps)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @echo -n "Generating pretty/LaTeX_maps.hs ... "
ba0ec5e897ef99d420c8c14c2374e0f32b7043dbKlaus Luettich @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
efa8f9db01f64e2c719c201e4037743caefae045Klaus Luettich @(cd pretty >/dev/null; ../utils/genItCorrections \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder gen_it_characters gen_it_words >> LaTeX_maps.hs)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @echo "ready"
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder @echo "please copy the file manually to Common"
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder $(RM) $(generated_rule_files) $(gendrifted_files) \
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maederclean: bin_clean o_clean clean_pretty clean_javastuff
4d5652abf9ed9c5714723ff7fdb80a54f7350fb2Christian Maeder### removes all *.o, *.hi and *.p_o files in all subdirectories
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder find . -name \*.o -o -name \*.hi -o -name \*.p_o \
a368e3bc3e9e92cd1981f08987295234f3441736Christian Maeder -o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski### remove binaries
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty}
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich $(RM) doc/UserGuide.{log,aux,bbl,blg,out,pdf}
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### additionally removes the library files
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich### additionally removes generated files not in the repository tree
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(RM) -r utils/DtdToHaskell-src/DtdToHaskell
f29371d8bd5a232c974e736b06d0d8a655d320fbKlaus Luettich $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
$(RM) $@
.SUFFIXES:
$(RM) $@
%.d : %.hs
%.d : %.lhs
@echo Please do
svn export -q \
echo "File arq-2.8.7.jar already exists"; \
curl -o RDF/java/lib/arq-2.8.7.jar http://repo1.maven.org/maven2/com/hp/hpl/jena/arq/2.8.7/arq-2.8.7.jar; \
echo "File icu4j-3.4.4.jar already exists"; \
curl -o RDF/java/lib/icu4j-3.4.4.jar http://repo1.maven.org/maven2/com/ibm/icu/icu4j/3.4.4/icu4j-3.4.4.jar; \
echo "File iri-0.8.jar already exists"; \
curl -o RDF/java/lib/iri-0.8.jar http://repo1.maven.org/maven2/com/hp/hpl/jena/iri/0.8/iri-0.8.jar; \
echo "File jena-2.6.4.jar already exists"; \
curl -o RDF/java/lib/jena-2.6.4.jar http://repo1.maven.org/maven2/com/hp/hpl/jena/jena/2.6.4/jena-2.6.4.jar; \
echo "File junit-4.5.jar already exists"; \
echo "File log4j-1.2.13.jar already exists"; \
curl -o RDF/java/lib/log4j-1.2.13.jar http://repo1.maven.org/maven2/log4j/log4j/1.2.13/log4j-1.2.13.jar; \
echo "File lucene-core-2.3.1.jar already exists"; \
curl -o RDF/java/lib/lucene-core-2.3.1.jar http://repo1.maven.org/maven2/org/apache/lucene/lucene-core/2.3.1/lucene-core-2.3.1.jar; \
echo "File slf4j-api-1.5.8.jar already exists"; \
curl -o RDF/java/lib/slf4j-api-1.5.8.jar http://repo2.maven.org/maven2/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.jar; \
echo "File slf4j-log4j12-1.5.8.jar already exists"; \
curl -o RDF/java/lib/slf4j-log4j12-1.5.8.jar http://repo2.maven.org/maven2/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8.jar; \
echo "File stax-api-1.0.1.jar already exists"; \
echo "File wstx-asl-3.2.9.jar already exists"; \
curl -o RDF/java/lib/wstx-asl-3.2.9.jar http://repo1.maven.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.9/wstx-asl-3.2.9.jar; \
echo "File xercesImpl-2.7.1.jar already exists"; \