Makefile revision 7165a916d2fa1bf87c4741ec63b253413eebbf69
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# Makefile
c63ebf815c8a874525cf18670ad74847f7fc7b26Christian Maeder# $Id$
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# This Makefile will compile the hets system and provides also
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# targets for test programs during implementation phases.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# !!! Note: This makefile is written for GNU make !!!
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# (gmake on solaris)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maederall: hets
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maederinclude var.mk
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederempty =
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederspace = $(empty) $(empty)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
a1ed34933c266ce85066acb0d7b20c90cb8eb213Christian MaederDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichDRIFT_deps = utils/DrIFT-src/*hs
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
ad270004874ce1d0697fb30d7309f180553bb315Christian MaederGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
4d56f2fa72e4aec20eb827c11ed49c8cbb7014bdChristian MaederINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
4cb215739e9ab13447fa21162482ebe485b47455Christian Maeder Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
8ef75f1cc0437656bf622cec5ac9e8ea221da8f2Christian Maeder Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPERL = perl
74eed04be26f549d2f7ca35c370e1c03879b28b1Christian MaederHAPPY = happy -sga
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederGENRULES = utils/genRules
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian MaederGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
ef9e8535c168d3f774d9e74368a2317a9eda5826Christian Maeder -i Data.Typeable -i ATerm.Lib
bab2d88d650448628730ed3b65c9f99c52500e8cChristian MaederGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder -i Data.Typeable -i ATerm.Lib -i ATC.Grothendieck
ef9e8535c168d3f774d9e74368a2317a9eda5826Christian MaederDRIFT = utils/DrIFT
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederINLINEAXIOMS = utils/outlineAxioms
e593b89bfd4952698dc37feced21cefe869d87a2Christian MaederHADDOCK = haddock
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederOSBYUNAME = $(shell uname)
c3053d57f642ca507cdf79512e604437c4546cb9Christian Maederifneq ($(findstring SunOS, $(OSBYUNAME)),)
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian MaederTAR = gtar
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian MaederPATCH = gpatch
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maederelse
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian MaederTAR = tar
05a62e84edac8c64de04f8349dee418598d216b9Christian MaederPATCH = patch
1cd4f6541984962658add5cfaa9f28a93879881bChristian Maederendif
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederARCH = $(subst $(space),,$(shell uname -m))
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederSETUP = utils/Setup
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederSETUPPACKAGE = ../$(SETUP) clean; \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder ../$(SETUP) configure -O -p $(SETUPPREFIX) --user; \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian Maeder
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder# list glade files
bab2d88d650448628730ed3b65c9f99c52500e8cChristian MaederGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
bab2d88d650448628730ed3b65c9f99c52500e8cChristian MaederGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
8cacad2a09782249243b80985f28e9387019fe40Christian Maeder
6a2dad705deefd1b7a7e09b84fd2d75f2213be47Christian Maederderived_sources += $(GTK_GLADE_HSFILES)
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder# the list of logics that need ShATermConvertible instances
014dc30f64ec25e4790cca987d4d1e6635430510Christian Maederlogics = CASL HasCASL Isabelle Modal Temporal CoCASL COL CspCASL CASL_DL \
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich SoftFOL ConstraintCASL Propositional OWL RelationalScheme VSE OMDoc DFOL \
6aea82c63ba1d2efc0329bc784a14e521469ec20Christian Maeder LF Maude ExtModal CommonLogic
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder
feca1d35123d8c31aee238c9ce79947b0bf65494Christian MaederTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
c8012b9719c73f08418af7a0b4ba28fa1d200631Christian Maeder Common/ATerm/ATermDiffMain.hs Common/annos.hs \
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder SoftFOL/dfg.hs GUI/displayDependencyGraph.hs
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder
23ffcc44ca8612feccbd8fda63fa5be7ab5f9dc3Christian Maeder### list of directories to run checks in
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederTESTDIRS += Common CASL HasCASL test
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPFE_TOOLDIR = $(wildcard ../programatica/tools)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederifneq ($(strip $(PFE_TOOLDIR)),)
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder base/transforms base/transforms/Deriving property \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/syntax property/AST property/transforms \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder property/TI property/defs property/parse2 property/parse2/Parser
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maederpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
bc8cbf12aa172bf5673b92a9e7a0151d4aa4c315Christian MaederPFE_PATH = $(addprefix -i, $(PFE_PATHS))
2d130d212db7208777ca896a7ecad619a8944971Christian Maederhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder
51d769d55d88dfa88bdf54bee78d8fa85a2deba8Christian MaederLEX_DIR = $(PFE_TOOLDIR)/base/parse2/Lexer
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maeder
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian Maederprogramatica_pkg: $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian Maeder $(LEX_DIR)/HsLex.hs $(SETUP)
b363eb04791e7f735633b9b4088502c2bc50ebfcChristian Maeder @if $(HCPKG) field programatica version; then \
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian Maeder echo "of programatica package found"; else \
1cd4f6541984962658add5cfaa9f28a93879881bChristian Maeder ($(PATCH) -usNlp0 -d $(PFE_TOOLDIR) \
1cd4f6541984962658add5cfaa9f28a93879881bChristian Maeder -i `pwd`/Haskell/Programatica.patch || exit 0); \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder cp -f utils/programatica.cabal ../programatica/tools; \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder cp -f $(SETUP) ../programatica/tools; \
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder (cd ../programatica/tools; \
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder ./Setup configure $(SETUPPREFIX); \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder ./Setup build; ./Setup install --user) fi
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder$(LEX_DIR)/HsLex.hs: $(LEX_DIR)Gen/HsLexerGen
a9b59eb2ce961014974276cdae0e9df4419bd212Christian Maeder echo "{-# OPTIONS -w #-}" > $@
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $< >> $@
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(LEX_DIR)/HsTokens.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(HC) --make -fno-monomorphism-restriction -O \
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maeder -i$(PFE_TOOLDIR)/base/tests/HbcLibraries \
dc679edd4ca027663212afdf00926ae2ce19b555Christian Maeder -i$(PFE_TOOLDIR)/base/lib \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $@.hs -o $@
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederlogics += Haskell
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederderived_sources += Haskell/PreludeString.hs
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
4017ebc0f692820736d796af3110c3b3018c108aChristian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
b568982efd0997d877286faa592d81b03c8c67b8Christian Maeder Haskell/ProgramaticaPrelude.hs
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich## rule for appendHaskellPreludeString
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(APPENDPRELUDESTRING)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(RM) $@
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(APPENDPRELUDESTRING) < $< > $@
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder chmod 444 $@
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder HsModule HsName HsLiteral HsIdent
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder#files in base/TI/
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder property/syntax/PropSyntaxStruct
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederHaskell_files = $(addsuffix .hs, \
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder## rule for ATC generation
e6d5dbbc3308f05197868806e0b860f4f53875f1Christian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
e4f4d096e5e6d60dd91c746d0e833d0ac7a29c50Christian Maeder
eb74267cf39e4e95f9eeb5c765f4c8dac33971b4Christian Maederhs_der_files += $(hs_clean_files)
eb74267cf39e4e95f9eeb5c765f4c8dac33971b4Christian Maeder
e4f4d096e5e6d60dd91c746d0e833d0ac7a29c50Christian MaederTESTDIRS += ToHaskell
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederelse
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder# unset this variable from var.mk because the programatica sources
8d178ae08a52d61379e6b8074f61646499bc88bbChristian Maeder# are needed to created our sources!
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederPFE_FLAGS =
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maederendif
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder# end of programatica stuff
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder
6cd33d6101fb1b93baa6d86fac158af18a115108Christian MaederTESTTARGETS = Test.o $(subst .hs,,$(TESTTARGETFILES))
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder
b2ac5a92cf36382e8deea5661c1964566caf72b3Christian MaederGHCVERSION = $(shell ghc --numeric-version)
59138b404f12352d103eeffbeaeb3957b90e75fdChristian Maederifneq ($(findstring 12, $(GHCVERSION)),)
b2ac5a92cf36382e8deea5661c1964566caf72b3Christian MaederNO_BIND_WARNING = -fno-warn-unused-do-bind
b2ac5a92cf36382e8deea5661c1964566caf72b3Christian Maederendif
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHC_WARN = -Wall -fno-warn-orphans $(NO_BIND_WARNING)
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian MaederINCLUDE_PATH =
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHC_INCLUDE = $(addprefix -i, $(INCLUDE_PATH))
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
0e5b095a19790411e5352fa7cf57cb0388e70472Christian Maeder# uncomment HC_PROF for profiling (and comment out packages in var.mk)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# call resulting binary with a final +RTS -p to get a file <binary>.prof
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
f1a913f880e409e7327b5deae95738b5448379a1Christian Maeder
f1a913f880e409e7327b5deae95738b5448379a1Christian MaederHC_OPTS += $(HC_WARN) $(HC_INCLUDE) $(HC_PROF)
f1a913f880e409e7327b5deae95738b5448379a1Christian Maeder# -ddump-minimal-imports
f1a913f880e409e7327b5deae95738b5448379a1Christian Maeder# uncomment the above line to generate .imports files for displayDependencyGraph
f1a913f880e409e7327b5deae95738b5448379a1Christian Maeder
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder# files generated by DriFT
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederdrifted_files = Common/AS_Annotation.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder Propositional/AS_BASIC_Propositional.hs \
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder CASL_DL/AS_CASL_DL.hs OWL/ReadWrite.hs \
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
328a85c807f2a95c3f147d10b05927eaf862ebebChristian Maeder RelationalScheme/AS.hs ATC/Grothendieck.hs \
a6db617ca58eb6a0587b6366e913107dfecb71b5Heng Jiang $(gendrifted_files)
06dd4e7c29f33f6122a910719e3bd9062256e397Andy Gimblett
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder# files to extract data types from to generate ShATermConvertible instances
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maederatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder Common/Consistency.hs Common/ProofTree.hs Static/DevGraph.hs \
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Common/Lib/Graph.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
d6697ad2479099b816203fd2c36f593c72c73c76Christian Maeder# files generated by genRules as input for DriFT
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maederatc_der_files = $(foreach file, $(atc_files), \
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers# the rules to create ATC .der.hs file for DriFT
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederATC/Id.der.hs: Common/Id.hs $(GENRULES)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(GENRULECALL) -o $@ $<
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/Result.der.hs: Common/Result.hs $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.Id -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian MaederATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder
54ea981a0503c396c2923a1c06421c6235baf27fChristian MaederATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maeder $(GENRULECALL) -o $@ $<
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder $(GENRULECALL2) -o $@ $<
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder
819e29dba060687cf391e444e0f6ff88c1908cc3Christian MaederATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
254df6f22d01eacf7c57b85729e0445747b630d9Christian MaederATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
254df6f22d01eacf7c57b85729e0445747b630d9Christian MaederATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
254df6f22d01eacf7c57b85729e0445747b630d9Christian MaederATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -x Logic.Prover.ProverTemplate \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder -x Logic.Prover.ConsChecker \
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
ac34194a668399bb8ef238da77c3a09e93fb253bChristian Maeder $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency \
4fc9de0da898448f1d3597ebbd8c04a066464c21Christian Maeder -i ATC.AS_Structured -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# ATC files for every logic
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
4fc9de0da898448f1d3597ebbd8c04a066464c21Christian Maeder CASL/AS_Basic_CASL.der.hs
df5eb1b8e587946c9d072f4ee6ac7d001719b034Christian Maeder
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian MaederHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederIsabelle_files = Isabelle/IsaSign.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
986d3f255182539098a97ac86da9eeee5b7a72e3Christian MaederPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
4561227a776bdf0ab679b19fb92f1eaaed8786f7Christian Maeder Propositional/Sublogic.hs
01e278bdd7dce13b9303ed3d79683d83c89d09f9Liam O'Reilly
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik Luecke
8c812cd83569e973f10cf69a342424ceabc07af9Christian MaederModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
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/Morphism.hs
05a206508bc898f87fe6ab6e069814df3c29d303Dominik Luecke
05a206508bc898f87fe6ab6e069814df3c29d303Dominik LueckeCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederSoftFOL_files = SoftFOL/Sign.hs
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederOWL_files = OWL/Sign.hs OWL/Sublogic.hs OWL/Morphism.hs
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederVSE_files = VSE/As.hs
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederOMDoc_files = OMDoc/OMDocInterface.hs
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till MossakowskiDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederLF_files = LF/Sign.hs LF/Morphism.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
8c812cd83569e973f10cf69a342424ceabc07af9Christian MaederMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder Maude/Symbol.hs Maude/AS_Maude.hs
5afff1a0f62394414c33b06141175b3ab0b117a5Christian Maeder
5afff1a0f62394414c33b06141175b3ab0b117a5Christian MaederExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder ExtModal/MorphismExtension.hs
1b3a2f98d1cd01fc9e0591f69507e20526727559Dominik Luecke
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus LuettichCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs
247cc88aa55d0a7b6831767cd593ea885c6747a0Christian Maeder
e39a1626bee36d6ad13a2c0014a80ef179a65bcbChristian Maeder# ATC DrIFT-rule generation for logics
f8e1a1eca871a26a535a4ee7d51902ba94b1db1eChristian MaederCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
ea3bff3e547a1ac714d4db39c5efef95e02b2e7dChristian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
dd6f22b9dcff2695181b86372e4df03d5b96e92dKristina Sojakova
005e0f0c6b0cc898003b03801158c208f3071fc5Kristina SojakovaRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
abf2487c3aece95c371ea89ac64319370dcb6483Klaus Luettich $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
76b9b2974795a6fb31f242fd032de3ff66df6204Christian Maeder
76b9b2974795a6fb31f242fd032de3ff66df6204Christian MaederHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
878a5ecd6acf973907e25e5be6e4a792ea19a05eEwaryst Schulz
878a5ecd6acf973907e25e5be6e4a792ea19a05eEwaryst SchulzIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik Dietrich $(GENRULECALL) -o $@ $(Isabelle_files)
6b75c206b317eb30a08d88a8f27e0295ffeb1546Christian Maeder
9a4b469ca0a7f44a598e551a973c75195207db58Eugen KuksaModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
48aa0645e25883048369afc02aac3f49b14a50daChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder
01645eac73dbc789392674930adc5745c935f3a0Christian MaederTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder
1e622ddf5a057555db1924ddc88475c695c6f7f2Alexis TsogiasConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst SchulzCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
a604cbad8e2202147b5c6bb9f2e06ae61162d654Felix Gabriel Mance $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
841788c79a0e069a6e6b874e55b1f32e87acaf36Francisc Nicolae Bungiu
bab2d88d650448628730ed3b65c9f99c52500e8cChristian 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)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCspCASL/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)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederOWL/ATC_OWL.der.hs: $(OWL_files) $(GENRULES)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder $(GENRULECALL) -i OWL.ReadWrite -o $@ $(OWL_files)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai CodescuVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i OMDoc.ATerm -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 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 MaederCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_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))
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# files to be processed by utils/InlineAxioms
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederinline_axiom_files = Comorphisms/Modal2CASL.hs CASL_DL/PredefinedSign.hs
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maedergen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# all sources that need to be created before ghc can be called
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederderived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files)
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder####################################################################
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder### targets
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina Sojakova real_clean bin_clean package_clean distclean packages \
48aa0645e25883048369afc02aac3f49b14a50daChristian Maeder programatica_pkg aterm_pkg maintainer-clean annos \
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina Sojakova check capa hacapa h2h h2hf showKP clean_genRules genRules \
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova count doc fromKif derivedSources release cgi ghci build
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder$(SETUP): utils/Setup.hs
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder $(HC) --make -O -o $@ $<
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maederpackages: aterm_pkg programatica_pkg
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulzprogramatica_pkg:
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulz
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik Dietrichaterm_sources = $(wildcard atermlib/src/ATerm/*.hs)
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Lucaterm_pkg: $(aterm_sources) $(SETUP)
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc @if $(HCPKG) field aterm version; then \
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder echo "of aterm package found"; else \
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder cp -f LICENSE.txt atermlib; \
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder cp -f LIZENZ.txt atermlib; \
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder cp -f utils/Setup.hs atermlib; \
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder cp -f $(SETUP) atermlib; \
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder (cd atermlib; $(SETUPPACKAGE)) fi
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias
fc09e0a6af734edbd944dd8082bb51985c233b43Alexis Tsogiashets-opt:
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias $(MAKE) distclean
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz $(MAKE) derivedSources
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz $(MAKE) clean
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz $(MAKE) hets-optimized
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder
18d370f8341357f5d6a4068f4bb6981173ece70fFelix Gabriel Mancehets-optimized: $(derived_sources)
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz $(HC) --make -O -o hets hets.hs $(HC_OPTS)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
c70ef4c3b3a62764f715510c9fd67dde3acfe454Christian Maedercgi:
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(MAKE) distclean
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(MAKE) derivedSources
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(MAKE) clean
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(MAKE) hets.cgi
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederhets.cgi: $(sources) GUI/hets_cgi.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhets_maintainers.txt: $(sources)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder @echo 'File : Maintainer' > $@
2b33802ca26124644f4311db4319376ecffdc8d2Christian Maeder @echo -n Generating $@ " "
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder @egrep -m 1 "Maintainer" $(sources) | \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder sed -e 's/: *Maintainer *: */ : /' >> $@
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski @echo " done"
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# count lines of code
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maedercount: $(sources)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder wc -l $(sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Documentation via haddock
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederdoc: docs/index.html
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederHADDOCK_OPTS = $(addprefix --optghc=, $(HC_OPTS))
10883d13973c46cac98964b66ace7a52b2d059abChristian Maederdocs/index.html:
f443a57f2a8e0ca3daa7431b0c89a18ba52c337aChristian Maeder $(RM) -r docs
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl mkdir docs
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder $(HADDOCK) -o docs -h -v -s ../%F \
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski -t 'Hets - the Heterogeneous Tool Set' \
7c99e334446bb97120e30e967baeeddfdd1278deKlaus Luettich -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder Syntax/ADoc.hs $(filter-out Test.hs, $(wildcard *.hs)) \
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder Static/ChangeGraph.hs
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder
fc436618ae33856afa329ee53c4f47a2e19100eeChristian MaederderivedSources: $(derived_sources)
27785f379d6810811b4e6d23feab18845fde9a98Christian Maeder
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder$(DRIFT): $(DRIFT_deps)
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT)
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder$(GENRULES): $(DRIFT) $(GENERATERULES_deps)
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder (cd utils/GenerateRules; \
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder GenerateRules.hs -o ../genRules)
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# "-package hssource" for ghc-5.04.2
0c355dd0b739631ee472f9a656e266be27fa4e64Christian Maeder$(INLINEAXIOMS): $(INLINEAXIOMS_deps)
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder $(HC) --make utils/InlineAxioms/InlineAxioms.hs $(HC_WARN) $(HC_PROF) \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder -i../.. -o $(INLINEAXIOMS)
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettichutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(HC) --make -o $@ $<
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich# release management
810746aea00b81c1eec27dae84d73a43599ff056Christian MaederREV = trunk
a883cd4d01fe39d23219cf5333425f195be24d8bChristian Maederrelease:
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich $(RM) -r Hets
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder $(RM) -r uni
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder if [ -d ../uni ] ; then ln -s ../uni uni ; fi
0a5571c8adeddd27548445546491725beb224dddChristian Maeder $(RM) -r programatica
0a5571c8adeddd27548445546491725beb224dddChristian Maeder if [ -d ../programatica ] ; then \
0a5571c8adeddd27548445546491725beb224dddChristian Maeder mkdir programatica; \
0a5571c8adeddd27548445546491725beb224dddChristian Maeder ln -s ../../programatica/tools programatica/tools ; fi
0a5571c8adeddd27548445546491725beb224dddChristian Maeder (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder cp Makefile Makefile.orig; \
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder cp ReleaseMakefile Makefile; \
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder ./clean.sh; \
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
0a5571c8adeddd27548445546491725beb224dddChristian Maeder $(RM) clean.*; utils/replaceAllHeaders.sh)
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder $(TAR) cvf Hets.tar Hets
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder
a204259b2a95cf632336c164ff58331e9fd807e2Christian Maeder# Common/LaTeX_maps.hs generation
a545f813d2f8006ef79617e4fedc841d89195e2dChristian Maederutils/genItCorrections: $(GENITCORRECTIONS_deps)
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich $(HC) --make -o $@ $<
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maederpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
e05fd774e0181e93963d4302303b20698603a505Christian Maeder @echo -n "Generating pretty/LaTeX_maps.hs ... "
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder @(cd pretty >/dev/null; ../utils/genItCorrections \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder gen_it_characters gen_it_words >> LaTeX_maps.hs)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder @echo "ready"
e05fd774e0181e93963d4302303b20698603a505Christian Maeder @echo "please copy the file manually to Common"
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
f2d9352f2999f82c36b4b65535d14a6a40ae5a82Christian Maeder### clean up
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maederclean_genRules:
483333cb1e873b6d55f5ef0bfbf061861f0493abChristian Maeder $(RM) $(generated_rule_files) $(gendrifted_files) $(hspp_sources) \
483333cb1e873b6d55f5ef0bfbf061861f0493abChristian Maeder $(hs_clean_files)
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
1dfba1f850f6a43094962b459998d1ea11472461Christian Maederclean: bin_clean o_clean clean_pretty
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder### removes all *.o, *.hi and *.p_o files in all subdirectories
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maedero_clean:
fa0f3519d71f719d88577b716b1579776b4a2535Christian Maeder find . -name \*.o -o -name \*.hi -o -name \*.p_o \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder -o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder
fa0f3519d71f719d88577b716b1579776b4a2535Christian Maeder### remove binaries
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maederbin_clean:
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder $(RM) hets
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder $(RM) hets.cgi
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder $(RM) $(SETUP)
c59d1c38ef94b4fb1c8d9fda9573bc1e1d2801e7Christian Maeder $(RM) $(TESTTARGETS)
cd36bffee51c77cdadcb9f916b34fa512e311946Christian Maeder
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maederclean_pretty:
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder pretty/generated_words.tex
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### additionally removes the library files
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichreal_clean: clean
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### clean user packages
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichpackage_clean:
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich $(HCPKG) unregister programatica --user || exit 0
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(HCPKG) unregister aterm --user || exit 0
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### additionally removes generated files not in the CVS tree
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichdistclean: clean clean_genRules
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(RM) $(derived_sources)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(RM) Modal/GeneratePatterns.inline.hs utils/appendHaskellPreludeString
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
810746aea00b81c1eec27dae84d73a43599ff056Christian Maeder $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckersmaintainer-clean: distclean package_clean
1365c420ef71be3d52796ebd369dc2defdedc822Christian Maeder $(RM) -r $(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich
82e29b77f0ef4cccd7ed734692c5e1e93dbbc645Christian Maeder### interactive
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettichghci: $(derived_sources)
5f0e3e4cb7dd31033c9682cafa712d2a66b2f3bcChristian Maeder ghci $(HC_OPTS)
5f0e3e4cb7dd31033c9682cafa712d2a66b2f3bcChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### build only, don't link
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maederbuild: hets.hs packages
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder $(HC) --make -c $< $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
d0652648f9879c67a194f8b03baafe2700c68eb4Christian Maeder### Kif parser
210aa1071465039588fa9e38c10e343631c34655Christian MaederfromKif: CASL/fromKif
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### Annos parser
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maederannos: Common/annos
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### CASL parser
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maedercapa: CASL/capa
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder### HasCASL parser
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maederhacapa: HasCASL/hacapa
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### Haskell analysis
1365c420ef71be3d52796ebd369dc2defdedc822Christian Maederhana: Haskell/hana
1365c420ef71be3d52796ebd369dc2defdedc822Christian Maeder
1365c420ef71be3d52796ebd369dc2defdedc822Christian Maeder### Haskell to Isabelle-HOLCF translation
1365c420ef71be3d52796ebd369dc2defdedc822Christian Maederh2hf: Haskell/h2hf
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus LuettichHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Common/Lib/*.hs Comorphisms/*.hs
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(HC) -O --make -o $@ $< $(HC_OPTS)
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder### HasCASL to Haskell translation
10883d13973c46cac98964b66ace7a52b2d059abChristian Maederh2h: Haskell/h2h
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder### test program to check the known provers
68d10d143f29fcff3c637ba24f90e983995ceae6Christian MaedershowKP: Comorphisms/test/showKP
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
c5e3fc166373b0d90f6e36e8aa234396a1dcd879Christian Maeder### run tests in other directories
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maedercheck: $(TESTTARGETS)
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder## Preparing the version of Hets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederDriver/Version.hs: Driver/Version.in version_nr
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder $(RM) $@
e1559d046eb2c6dde0e6e272b37b6756eac0e8adChristian Maeder LANG=C $(PERL) utils/build_version.pl version_nr \
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder < Driver/Version.in > $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder chmod 444 $@
2c619a4dfdc1df27573eba98e81ed1ace906941dChristian Maeder
5580ab3e64410186ccd36cde8a94282d8757ac0dChristian Maeder## two hardcoded dependencies for a correct generation of Version.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühlhets.hs: Driver/Version.hs
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl
e284004f10a315dbdb624c8b2522f65d485eaa48Martin KühlATC/DevGraph.hs: Static/DevGraph.hs
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder## two dependencies to avoid circular prerequisites
50515239e7e190f4a34ca581dd685d002148fbddChristian MaederCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder Common/annos Common/test_parser Comorphisms/test/showKP \
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder$(CASL_DEPENDENT_BINARIES): $(derived_sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## suffix rules
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder.SUFFIXES:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## rule for GHC
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski%: %.hs packages
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski $(HC) --make -o $@ $< $(HC_OPTS)
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini## rule for HAPPY
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder%.hs: %.y
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini $(HAPPY) -o $@.tmp $<
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maeder echo "{-# OPTIONS -w #-}" > $@
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maeder cat $@.tmp >> $@
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder $(RM) $@.tmp
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder## rule for DrIFT
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder%.hs: %.der.hs $(DRIFT)
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder $(RM) $@
e50e41135ece589f7202bd4ef8d6b97531c2a56eKlaus Luettich ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
47b0e9f3cb008cb7997f4e3bae26e4d62dcc887aChristian Maeder chmod 444 $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## rule for inlineAxioms
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder%.hs: %.inline.hs $(INLINEAXIOMS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(INLINEAXIOMS) $< > $@
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder chmod 444 $@
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder## rule for cpp and haddock
d5d349836d8b1fa93ea49a59d977b106c6e9233bKlaus Luettich%.hspp: %.hs
d5d349836d8b1fa93ea49a59d977b106c6e9233bKlaus Luettich $(HC) -E -cpp -D__HADDOCK__ \
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder -DUNI_PACKAGE -DCASLEXTENSIONS -DPROGRAMATICA -optP -P $<
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## compiling rules for object and interface files
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder%.o %.hi: %.hs
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder $(HC) -c $< $(HC_OPTS)
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian Maeder%.o %.hi: %.lhs
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian Maeder $(HC) -c $< $(HC_OPTS)
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder## compiling rules for dependencies
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich%.d : %.hs
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder%.d : %.lhs
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder## Rule to generate hs files from glade files. Needed for GTK
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder%.hs: %.glade utils/appendHaskellPreludeString \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder GUI/Glade/Template.append.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder b=`basename $< .glade`; \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder utils/appendHaskellPreludeString $< > $@
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder## generate the inline file for the predefined CASL_DL sign
fdef3358918491badb0e29e42b5d3b5a01950716Christian MaederCASL_DL/PredefinedSign.inline.hs: \
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder CASL_DL/PredefinedSign.inline.hs.in utils/appendHaskellPreludeString \
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder CASL_DL/PredDatatypes.het
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder $(RM) $@
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder utils/appendHaskellPreludeString CASL_DL/PredDatatypes.het \
fdef3358918491badb0e29e42b5d3b5a01950716Christian Maeder < CASL_DL/PredefinedSign.inline.hs.in > $@
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder echo " )" >> $@
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder chmod 444 $@
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder
7767474aba4fa2dc51a6c68017d3bcef3b773001Christian Maeder# Warning: Don't change the order of the depencies!!
88318aafc287e92931dceffbb943d58a9310001dChristian MaederCASL_DL/PredDatatypes.het: utils/transformLibAsBasicSpec.pl \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder CASL_DL/Datatypes.het
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(RM) $@
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder $(PERL) $+ > $@
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder chmod 444 $@
bf76f4fcf07abaebea587df8135de8356c26a363Till Mossakowski
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski# uses intransparently utils/outlineAxioms
e7757995211bd395dc79d26fe017d99375f7d2a6Christian MaederModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich utils/genTransMFormFunc.pl $(INLINEAXIOMS)
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maeder $(RM) $@
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maeder $(PERL) utils/genTransMFormFunc.pl $< $@
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich chmod 444 $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# directory for installers
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus LuettichINSTALLER_DIR = ../installers
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederifeq ($(strip $(HETS_VERSION)),)
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus LuettichHETS_VERSION := `cat version_nr`
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# or `date +%F`
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederendif
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# prepare installer creation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederinitialize_installer:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder mkdir -p $(INSTALLER_DIR)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
1a6464613c59e35072b90ca296ae402cbe956144Christian Maeder > $(INSTALLER_DIR)/Makefile
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder @echo Please do
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder @echo " -> cd $(INSTALLER_DIR)"
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder @echo " -> make"
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder @echo and wait until it is finished
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder# check out java parts for OWL
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maederowl_java:
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich svn co \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich https://owlapi.svn.sourceforge.net/svnroot/owlapi/owl1_1/trunk \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich OWL/java/OwlApi
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettichinitialize_java: owl_java
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich ant -q init
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettichjava-libs:
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich ant -q java-libs
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
5818d884784339c1b8aa6c6d972bad4eafd36ccbKlaus Luettichjava-files:
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich ant -q java-files
2e62113845a35e07cb46db05714627c95450f267Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettichjava-clean:
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich ant -q java-clean
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich