Makefile revision 60e6795dd310e10194e12bb660575aadf941328b
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Authors: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Jens Elkner, Uni Magdeburg 2016
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# This GNU Makefile will compile the hets system and provides also
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# targets for test programs during implementation phases.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringNO_BIND_WARNING := -fno-warn-unused-do-bind
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering -fwarn-unrecognised-pragmas -fno-warn-orphans $(NO_BIND_WARNING)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# uncomment HC_PROF for profiling (and comment out packages in var.mk)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# call resulting binary with a final +RTS -p to get a file <binary>.prof
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#HC_PROF := -prof -auto-all -osuf p_o +RTS -K100m -RTS
68ce1b7f2d70db4a248b62e602086d7420a99e3bLennart Poettering# -ddump-minimal-imports
e99e38bbdcca3fe5956823bdb3d38544ccf93221Lennart Poettering# uncomment the above line to generate .imports files for displayDependencyGraph
1b322bdb2a147e999c3861cba8a6b3ac0f3b712aTollef Fog Heen# *.bin variants here to let them survive a 'make clean'
22be093ffb403a1c474037939ca9b88b1ee39f77Lennart Poettering# Documentation (no haddock stuff, i.e. "docs/index.html", since developer can
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# generated it on demand by themselves and other users dont't need it). Other
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# papers (doc/*.pdf) are already pre-generated.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Upgrade haskell-stack
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Create the build environment
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering $(STACK) build --install-ghc --only-dependencies $(STACK_DEPENDENCIES_FLAGS)
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringSED := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'gsed' || printf 'sed')
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringTAR := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'gtar' || printf 'tar')
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringINSTALL := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'ginstall' || printf 'install')
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering -e '/^hetsVersionNumeric =/ { s/.*"\([^"]*\)".*/\1/; p; q; }' \
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart Poettering# indicate, whether working on an exported repo
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringEXPORTED := $(shell [ -d .git ] || printf 1)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering# the 'replacing spaces' example was taken from the (GNU) Make info manual
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringGENRULECALL = $(GENRULES) -r ShATermConvertible \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart PoetteringDTD2HS_src = utils/DtdToHaskell-src/pre-1.22/
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringDTD2HS_src = utils/DtdToHaskell-src/current/
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri# list glade files
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut BarbieriGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut BarbieriGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
139be57d9441b5c890e1e4ee69e15aad03276fdeLennart Poettering# the list of logics that need ShATermConvertible instances
139be57d9441b5c890e1e4ee69e15aad03276fdeLennart Poetteringlogics = CASL HasCASL Isabelle Modal Hybrid TopHybrid Temporal \
afea26ad7d406d8b6c95d2642cb5a1d807b87546Lennart Poettering SoftFOL ConstraintCASL Propositional RelationalScheme VSE OMDoc DFOL \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl THF \
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog HeenTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
f1dfb62962fd25c1fba9d9479cb5df2d23e6712dLennart Poettering Common/ATerm/ATermDiffMain.hs Common/annos.hs \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering Common/testxupdate.hs Common/testxpath.hs \
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart Poettering SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering### list of directories to run checks in
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringTESTDIRS += Common CASL Fpl/test HasCASL test ExtModal/Tries \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poetteringhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J WalshPFE_TOOLDIR := $(wildcard $(dir $(PFE_SETUP)))
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J WalshPFE_DIRS := base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh base/transforms base/transforms/Deriving property \
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh property/syntax property/AST property/transforms \
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh property/TI property/defs property/parse2 property/parse2/Parser
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J WalshPFE_PATHS := $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J WalshDRIFT_ENV := DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering## rule for appendHaskellPreludeString
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringOther_PFE_files := property/AST/HsPropStruct base/defs/PNT \
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering base/parse2/SourceNames base/syntax/SyntaxRec \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering## rule for ATC generation
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering $(GENRULECALL) -r Typeable -i Data.Typeable -i Haskell.BaseATC \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# end of programatica stuff (PFE_FLAGS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringTESTTARGETS := $(subst .hs,,$(TESTTARGETFILES))
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# files generated by DriFT
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs Hybrid/AS_Hybrid.hs TopHybrid/AS_TopHybrid.hs \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering Propositional/AS_BASIC_Propositional.hs \
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering RelationalScheme/AS.hs ATC/Grothendieck.hs \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering ExtModal/AS_ExtModal.hs QBF/AS_BASIC_QBF.hs \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering CommonLogic/AS_CommonLogic.hs Fpl/As.hs \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# files to extract data types from to generate ShATermConvertible instances
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering Common/Consistency.hs Common/ProofTree.hs \
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering Static/DgUtils.hs Static/XGraph.hs Static/DevGraph.hs \
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# files generated by genRules as input for DriFT
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringatc_der_files = $(foreach file, $(atc_files), \
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering ATC/$(basename $(basename $(notdir $(file)))).der.hs)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# the rules to create ATC .der.hs file for DriFT
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringATC/Result.der.hs: Common/Result.hs $(GENRULES)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
efb3237ee69bc593b11bc828791ee48ba6cc4f5cLennart PoetteringATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
d3d91d10c9ca3782c5936c630e87730e3bf9c32dLennart Poettering $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
42e39f0b326d27f6392a81a7400f9af7cf0af3abLennart PoetteringATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
5e6afdd3d359fc42de7ac432243e98673577e81fLennart PoetteringATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds $(GENRULECALL) -x Logic.Prover.ProverTemplate \
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringATC/DgUtils.der.hs: Static/DgUtils.hs $(GENRULES)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency -o $@ $<
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringATC/XGraph.der.hs: Static/XGraph.hs $(GENRULES)
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew EdmundsATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner $(GENRULECALL2) -i ATC.XGraph -i ATC.AS_Library -o $@ $<
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd# ATC files for every logic
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
7d568925bda9797f611e36d1d00cd941701cb3c8Lennart PoetteringPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringHybrid_files = Hybrid/AS_Hybrid.hs Hybrid/HybridSign.hs
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart PoetteringTopHybrid_files = TopHybrid/AS_TopHybrid.hs TopHybrid/TopHybridSign.hs
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart PoetteringConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart PoetteringCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart PoetteringCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart Poettering CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
12e84679cc81cdf5f042540e54131a0ce37147adLennart PoetteringDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringLF_files = LF/Sign.hs LF/Morphism.hs LF/AS.hs
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart PoetteringMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds ExtModal/MorphismExtension.hs ExtModal/Sublogic.hs
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew EdmundsCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs \
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew EdmundsCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner CommonLogic/Symbol.hs CommonLogic/Morphism.hs CommonLogic/Sublogic.hs
d7c114c00030309435fc56c77c8578a25d228ebeDave ReisnerTHF_files = THF/As.hs THF/Cons.hs THF/Sign.hs THF/Sublogic.hs
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart PoetteringOWL2_files = OWL2/AS.hs OWL2/Symbols.hs OWL2/Sign.hs OWL2/MS.hs \
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henze OWL2/Morphism.hs OWL2/ProfilesAndSublogics.hs OWL2/Sublogic.hs \
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm StuddRDF_files = RDF/AS.hs OWL2/AS.hs RDF/Symbols.hs RDF/Sign.hs RDF/Morphism.hs \
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen# ATC DrIFT-rule generation for logics
b6c2bf61c5de1bb0c4996b0be016d55877d9688cLennart PoetteringCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
bf024b022d9f53d2bb8d26107b4878cede3167b7Tollef Fog HeenRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart PoetteringModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringHybrid/ATC_Hybrid.der.hs: $(Hybrid_files) $(GENRULES)
d64b723a9e275ee4c6ccb947e3fd6ed6b3e4c359Lennart Poettering $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Hybrid_files)
12e84679cc81cdf5f042540e54131a0ce37147adLennart PoetteringTopHybrid/ATC_TopHybrid.der.hs: $(TopHybrid_files) $(GENRULES)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(TopHybrid_files)
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm StuddCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
2c696a96a2bd63d2ff0d5595622124ef9270b172Lennart PoetteringSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering $(GENRULECALL) -i ATC.IRI -o $@ $(OMDoc_files)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart PoetteringFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart PoetteringCSL/ATC_CSL.der.hs: $(CSL_files) $(GENRULES)
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poettering $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart PoetteringCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poettering $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAdl/ATC_Adl.der.hs: $(Adl_files) $(GENRULES)
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart PoetteringFpl/ATC_Fpl.der.hs: $(Fpl_files) $(GENRULES)
a6baa3f681fad58555e28c50589595d98ec81a23Lennart Poettering $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringTHF/ATC_THF.der.hs: $(THF_files) $(GENRULES)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering $(GENRULECALL) -i ATC.Id -i ATC.GlobalAnnotations -o $@ $(THF_files)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringFreeCAD/ATC_FreeCAD.der.hs: $(FreeCAD_files) $(GENRULES)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(FreeCAD_files)
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart PoetteringOWL2/ATC_OWL2.der.hs: $(OWL2_files) $(GENRULES)
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering $(GENRULECALL) -i ATC.Result -o $@ $(OWL2_files)
a45a909fbbe11ad8c75cda5639d875476ac65453Christian RuppertRDF/ATC_RDF.der.hs: $(RDF_files) $(GENRULES)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering $(GENRULECALL) -i ATC.Result -o $@ $(RDF_files)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringCSMOF/ATC_CSMOF.der.hs: $(CSMOF_files) $(GENRULES)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(CSMOF_files)
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioQVTR/ATC_QVTR.der.hs: $(QVTR_files) CSMOF/ATC_CSMOF.hs $(GENRULES)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering $(GENRULECALL) -i CSMOF.ATC_CSMOF -i Common.ATerm.ConvInstances \
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer# all ATC .der.hs files for all logics
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poetteringgenerated_rule_files = $(atc_der_files) $(atc_logic_files)
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering# a rule to create all .der.hs files
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poettering# the final ATC target files created by DriFT
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringgendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering# all sources that need to be created before ghc can be called
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringderived_sources += $(drifted_files) $(hs_der_files)
-i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
# Common/LaTeX_maps.hs generation
$(TESTTARGETS)
CommonLogic/TestData/*.{pp.het,th} Common/testxmldiff \
$(DTD2HS) \
.SUFFIXES:
%.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)