Makefile revision f5c0884429b01e74c6e658ded921fb2e16dfb478
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 Elkner# list glade files
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerderived_sources += $(GTK_GLADE_HSFILES)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# the list of logics that need ShATermConvertible instances
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerlogics = CASL HasCASL Isabelle Modal Temporal CoCASL COL CspCASL CASL_DL \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner SoftFOL ConstraintCASL Propositional RelationalScheme VSE OMDoc DFOL \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl THF \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner FreeCAD OWL2
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
ce39be56aeedc8d333b72b1662548d36097fa22fJens Elkner Common/ATerm/ATermDiffMain.hs Common/annos.hs \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder Common/testxupdate.hs Common/testxpath.hs \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder### list of directories to run checks in
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederTESTDIRS += Common CASL Fpl/test HasCASL test ExtModal/Tries \
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich CommonLogic/TestData
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder
ad270004874ce1d0697fb30d7309f180553bb315Christian Maederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederPFE_TOOLDIR = $(wildcard programatica/tools)
1a38107941725211e7c3f051f7a8f5e12199f03acmaederifneq ($(strip $(PFE_TOOLDIR)),)
ce5b44277ea06257548ff625e928cb1290c6d297cmaederPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
fa8878c6145f652f615a04a5e9c15a1d1327bc92cmaeder base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
ce5b44277ea06257548ff625e928cb1290c6d297cmaeder base/transforms base/transforms/Deriving property \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/syntax property/AST property/transforms \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/TI property/defs property/parse2 property/parse2/Parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroederlogics += Haskell
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroederderived_sources += Haskell/PreludeString.hs
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder Haskell/ProgramaticaPrelude.hs
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder## rule for appendHaskellPreludeString
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder $(APPENDPRELUDESTRING)
825a1e4ca1e768de4b4883c65a6cb1dce6aa0002Christian Maeder $(RM) $@
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder $(APPENDPRELUDESTRING) < $< > $@
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder chmod 444 $@
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder HsModule HsName HsLiteral HsIdent
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder#files in base/TI/
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian Maeder#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian Maeder
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maeder#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder
d62661e54e2662d53b583ae48609f5037701078dcmaederOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
8cacad2a09782249243b80985f28e9387019fe40Christian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
6a2dad705deefd1b7a7e09b84fd2d75f2213be47Christian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian Maeder property/syntax/PropSyntaxStruct
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder
014dc30f64ec25e4790cca987d4d1e6635430510Christian MaederHaskell_files = $(addsuffix .hs, \
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
6aea82c63ba1d2efc0329bc784a14e521469ec20Christian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder
feca1d35123d8c31aee238c9ce79947b0bf65494Christian Maeder## rule for ATC generation
431d34c7007a787331c4e5ec997badb0f8190fc7Christian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
f5c0884429b01e74c6e658ded921fb2e16dfb478Christian Maeder
db675e8302ddb0d6528088ce68f5e98a00e890e3Christian Maederhs_der_files += $(hs_clean_files)
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian MaederTESTDIRS += ToHaskell
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian MaederTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maederelse
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# unset this variable from var.mk because the programatica sources
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner# are needed to created our sources!
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerPFE_FLAGS =
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerendif
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# end of programatica stuff
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederTESTTARGETS = $(subst .hs,,$(TESTTARGETFILES))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederGHCVERSION = $(shell ghc --numeric-version)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederifneq ($(findstring 12, $(GHCVERSION)),)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerNO_BIND_WARNING = -fno-warn-unused-do-bind
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerendif
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maederifneq ($(findstring 7, $(GHCVERSION)),)
dc679edd4ca027663212afdf00926ae2ce19b555Christian MaederNO_BIND_WARNING = -fno-warn-unused-do-bind -fno-warn-warnings-deprecations
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederendif
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHC_WARN = -Wall -fno-warn-orphans $(NO_BIND_WARNING)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# uncomment HC_PROF for profiling (and comment out packages in var.mk)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# call resulting binary with a final +RTS -p to get a file <binary>.prof
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederifneq ($(findstring -O, $(CFLAGS)),)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHC_DEBIAN_OPT=-O
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederendif
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian MaederHC_OPTS += $(HC_WARN) $(HC_PROF) $(HC_DEBIAN_OPT)
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder# -ddump-minimal-imports
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder# uncomment the above line to generate .imports files for displayDependencyGraph
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder# files generated by DriFT
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maederdrifted_files = Common/AS_Annotation.hs \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Propositional/AS_BASIC_Propositional.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder CASL_DL/AS_CASL_DL.hs \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder RelationalScheme/AS.hs ATC/Grothendieck.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder ExtModal/AS_ExtModal.hs QBF/AS_BASIC_QBF.hs \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder CommonLogic/AS_CommonLogic.hs Fpl/As.hs \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(gendrifted_files)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
8037b7d21021a94b69e4a092f5c98e491333d939cmaeder# files to extract data types from to generate ShATermConvertible instances
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkneratc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
e6d5dbbc3308f05197868806e0b860f4f53875f1Christian Maeder Common/Consistency.hs Common/ProofTree.hs \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder Static/DgUtils.hs Static/XGraph.hs Static/DevGraph.hs \
e4f4d096e5e6d60dd91c746d0e833d0ac7a29c50Christian Maeder Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner Common/Lib/Graph.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner# files generated by genRules as input for DriFT
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maederatc_der_files = $(foreach file, $(atc_files), \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner ATC/$(basename $(basename $(notdir $(file)))).der.hs)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# the rules to create ATC .der.hs file for DriFT
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederATC/Id.der.hs: Common/Id.hs $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -o $@ $<
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von SchroederATC/Result.der.hs: Common/Result.hs $(GENRULES)
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder $(GENRULECALL) -i ATC.Id -o $@ $<
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder
328a85c807f2a95c3f147d10b05927eaf862ebebChristian MaederATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
8fb127028cb7dd361e348a3252e33487f73428bcJonathan von Schroeder $(GENRULECALL) -o $@ $<
06dd4e7c29f33f6122a910719e3bd9062256e397Andy Gimblett
254df6f22d01eacf7c57b85729e0445747b630d9Christian MaederATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder $(GENRULECALL) -o $@ $<
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian MaederATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(GENRULECALL) -o $@ $<
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
819e29dba060687cf391e444e0f6ff88c1908cc3Christian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
140287998aa8592c9c403bd9e308e447ba92ae11Christian MaederATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL2) -o $@ $<
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder
3554301a34639efb6c9961a8571775d0061284c9Christian MaederATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -x Logic.Prover.ProverTemplate \
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder -x Logic.Prover.ConsChecker \
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/DgUtils.der.hs: Static/DgUtils.hs $(GENRULES)
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
54ea981a0503c396c2923a1c06421c6235baf27fChristian MaederATC/XGraph.der.hs: Static/XGraph.hs $(GENRULES)
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder $(GENRULECALL2) -i ATC.DgUtils -o $@ $<
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian MaederATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
db6729e623b4053149084ccf4b35e5308ac7e359Christian Maeder $(GENRULECALL2) -i ATC.XGraph -i ATC.AS_Library -o $@ $<
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maeder
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder# ATC files for every logic
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder CASL/AS_Basic_CASL.der.hs
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder
819e29dba060687cf391e444e0f6ff88c1908cc3Christian MaederHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
819e29dba060687cf391e444e0f6ff88c1908cc3Christian MaederIsabelle_files = Isabelle/IsaSign.hs
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
254df6f22d01eacf7c57b85729e0445747b630d9Christian MaederPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder Propositional/Sublogic.hs
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder HolLight/Sublogic.hs HolLight/Term.hs
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder QBF/AS_BASIC_QBF.hs QBF/Symbol.hs \
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder QBF/Sublogic.hs
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
ac34194a668399bb8ef238da77c3a09e93fb253bChristian Maeder
4fc9de0da898448f1d3597ebbd8c04a066464c21Christian MaederModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder Temporal/Symbol.hs Temporal/Morphism.hs
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder
c208973c890b8f993297720fd0247bc7481d4304Christian MaederConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
c208973c890b8f993297720fd0247bc7481d4304Christian MaederCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian MaederCOL_files = COL/AS_COL.hs COL/COLSign.hs
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian MaederCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maeder CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder CspCASL/Morphism.hs
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederSoftFOL_files = SoftFOL/Sign.hs
986d3f255182539098a97ac86da9eeee5b7a72e3Christian MaederVSE_files = VSE/As.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederOMDoc_files = OMDoc/OMDocInterface.hs
4561227a776bdf0ab679b19fb92f1eaaed8786f7Christian MaederDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
01e278bdd7dce13b9303ed3d79683d83c89d09f9Liam O'ReillyLF_files = LF/Sign.hs LF/Morphism.hs LF/AS.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederFramework_files = Framework/AS.hs
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik Luecke
8c812cd83569e973f10cf69a342424ceabc07af9Christian MaederMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder Maude/Symbol.hs Maude/AS_Maude.hs
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai CodescuExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
31d6d9286988dc31639d105841296759aeb743e0Jonathan von Schroeder ExtModal/MorphismExtension.hs
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs \
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder CSL/TreePO.hs
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
05a206508bc898f87fe6ab6e069814df3c29d303Dominik Luecke CommonLogic/Symbol.hs CommonLogic/Morphism.hs CommonLogic/Sublogic.hs
05a206508bc898f87fe6ab6e069814df3c29d303Dominik Luecke
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederAdl_files = Adl/As.hs Adl/Sign.hs
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von SchroederFpl_files = Fpl/As.hs Fpl/Sign.hs
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederTHF_files = THF/As.hs THF/Cons.hs THF/Sign.hs
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian Maeder
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederFreeCAD_files = FreeCAD/As.hs
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederOWL2_files = OWL2/AS.hs OWL2/Symbols.hs OWL2/Sign.hs OWL2/MS.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder OWL2/Morphism.hs OWL2/ProfilesAndSublogics.hs OWL2/Sublogic.hs \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder OWL2/Profiles.hs
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder
5afff1a0f62394414c33b06141175b3ab0b117a5Christian Maeder# ATC DrIFT-rule generation for logics
5afff1a0f62394414c33b06141175b3ab0b117a5Christian MaederCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
1b3a2f98d1cd01fc9e0591f69507e20526727559Dominik Luecke
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus LuettichRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
e39a1626bee36d6ad13a2c0014a80ef179a65bcbChristian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
f8e1a1eca871a26a535a4ee7d51902ba94b1db1eChristian Maeder
ea3bff3e547a1ac714d4db39c5efef95e02b2e7dChristian MaederPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
dd6f22b9dcff2695181b86372e4df03d5b96e92dKristina Sojakova $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
005e0f0c6b0cc898003b03801158c208f3071fc5Kristina Sojakova
abf2487c3aece95c371ea89ac64319370dcb6483Klaus LuettichQBF/ATC_QBF.der.hs: $(QBF_files) $(GENRULES)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder
76b9b2974795a6fb31f242fd032de3ff66df6204Christian MaederHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
74a992bd019d3319df2f21f9d358ff06cafb5f7eMihaela Turcu $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder
878a5ecd6acf973907e25e5be6e4a792ea19a05eEwaryst SchulzHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
878a5ecd6acf973907e25e5be6e4a792ea19a05eEwaryst Schulz $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik Dietrich
6b75c206b317eb30a08d88a8f27e0295ffeb1546Christian MaederIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
9a4b469ca0a7f44a598e551a973c75195207db58Eugen Kuksa $(GENRULECALL) -o $@ $(Isabelle_files)
48aa0645e25883048369afc02aac3f49b14a50daChristian Maeder
01645eac73dbc789392674930adc5745c935f3a0Christian MaederModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian MaederTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von Schroeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst SchulzConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
a604cbad8e2202147b5c6bb9f2e06ae61162d654Felix Gabriel Mance
308834907a120fd8771e18292ed2ca9cd767c12dChristian MaederCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
7834a982096d93301a4626f444dd9ea5f9fe17eaChristian Maeder
1f9274bb2aa44ea236327814dce99946be52e348Felix Gabriel ManceCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
1f9274bb2aa44ea236327814dce99946be52e348Felix Gabriel Mance $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder
8fd6a3f938496a502bc62f1923ff7c15f59acf91Christian MaederCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
d62661e54e2662d53b583ae48609f5037701078dcmaeder
9f226cec9f978edaba67aee4c4e04e3d3b994b87Daniel CalegariCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederSoftFOL/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 OMDoc.ATerm -o $@ $(OMDoc_files)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai CodescuLF/ATC_LF.der.hs: $(LF_files) $(GENRULES)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
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
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von SchroederCSL/ATC_CSL.der.hs: $(CSL_files) $(GENRULES)
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von SchroederCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederAdl/ATC_Adl.der.hs: $(Adl_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederFpl/ATC_Fpl.der.hs: $(Fpl_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederTHF/ATC_THF.der.hs: $(THF_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.Id -i ATC.GlobalAnnotations -o $@ $(THF_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederFreeCAD/ATC_FreeCAD.der.hs: $(FreeCAD_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(FreeCAD_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederOWL2/ATC_OWL2.der.hs: $(OWL2_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.Result -o $@ $(OWL2_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# all ATC .der.hs files for all logics
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maedergenerated_rule_files = $(atc_der_files) $(atc_logic_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# a rule to create all .der.hs files
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaedergenRules: $(generated_rule_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# the final ATC target files created by DriFT
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maedergendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
5199920ca3b698b2149c8cb9d2ce2e98a280ff9dChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# all sources that need to be created before ghc can be called
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederderived_sources += $(drifted_files) Driver/Version.hs $(hs_der_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder####################################################################
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina Sojakova### targets
48aa0645e25883048369afc02aac3f49b14a50daChristian Maeder
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina Sojakova.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova real_clean bin_clean distclean maintainer-clean annos \
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova check capa hacapa h2h h2hf showKP clean_genRules genRules \
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova count doc fromKif derivedSources release cgi ghci build callghc
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder.SECONDARY : %.hs %.d $(generated_rule_files)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder# dummy target to force ghc invocation
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maedercallghc:
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulzhets-opt:
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulz $(MAKE) distclean
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik Dietrich $(MAKE) derivedSources
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc $(MAKE) clean
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc $(MAKE) hets-optimized
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc
01645eac73dbc789392674930adc5745c935f3a0Christian Maederhets-optimized: $(derived_sources)
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder $(HC) --make -O -o hets hets.hs $(HC_OPTS)
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maedercgi:
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder $(MAKE) distclean
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder $(MAKE) derivedSources
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias $(MAKE) clean
fc09e0a6af734edbd944dd8082bb51985c233b43Alexis Tsogias $(MAKE) hets.cgi
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulzhets.cgi: GUI/hets_cgi.hs
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder# Documentation via haddock
18d370f8341357f5d6a4068f4bb6981173ece70fFelix Gabriel Mancedoc: docs/index.html
7834a982096d93301a4626f444dd9ea5f9fe17eaChristian Maeder
ed1b8e97e72b2e3e92edaf2eb22a4b5373d705f1Felix Gabriel ManceHADDOCK_INTERFACES = $(shell find `ghc --print-libdir`/../.. -name \*.haddock)
ed1b8e97e72b2e3e92edaf2eb22a4b5373d705f1Felix Gabriel Mance
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst SchulzHAD_INTS = $(foreach file, $(HADDOCK_INTERFACES),\
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian Maeder -i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
fc1bf40b1196cf62c6ce5c971633b5ebfc5936efChristian Maeder
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian MaederHADDOCK_OPTS = $(addprefix --optghc=, $(HC_OPTS))
d62661e54e2662d53b583ae48609f5037701078dcmaederdocs/index.html:
d62661e54e2662d53b583ae48609f5037701078dcmaeder $(RM) -r docs
d62661e54e2662d53b583ae48609f5037701078dcmaeder mkdir docs
9f226cec9f978edaba67aee4c4e04e3d3b994b87Daniel Calegari $(HADDOCK) --ignore-all-exports -o docs -h -s ../%F $(HAD_INTS) \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder -t 'Hets - the Heterogeneous Tool Set' \
c70ef4c3b3a62764f715510c9fd67dde3acfe454Christian Maeder -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder Syntax/ADoc.hs $(filter-out Scratch.hs, $(wildcard *.hs))
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix ReckersderivedSources: $(derived_sources)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder$(DRIFT): $(DRIFT_deps)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder$(GENRULES): $(DRIFT) $(GENERATERULES_deps)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder (cd utils/GenerateRules; \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
67d711ed8d639b1c6e123896e7133d03911c1128Christian Maeder GenerateRules.hs -o ../genRules)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
360ce9b5c746ac021944db12eb26e3df2697b8c7Christian Maederutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(HC) --make -o $@ $<
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens 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; \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder ./clean.sh; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
ddbf07996361d7e88cf23858a8f85595fa493514Jonathan von Schroeder $(RM) clean.*; utils/replaceAllHeaders.sh)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(TAR) cvf Hets.tar Hets
7c99e334446bb97120e30e967baeeddfdd1278deKlaus Luettich
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder# Common/LaTeX_maps.hs generation
f5c9b1e739228c2a2edf055ac419583412569683Christian Maederutils/genItCorrections: $(GENITCORRECTIONS_deps)
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder $(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
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @echo -n "Generating pretty/LaTeX_maps.hs ... "
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @(cd pretty >/dev/null; ../utils/genItCorrections \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner gen_it_characters gen_it_words >> LaTeX_maps.hs)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @echo "ready"
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @echo "please copy the file manually to Common"
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner### clean up
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerclean_genRules:
011156728d0d9ae2a044ce2d01e62228720b1aa2cmaeder $(RM) $(generated_rule_files) $(gendrifted_files) \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(hs_clean_files)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerclean: bin_clean o_clean clean_pretty clean_javastuff
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner### removes all *.o, *.hi and *.p_o files in all subdirectories
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknero_clean:
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner find . -name \*.o -o -name \*.hi -o -name \*.p_o \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner -o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner### remove binaries
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerbin_clean:
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) hets
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) hets.cgi
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(RM) $(TESTTARGETS)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerclean_pretty:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner pretty/generated_words.tex
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty}
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) test/*/log
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) ToHaskell/test/*.{out,output}
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder $(RM) */test/temp*
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) doc/UserGuide.{log,aux,bbl,blg,out,pdf}
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerclean_javastuff:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(RM) OWL2/*.jar OWL2/java/lib/*.jar
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(RM) -r OWL2/java/build OWL2/lib
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner### additionally removes the library files
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerreal_clean: clean
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner### additionally removes generated files not in the CVS tree
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerdistclean: clean clean_genRules
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(RM) $(derived_sources)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(RM) utils/appendHaskellPreludeString
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(RM) utils/DrIFT utils/genRules
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(RM) -r docs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettichmaintainer-clean: distclean
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(RM) -r $(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### interactive
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerghci: $(derived_sources)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ghci $(HC_OPTS)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
0a5571c8adeddd27548445546491725beb224dddChristian Maeder### build only, don't link
0a5571c8adeddd27548445546491725beb224dddChristian Maederbuild: hets.hs
0a5571c8adeddd27548445546491725beb224dddChristian Maeder $(HC) --make -c $< $(HC_OPTS)
0a5571c8adeddd27548445546491725beb224dddChristian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner### Kif parser
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerfromKif: CASL/fromKif
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner### Annos parser
e642ad0e782f9bb9ba310164358220402eec8cd8Christian Maederannos: Common/annos
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder### CASL parser
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknercapa: CASL/capa
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
ddbf07996361d7e88cf23858a8f85595fa493514Jonathan von Schroeder### HasCASL parser
ddbf07996361d7e88cf23858a8f85595fa493514Jonathan von Schroederhacapa: HasCASL/hacapa
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner### Haskell analysis
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maederhana: Haskell/hana
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner### Haskell to Isabelle-HOLCF translation
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerh2hf: Haskell/h2hf
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder Common/Lib/*.hs Comorphisms/*.hs
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder $(HC) -O --make -o $@ $< $(HC_OPTS)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder### HasCASL to Haskell translation
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maederh2h: Haskell/h2h
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner### test program to check the known provers
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknershowKP: Comorphisms/test/showKP
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder### run tests in other directories
1dfba1f850f6a43094962b459998d1ea11472461Christian Maedercheck: $(TESTTARGETS)
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich## Preparing the version of Hets
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus LuettichDriver/Version.hs: Driver/Version.in version_nr
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(RM) $@
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich LANG=C $(PERL) utils/build_version.pl version_nr \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich < Driver/Version.in > $@
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner chmod 444 $@
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner## two hardcoded dependencies for a correct generation of Version.hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerhets.hs: Driver/Version.hs
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederATC/DevGraph.hs: Static/DevGraph.hs
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner## two dependencies to avoid circular prerequisites
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus LuettichCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
82e29b77f0ef4cccd7ed734692c5e1e93dbbc645Christian Maeder Common/annos Common/test_parser Comorphisms/test/showKP \
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner$(CASL_DEPENDENT_BINARIES): $(derived_sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder## suffix rules
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder.SUFFIXES:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner## rule for GHC
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner%: %.hs callghc
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(HC) --make -o $@ $< $(HC_OPTS)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## rule for DrIFT
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner%.hs: %.der.hs $(DRIFT)
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder $(RM) $@
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner chmod 444 $@
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner## compiling rules for object and interface files
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner%.o %.hi: %.hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(HC) -c $< $(HC_OPTS)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner%.o %.hi: %.lhs
62f5e02856861853dcc9ffb8c0a688835eb729aeJens Elkner $(HC) -c $< $(HC_OPTS)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich## compiling rules for dependencies
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner%.d : %.hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
1365c420ef71be3d52796ebd369dc2defdedc822Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner%.d : %.lhs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
62f5e02856861853dcc9ffb8c0a688835eb729aeJens Elkner## Rule to generate hs files from glade files. Needed for GTK
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.hs: %.glade utils/appendHaskellPreludeString \
e420b3848a0e15a9e074b08c413996cbeb5ab06dChristian Maeder GUI/Glade/Template.append.hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner b=`basename $< .glade`; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner utils/appendHaskellPreludeString $< > $@
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner# directory for installers
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerINSTALLER_DIR = ../installers
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerifeq ($(strip $(HETS_VERSION)),)
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerHETS_VERSION := `cat version_nr`
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# or `date +%F`
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederendif
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
5580ab3e64410186ccd36cde8a94282d8757ac0dChristian Maeder# prepare installer creation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederinitialize_installer:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner mkdir -p $(INSTALLER_DIR)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner > $(INSTALLER_DIR)/Makefile
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @echo Please do
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl @echo " -> cd $(INSTALLER_DIR)"
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder @echo " -> make"
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder @echo and wait until it is finished
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder# check out java parts for OWL
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maederowl_java:
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder svn co \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder https://owlapi.svn.sourceforge.net/svnroot/owlapi/v3/trunk \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder OWL2/java/OwlApi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederinitialize_java: owl_java
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder ant -q init
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowskijava-libs:
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski ant -q java-libs
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrinijava-files:
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder ant -q java-files
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maederjava-clean:
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maeder ant -q java-clean
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini# download dependencies for RDF Jena-api
23ab8855c58adfbd03a0730584b917b24c603901Christian Maederrdf_java:
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder mkdir -p RDF/java/lib
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder if [ -f RDF/java/lib/arq-2.8.7.jar ]; then \
e50e41135ece589f7202bd4ef8d6b97531c2a56eKlaus Luettich echo "File arq-2.8.7.jar already exists"; \
47b0e9f3cb008cb7997f4e3bae26e4d62dcc887aChristian Maeder else \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian 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; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder fi
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder if [ -f RDF/java/lib/icu4j-3.4.4.jar ]; then \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder echo "File icu4j-3.4.4.jar already exists"; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder else \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens 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; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner fi
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner if [ -f RDF/java/lib/iri-0.8.jar ]; then \
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder echo "File iri-0.8.jar already exists"; \
39bc7bbfc84f8b49f8434d299ec3a602c0437581Christian 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; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner fi
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner if [ -f RDF/java/lib/jena-2.6.4.jar ]; then \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder echo "File jena-2.6.4.jar already exists"; \
39bc7bbfc84f8b49f8434d299ec3a602c0437581Christian Maeder else \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner 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; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner fi
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner if [ -f RDF/java/lib/junit-4.5.jar ]; then \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner echo "File junit-4.5.jar already exists"; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner else \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner curl -o RDF/java/lib/junit-4.5.jar http://repo1.maven.org/maven2/junit/junit/4.5/junit-4.5.jar; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner fi
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner if [ -f RDF/java/lib/log4j-1.2.13.jar ]; then \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich echo "File log4j-1.2.13.jar already exists"; \
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian Maeder else \
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian 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; \
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder fi
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder if [ -f RDF/java/lib/lucene-core-2.3.1.jar ]; then \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich echo "File lucene-core-2.3.1.jar already exists"; \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich else \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich 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; \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder fi
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner if [ -f RDF/java/lib/slf4j-api-1.5.8.jar ]; then \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder echo "File slf4j-api-1.5.8.jar already exists"; \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder else \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder 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; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder fi
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder if [ -f RDF/java/lib/slf4j-log4j12-1.5.8.jar ]; then \
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder echo "File slf4j-log4j12-1.5.8.jar already exists"; \
961087225d1d2b9534152a346d1a3755ed952fcdJens 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; \
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder fi
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder if [ -f RDF/java/lib/stax-api-1.0.1.jar ]; then \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder echo "File stax-api-1.0.1.jar already exists"; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner else \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder curl -o RDF/java/lib/stax-api-1.0.1.jar http://dist.codehaus.org/stax/jars/stax-api-1.0.1.jar; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder fi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder if [ -f RDF/java/lib/wstx-asl-3.2.9.jar ]; then \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner echo "File wstx-asl-3.2.9.jar already exists"; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder else \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder 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
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder if [ -f RDF/java/lib/xercesImpl-2.7.1.jar ]; then \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder echo "File xercesImpl-2.7.1.jar already exists"; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder 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; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder fi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner# download rdf4h, unpack and install
1a6464613c59e35072b90ca296ae402cbe956144Christian Maederrdf4h:
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder cabal install http://protempore.net/rdf4h/rdf4h-0.6.1.tar.gz
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder