Makefile revision 81f49ee02aaa3bc870401f8883bf52742eb3ea7a
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# Makefile
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# $Id$
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# This Makefile will compile the hets system and provides also
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# targets for test programs during implementation phases.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# !!! Note: This makefile is written for GNU make !!!
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# (gmake on solaris)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerall: hets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerinclude var.mk
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# the 'replacing spaces' example was taken from the (GNU) Make info manual
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerempty =
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerspace = $(empty) $(empty)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerDRIFT_deps = utils/DrIFT-src/*hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerPERL = perl
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerGENRULES = utils/genRules
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner -i Data.Typeable -i ATerm.Lib
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner -i Data.Typeable -i ATerm.Lib -i ATC.Grothendieck
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerDRIFT = utils/DrIFT
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerHADDOCK = haddock
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerDTD2HS = utils/DtdToHaskell
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerifneq ($(strip $(HAXML_PACKAGE_COMPAT)),)
ab4256496e72886018b78571057331f373da6883Eugen KuksaDTD2HS_src = utils/DtdToHaskell-src/pre-1.22/
ab4256496e72886018b78571057331f373da6883Eugen Kuksaelse
ab4256496e72886018b78571057331f373da6883Eugen KuksaDTD2HS_src = utils/DtdToHaskell-src/current/
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerendif
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerifneq ($(strip $(HAXML_PACKAGE)),)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerderived_sources += Isabelle/IsaExport.hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerendif
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerDTD2HS_deps = $(DTD2HS_src)*.hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# list glade files
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
d6a8f143762ad5e73005b390153a6fc98491da92Eugen Kuksa
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerderived_sources += $(GTK_GLADE_HSFILES)
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# the list of logics that need ShATermConvertible instances
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederlogics = CASL HasCASL Isabelle Modal Hybrid TopHybrid Temporal CoCASL COL CspCASL CASL_DL \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder SoftFOL ConstraintCASL Propositional RelationalScheme VSE OMDoc DFOL \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl THF \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder FreeCAD OWL2 RDF
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
ad270004874ce1d0697fb30d7309f180553bb315Christian Maeder Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Common/ATerm/ATermDiffMain.hs Common/annos.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
1a38107941725211e7c3f051f7a8f5e12199f03acmaeder Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
ce5b44277ea06257548ff625e928cb1290c6d297cmaeder Common/testxupdate.hs Common/testxpath.hs \
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
fa8878c6145f652f615a04a5e9c15a1d1327bc92cmaeder
ce5b44277ea06257548ff625e928cb1290c6d297cmaeder### list of directories to run checks in
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederTESTDIRS += Common CASL Fpl/test HasCASL test ExtModal/Tries \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder CommonLogic/TestData
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederPFE_TOOLDIR = $(wildcard programatica/tools)
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroederifneq ($(strip $(PFE_TOOLDIR)),)
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder base/transforms base/transforms/Deriving property \
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder property/syntax property/AST property/transforms \
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder property/TI property/defs property/parse2 property/parse2/Parser
825a1e4ca1e768de4b4883c65a6cb1dce6aa0002Christian Maeder
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maederlogics += Haskell
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maederderived_sources += Haskell/PreludeString.hs
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder Haskell/ProgramaticaPrelude.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian Maeder## rule for appendHaskellPreludeString
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maeder $(APPENDPRELUDESTRING)
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder $(RM) $@
d62661e54e2662d53b583ae48609f5037701078dcmaeder $(APPENDPRELUDESTRING) < $< > $@
8cacad2a09782249243b80985f28e9387019fe40Christian Maeder chmod 444 $@
6a2dad705deefd1b7a7e09b84fd2d75f2213be47Christian Maeder
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
014dc30f64ec25e4790cca987d4d1e6635430510Christian Maeder HsModule HsName HsLiteral HsIdent
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich
6aea82c63ba1d2efc0329bc784a14e521469ec20Christian Maeder#files in base/TI/
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
feca1d35123d8c31aee238c9ce79947b0bf65494Christian Maeder
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
f5c0884429b01e74c6e658ded921fb2e16dfb478Christian MaederOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
db675e8302ddb0d6528088ce68f5e98a00e890e3Christian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder property/syntax/PropSyntaxStruct
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian MaederHaskell_files = $(addsuffix .hs, \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner## rule for ATC generation
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederhs_der_files += $(hs_clean_files)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederifneq ($(strip $(PFE_FLAGS)),)
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederTESTDIRS += ToHaskell
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerendif
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederelse
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maeder# unset this variable from var.mk because the programatica sources
dc679edd4ca027663212afdf00926ae2ce19b555Christian Maeder# are needed to created our sources!
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPFE_FLAGS =
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederendif
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# end of programatica stuff
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederTESTTARGETS = $(subst .hs,,$(TESTTARGETFILES))
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
4017ebc0f692820736d796af3110c3b3018c108aChristian MaederGHCVERSION = $(shell ghc --numeric-version)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederifneq ($(findstring 12, $(GHCVERSION)),)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederNO_BIND_WARNING = -fno-warn-unused-do-bind
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederendif
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederifneq ($(findstring 7, $(GHCVERSION)),)
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian MaederNO_BIND_WARNING = -fno-warn-unused-do-bind
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maederendif
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian MaederHC_WARN = -Wall -fwarn-tabs \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder -fwarn-unrecognised-pragmas -fno-warn-orphans $(NO_BIND_WARNING)
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# uncomment HC_PROF for profiling (and comment out packages in var.mk)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# call resulting binary with a final +RTS -p to get a file <binary>.prof
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederifneq ($(findstring -O, $(CFLAGS)),)
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerHC_DEBIAN_OPT=-O
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederendif
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederHC_OPTS += $(HC_WARN) $(HC_PROF) $(HC_DEBIAN_OPT)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# -ddump-minimal-imports
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# uncomment the above line to generate .imports files for displayDependencyGraph
8037b7d21021a94b69e4a092f5c98e491333d939cmaeder
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner# files generated by DriFT
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maederdrifted_files = Common/AS_Annotation.hs \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs Hybrid/AS_Hybrid.hs TopHybrid/AS_TopHybrid.hs \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
e6d5dbbc3308f05197868806e0b860f4f53875f1Christian Maeder Propositional/AS_BASIC_Propositional.hs \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
e4f4d096e5e6d60dd91c746d0e833d0ac7a29c50Christian Maeder CASL_DL/AS_CASL_DL.hs THF/As.hs \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder RelationalScheme/AS.hs ATC/Grothendieck.hs \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner ExtModal/AS_ExtModal.hs QBF/AS_BASIC_QBF.hs \
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder CommonLogic/AS_CommonLogic.hs Fpl/As.hs \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(gendrifted_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# files to extract data types from to generate ShATermConvertible instances
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder Common/Consistency.hs Common/ProofTree.hs \
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder Static/DgUtils.hs Static/XGraph.hs Static/DevGraph.hs \
328a85c807f2a95c3f147d10b05927eaf862ebebChristian Maeder Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
8fb127028cb7dd361e348a3252e33487f73428bcJonathan von Schroeder Common/Lib/Graph.hs Common/IRI.hs
06dd4e7c29f33f6122a910719e3bd9062256e397Andy Gimblett
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder# files generated by genRules as input for DriFT
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maederatc_der_files = $(foreach file, $(atc_files), \
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers# the rules to create ATC .der.hs file for DriFT
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederATC/Id.der.hs: Common/Id.hs $(GENRULES)
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder $(GENRULECALL) -o $@ $<
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederATC/IRI.der.hs: Common/IRI.hs $(GENRULES)
140287998aa8592c9c403bd9e308e447ba92ae11Christian Maeder $(GENRULECALL) -i ATC.Id -o $@ $<
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian MaederATC/Result.der.hs: Common/Result.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -i ATC.Id -o $@ $<
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix ReckersATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -o $@ $<
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -o $@ $<
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
3554301a34639efb6c9961a8571775d0061284c9Christian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian MaederATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder $(GENRULECALL) -o $@ $<
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder $(GENRULECALL2) -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
54ea981a0503c396c2923a1c06421c6235baf27fChristian MaederATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian MaederATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
db6729e623b4053149084ccf4b35e5308ac7e359Christian Maeder $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maeder
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian MaederATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder
819e29dba060687cf391e444e0f6ff88c1908cc3Christian MaederATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder $(GENRULECALL) -x Logic.Prover.ProverTemplate \
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder -x Logic.Prover.ConsChecker \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/DgUtils.der.hs: Static/DgUtils.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency -o $@ $<
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/XGraph.der.hs: Static/XGraph.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL2) -i ATC.DgUtils -o $@ $<
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL2) -i ATC.XGraph -i ATC.AS_Library -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# ATC files for every logic
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
ac34194a668399bb8ef238da77c3a09e93fb253bChristian Maeder CASL/AS_Basic_CASL.der.hs
4fc9de0da898448f1d3597ebbd8c04a066464c21Christian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederIsabelle_files = Isabelle/IsaSign.hs
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder
c208973c890b8f993297720fd0247bc7481d4304Christian MaederPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder Propositional/Sublogic.hs
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian MaederHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maeder HolLight/Sublogic.hs HolLight/Term.hs
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian MaederQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder QBF/AS_BASIC_QBF.hs QBF/Symbol.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder QBF/Sublogic.hs
986d3f255182539098a97ac86da9eeee5b7a72e3Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
4561227a776bdf0ab679b19fb92f1eaaed8786f7Christian Maeder
01e278bdd7dce13b9303ed3d79683d83c89d09f9Liam O'ReillyModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederHybrid_files = Hybrid/AS_Hybrid.hs Hybrid/HybridSign.hs
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik LueckeTopHybrid_files = TopHybrid/AS_TopHybrid.hs TopHybrid/TopHybridSign.hs
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder
8c812cd83569e973f10cf69a342424ceabc07af9Christian MaederTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder Temporal/Symbol.hs Temporal/Morphism.hs
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
31d6d9286988dc31639d105841296759aeb743e0Jonathan von SchroederConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai CodescuCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederCOL_files = COL/AS_COL.hs COL/COLSign.hs
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
05a206508bc898f87fe6ab6e069814df3c29d303Dominik Luecke CspCASL/Morphism.hs
05a206508bc898f87fe6ab6e069814df3c29d303Dominik Luecke
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von SchroederSoftFOL_files = SoftFOL/Sign.hs
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von SchroederVSE_files = VSE/As.hs
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von SchroederOMDoc_files = OMDoc/OMDocInterface.hs
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederLF_files = LF/Sign.hs LF/Morphism.hs LF/AS.hs
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederFramework_files = Framework/AS.hs
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Maude/Symbol.hs Maude/AS_Maude.hs
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder
0b349288edfa50fdf38fda1a14e1562d03f92574Christian MaederExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
5afff1a0f62394414c33b06141175b3ab0b117a5Christian Maeder ExtModal/MorphismExtension.hs ExtModal/Sublogic.hs
5afff1a0f62394414c33b06141175b3ab0b117a5Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs \
1b3a2f98d1cd01fc9e0591f69507e20526727559Dominik Luecke CSL/TreePO.hs
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich
e39a1626bee36d6ad13a2c0014a80ef179a65bcbChristian MaederCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
f8e1a1eca871a26a535a4ee7d51902ba94b1db1eChristian Maeder CommonLogic/Symbol.hs CommonLogic/Morphism.hs CommonLogic/Sublogic.hs
ea3bff3e547a1ac714d4db39c5efef95e02b2e7dChristian Maeder
dd6f22b9dcff2695181b86372e4df03d5b96e92dKristina SojakovaAdl_files = Adl/As.hs Adl/Sign.hs
005e0f0c6b0cc898003b03801158c208f3071fc5Kristina Sojakova
abf2487c3aece95c371ea89ac64319370dcb6483Klaus LuettichFpl_files = Fpl/As.hs Fpl/Sign.hs
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederTHF_files = THF/As.hs THF/Cons.hs THF/Sign.hs THF/Sublogic.hs
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder
76b9b2974795a6fb31f242fd032de3ff66df6204Christian MaederFreeCAD_files = FreeCAD/As.hs
74a992bd019d3319df2f21f9d358ff06cafb5f7eMihaela Turcu
8a78868bae2ec6838c87366c35c57e109154c51eChristian MaederOWL2_files = OWL2/AS.hs OWL2/Symbols.hs OWL2/Sign.hs OWL2/MS.hs \
878a5ecd6acf973907e25e5be6e4a792ea19a05eEwaryst Schulz OWL2/Morphism.hs OWL2/ProfilesAndSublogics.hs OWL2/Sublogic.hs \
878a5ecd6acf973907e25e5be6e4a792ea19a05eEwaryst Schulz OWL2/Profiles.hs
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik Dietrich
6b75c206b317eb30a08d88a8f27e0295ffeb1546Christian MaederRDF_files = RDF/AS.hs OWL2/AS.hs RDF/Symbols.hs RDF/Sign.hs RDF/Morphism.hs \
9a4b469ca0a7f44a598e551a973c75195207db58Eugen Kuksa RDF/Sublogic.hs
48aa0645e25883048369afc02aac3f49b14a50daChristian Maeder
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder# ATC DrIFT-rule generation for logics
01645eac73dbc789392674930adc5745c935f3a0Christian MaederCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von SchroederRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst SchulzPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
a604cbad8e2202147b5c6bb9f2e06ae61162d654Felix Gabriel Mance $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maeder
308834907a120fd8771e18292ed2ca9cd767c12dChristian MaederQBF/ATC_QBF.der.hs: $(QBF_files) $(GENRULES)
7834a982096d93301a4626f444dd9ea5f9fe17eaChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
1f9274bb2aa44ea236327814dce99946be52e348Felix Gabriel Mance
1f9274bb2aa44ea236327814dce99946be52e348Felix Gabriel Mance
bab2d88d650448628730ed3b65c9f99c52500e8cChristian MaederHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
8fd6a3f938496a502bc62f1923ff7c15f59acf91Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian Maeder
d62661e54e2662d53b583ae48609f5037701078dcmaederHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
9f226cec9f978edaba67aee4c4e04e3d3b994b87Daniel Calegari $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -o $@ $(Isabelle_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHybrid/ATC_Hybrid.der.hs: $(Hybrid_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Hybrid_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederTopHybrid/ATC_TopHybrid.der.hs: $(TopHybrid_files) $(GENRULES)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(TopHybrid_files)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai CodescuTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai CodescuConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von SchroederCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von SchroederSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.IRI -o $@ $(OMDoc_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederLF/ATC_LF.der.hs: $(LF_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCSL/ATC_CSL.der.hs: $(CSL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
5199920ca3b698b2149c8cb9d2ce2e98a280ff9dChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederAdl/ATC_Adl.der.hs: $(Adl_files) $(GENRULES)
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina Sojakova $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
48aa0645e25883048369afc02aac3f49b14a50daChristian Maeder
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina SojakovaFpl/ATC_Fpl.der.hs: $(Fpl_files) $(GENRULES)
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova
79834070d6d3c63a098e570b12fa3405c607dc70Kristina SojakovaTHF/ATC_THF.der.hs: $(THF_files) $(GENRULES)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder $(GENRULECALL) -i ATC.Id -i ATC.GlobalAnnotations -o $@ $(THF_files)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederFreeCAD/ATC_FreeCAD.der.hs: $(FreeCAD_files) $(GENRULES)
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(FreeCAD_files)
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder
8a78868bae2ec6838c87366c35c57e109154c51eChristian MaederOWL2/ATC_OWL2.der.hs: $(OWL2_files) $(GENRULES)
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulz $(GENRULECALL) -i ATC.Result -o $@ $(OWL2_files)
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulz
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik DietrichRDF/ATC_RDF.der.hs: $(RDF_files) $(GENRULES)
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc $(GENRULECALL) -i ATC.Result -o $@ $(RDF_files)
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc# all ATC .der.hs files for all logics
01645eac73dbc789392674930adc5745c935f3a0Christian Maederatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder
01645eac73dbc789392674930adc5745c935f3a0Christian Maedergenerated_rule_files = $(atc_der_files) $(atc_logic_files)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder# a rule to create all .der.hs files
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian MaedergenRules: $(generated_rule_files)
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias
fc09e0a6af734edbd944dd8082bb51985c233b43Alexis Tsogias# the final ATC target files created by DriFT
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogiasgendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz# all sources that need to be created before ghc can be called
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulzderived_sources += $(drifted_files) Driver/Version.hs $(hs_der_files)
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder
18d370f8341357f5d6a4068f4bb6981173ece70fFelix Gabriel Mance####################################################################
7834a982096d93301a4626f444dd9ea5f9fe17eaChristian Maeder### targets
ed1b8e97e72b2e3e92edaf2eb22a4b5373d705f1Felix Gabriel Mance
ed1b8e97e72b2e3e92edaf2eb22a4b5373d705f1Felix Gabriel Mance.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz real_clean bin_clean distclean annos checkversion \
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian Maeder check capa hacapa h2h h2hf showKP clean_genRules genRules \
fc1bf40b1196cf62c6ce5c971633b5ebfc5936efChristian Maeder count doc fromKif derivedSources release cgi ghci build callghc
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian Maeder
d62661e54e2662d53b583ae48609f5037701078dcmaeder.SECONDARY : %.hs %.d $(generated_rule_files)
d62661e54e2662d53b583ae48609f5037701078dcmaeder
d62661e54e2662d53b583ae48609f5037701078dcmaeder# dummy target to force ghc invocation
9f226cec9f978edaba67aee4c4e04e3d3b994b87Daniel Calegaricallghc:
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
c70ef4c3b3a62764f715510c9fd67dde3acfe454Christian Maederhets-opt:
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(MAKE) distclean
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(MAKE) derivedSources
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(MAKE) clean
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(MAKE) hets-optimized
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederhets-optimized: $(derived_sources)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(HC) --make -O -o hets hets.hs $(HC_OPTS)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedercgi:
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(MAKE) distclean
67d711ed8d639b1c6e123896e7133d03911c1128Christian Maeder $(MAKE) derivedSources
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(MAKE) clean
360ce9b5c746ac021944db12eb26e3df2697b8c7Christian Maeder $(MAKE) hets.cgi
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerhets.cgi: GUI/hets_cgi.hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# Documentation via haddock
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerdoc: docs/index.html
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerHADDOCK_INTERFACES = $(shell find `ghc --print-libdir`/../.. -name \*.haddock)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
756f31c6dd0843b4435c0ca66485ec19139eb1a8Eugen KuksaHAD_INTS = $(foreach file, $(HADDOCK_INTERFACES),\
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder -i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
ddbf07996361d7e88cf23858a8f85595fa493514Jonathan von SchroederHADDOCK_OPTS = $(addprefix --optghc=, $(HC_OPTS))
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerdocs/index.html:
7c99e334446bb97120e30e967baeeddfdd1278deKlaus Luettich $(RM) -r docs
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder mkdir docs
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder $(HADDOCK) -o docs -h -s ../%F $(HAD_INTS) \
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder -t 'Hets - the Heterogeneous Tool Set' \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(filter-out Scratch.hs, $(wildcard *.hs))
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerderivedSources: $(derived_sources)
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner$(DRIFT): $(DRIFT_deps)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner$(DTD2HS): $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell.hs
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner mkdir -p utils/DtdToHaskell-src/DtdToHaskell
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner cp -f $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) --make -iutils/DtdToHaskell-src \
011156728d0d9ae2a044ce2d01e62228720b1aa2cmaeder utils/DtdToHaskell-src/DtdToHaskell.hs -o $@ $(HC_OPTS)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerIsabelle/IsaExport.hs: $(DTD2HS) Isabelle/IsaExport.dtd
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner ($(DTD2HS) Isabelle/IsaExport.dtd Isabelle/IsaExport.hs Isabelle.)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner$(GENRULES): $(DRIFT) $(GENERATERULES_deps)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner (cd utils/GenerateRules; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner GenerateRules.hs -o ../genRules)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) --make -o $@ $<
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner# release management
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerREV = trunk
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerrelease:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(RM) -r Hets
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner cp Makefile Makefile.orig; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner cp ReleaseMakefile Makefile; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner ./clean.sh; \
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) clean.*; utils/replaceAllHeaders.sh)
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich $(TAR) cvf Hets.tar Hets
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# Common/LaTeX_maps.hs generation
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerutils/genItCorrections: $(GENITCORRECTIONS_deps)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(HC) --make -o $@ $<
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @echo -n "Generating pretty/LaTeX_maps.hs ... "
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @(cd pretty >/dev/null; ../utils/genItCorrections \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner gen_it_characters gen_it_words >> LaTeX_maps.hs)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @echo "ready"
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @echo "please copy the file manually to Common"
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner### clean up
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettichclean_genRules:
756f31c6dd0843b4435c0ca66485ec19139eb1a8Eugen Kuksa $(RM) $(generated_rule_files) $(gendrifted_files) \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(hs_clean_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerclean: bin_clean o_clean clean_pretty clean_javastuff
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner### removes all *.o, *.hi and *.p_o files in all subdirectories
0a5571c8adeddd27548445546491725beb224dddChristian Maedero_clean:
0a5571c8adeddd27548445546491725beb224dddChristian Maeder find . -name \*.o -o -name \*.hi -o -name \*.p_o \
0a5571c8adeddd27548445546491725beb224dddChristian Maeder -o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
0a5571c8adeddd27548445546491725beb224dddChristian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner### remove binaries
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerbin_clean:
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) hets
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(RM) hets.cgi
e642ad0e782f9bb9ba310164358220402eec8cd8Christian Maeder $(RM) $(TESTTARGETS)
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maederclean_pretty:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner pretty/generated_words.tex
ddbf07996361d7e88cf23858a8f85595fa493514Jonathan von Schroeder $(RM) test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty}
ddbf07996361d7e88cf23858a8f85595fa493514Jonathan von Schroeder $(RM) test/*/log
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder $(RM) ToHaskell/test/*.{out,output}
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) */test/temp*
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(RM) doc/UserGuide.{log,aux,bbl,blg,out,pdf}
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerclean_javastuff:
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) OWL2/*.jar OWL2/java/lib/*.jar
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) -r OWL2/java/build OWL2/lib
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder### additionally removes the library files
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroederreal_clean: clean
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder### additionally removes generated files not in the repository tree
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maederdistclean: clean clean_genRules
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) $(derived_sources)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) utils/appendHaskellPreludeString
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) utils/DrIFT utils/genRules
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(RM) $(DTD2HS)
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder $(RM) -r utils/DtdToHaskell-src/DtdToHaskell
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder $(RM) -r docs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### interactive
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichghci: $(derived_sources)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich ghci $(HC_OPTS)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### build only, don't link
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerbuild: hets.hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(HC) --make -c $< $(HC_OPTS)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner### Kif parser
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerfromKif: CASL/fromKif
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder### Annos parser
ab4256496e72886018b78571057331f373da6883Eugen Kuksaannos: Common/annos
6694c438d217541c65c4b16364c23f2b68f3a966Eugen Kuksa
ab4256496e72886018b78571057331f373da6883Eugen Kuksa### CASL parser
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maedercapa: CASL/capa
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich### HasCASL parser
91432c9a2d813a8322dea3a3f54924c796897f09Eugen Kuksahacapa: HasCASL/hacapa
91432c9a2d813a8322dea3a3f54924c796897f09Eugen Kuksa
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich### Haskell analysis
91432c9a2d813a8322dea3a3f54924c796897f09Eugen Kuksahana: Haskell/hana
91432c9a2d813a8322dea3a3f54924c796897f09Eugen Kuksa
91432c9a2d813a8322dea3a3f54924c796897f09Eugen Kuksa### Haskell to Isabelle-HOLCF translation
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerh2hf: Haskell/h2hf
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b9625461755578f3eed04676d42a63fd2caebd0cChristian MaederHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder Common/Lib/*.hs Comorphisms/*.hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(HC) -O --make -o $@ $< $(HC_OPTS)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner### HasCASL to Haskell translation
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerh2h: Haskell/h2h
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### test program to check the known provers
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknershowKP: Comorphisms/test/showKP
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner### run tests in other directories
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknercheck: $(TESTTARGETS)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner## Preparing the version of Hets
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerDriver/Version.hs: Driver/Version.in version_nr checkversion
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(RM) $@
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner cp Driver/Version.in $@
62f5e02856861853dcc9ffb8c0a688835eb729aeJens Elkner echo " ++ \"$(shell cat version_nr), $(shell date +"%d %b %Y")\"" >> $@
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner chmod 444 $@
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknercheckversion:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
1365c420ef71be3d52796ebd369dc2defdedc822Christian MaederATC/DevGraph.hs: Static/DevGraph.hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner## two dependencies to avoid circular prerequisites
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
62f5e02856861853dcc9ffb8c0a688835eb729aeJens Elkner Common/annos Common/test_parser Comorphisms/test/showKP \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
e420b3848a0e15a9e074b08c413996cbeb5ab06dChristian Maeder Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
ab4256496e72886018b78571057331f373da6883Eugen Kuksa
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner$(CASL_DEPENDENT_BINARIES): $(derived_sources)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner## suffix rules
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner.SUFFIXES:
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner## rule for GHC
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner%: %.hs callghc
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) --make -o $@ $< $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## rule for DrIFT
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner%.hs: %.der.hs $(DRIFT)
4c7cb5671b356d873d67829ec8062a5083c1ee0eEugen Kuksa $(RM) $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner chmod 444 $@
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner## compiling rules for object and interface files
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner%.o %.hi: %.hs
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl $(HC) -c $< $(HC_OPTS)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder%.o %.hi: %.lhs
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder $(HC) -c $< $(HC_OPTS)
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder## compiling rules for dependencies
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder%.d : %.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.d : %.lhs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## Rule to generate hs files from glade files. Needed for GTK
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski%.hs: %.glade utils/appendHaskellPreludeString \
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski GUI/Glade/Template.append.hs
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski b=`basename $< .glade`; \
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder utils/appendHaskellPreludeString $< > $@
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maeder# directory for installers
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian MaederINSTALLER_DIR = ../installers
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torriniifeq ($(strip $(HETS_VERSION)),)
23ab8855c58adfbd03a0730584b917b24c603901Christian MaederHETS_VERSION := `cat version_nr`
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder# or `date +%F`
23ab8855c58adfbd03a0730584b917b24c603901Christian Maederendif
e50e41135ece589f7202bd4ef8d6b97531c2a56eKlaus Luettich
47b0e9f3cb008cb7997f4e3bae26e4d62dcc887aChristian Maeder# prepare installer creation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederinitialize_installer:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder mkdir -p $(INSTALLER_DIR)
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder > $(INSTALLER_DIR)/Makefile
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @echo Please do
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @echo " -> cd $(INSTALLER_DIR)"
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @echo " -> make"
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @echo and wait until it is finished
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder
39bc7bbfc84f8b49f8434d299ec3a602c0437581Christian Maeder# check out java parts for OWL
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerowl_java:
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) -r OWL2/java/OwlApi
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner svn export \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder https://owlapi.svn.sourceforge.net/svnroot/owlapi/v3/trunk \
39bc7bbfc84f8b49f8434d299ec3a602c0437581Christian Maeder OWL2/java/OwlApi
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerinitialize_java: owl_java
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ant -q init
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerjava-libs:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ant -q java-libs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerjava-files:
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich ant -q java-files
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian Maeder
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian Maederjava-clean:
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder ant -q java-clean
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich# download dependencies for RDF Jena-api
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettichrdf_java:
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich mkdir -p RDF/java/lib
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder if [ -f RDF/java/lib/arq-2.8.7.jar ]; then \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner echo "File arq-2.8.7.jar already exists"; \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder else \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder 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; \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder fi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder if [ -f RDF/java/lib/icu4j-3.4.4.jar ]; then \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder echo "File icu4j-3.4.4.jar already exists"; \
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder else \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner 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; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner fi
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder if [ -f RDF/java/lib/iri-0.8.jar ]; then \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder echo "File iri-0.8.jar already exists"; \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder else \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner 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; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder fi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder if [ -f RDF/java/lib/jena-2.6.4.jar ]; then \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder echo "File jena-2.6.4.jar already exists"; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner else \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder 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; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder fi
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner if [ -f RDF/java/lib/junit-4.5.jar ]; then \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder echo "File junit-4.5.jar already exists"; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder else \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder curl -o RDF/java/lib/junit-4.5.jar http://repo1.maven.org/maven2/junit/junit/4.5/junit-4.5.jar; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner fi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder if [ -f RDF/java/lib/log4j-1.2.13.jar ]; then \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder echo "File log4j-1.2.13.jar already exists"; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner else \
1a6464613c59e35072b90ca296ae402cbe956144Christian Maeder 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; \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder fi
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder if [ -f RDF/java/lib/lucene-core-2.3.1.jar ]; then \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder echo "File lucene-core-2.3.1.jar already exists"; \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder else \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder 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; \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder fi
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder if [ -f RDF/java/lib/slf4j-api-1.5.8.jar ]; then \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder echo "File slf4j-api-1.5.8.jar already exists"; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner else \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner 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; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner fi
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner if [ -f RDF/java/lib/slf4j-log4j12-1.5.8.jar ]; then \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner echo "File slf4j-log4j12-1.5.8.jar already exists"; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner else \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner 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; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner fi
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner if [ -f RDF/java/lib/stax-api-1.0.1.jar ]; then \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner echo "File stax-api-1.0.1.jar already exists"; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner else \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner curl -o RDF/java/lib/stax-api-1.0.1.jar http://dist.codehaus.org/stax/jars/stax-api-1.0.1.jar; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner fi
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner if [ -f RDF/java/lib/wstx-asl-3.2.9.jar ]; then \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner echo "File wstx-asl-3.2.9.jar already exists"; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner else \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner 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; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner fi
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner if [ -f RDF/java/lib/xercesImpl-2.7.1.jar ]; then \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner echo "File xercesImpl-2.7.1.jar already exists"; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner else \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner curl -o RDF/java/lib/xercesImpl-2.7.1.jar http://mirrors.ibiblio.org/pub/mirrors/maven2/xerces/xercesImpl/2.7.1/xercesImpl-2.7.1.jar; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner fi
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner# download rdf4h, unpack and install
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerrdf4h:
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner cabal install http://protempore.net/rdf4h/rdf4h-0.6.1.tar.gz
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner