Makefile revision 54ea981a0503c396c2923a1c06421c6235baf27f
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# deprecated since haddock 2
e7757995211bd395dc79d26fe017d99375f7d2a6Christian MaederSOURCE_PATHS = . utils/itcor \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
a1ed34933c266ce85066acb0d7b20c90cb8eb213Christian Maeder Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder CspCASL ATC Proofs Comorphisms Isabelle Driver Modifications \
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich Taxonomy CASL_DL SoftFOL OWL OMDoc PGIP Propositional RelationalScheme \
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder VSE Interfaces Temporal CspCASLProver DFOL CMDL Maude Maude/Meta
ad270004874ce1d0697fb30d7309f180553bb315Christian Maeder
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich# the 'replacing spaces' example was taken from the (GNU) Make info manual
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederempty =
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maederspace = $(empty) $(empty)
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder
ef9e8535c168d3f774d9e74368a2317a9eda5826Christian MaederDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian MaederDRIFT_deps = utils/DrIFT-src/*hs
ef9e8535c168d3f774d9e74368a2317a9eda5826Christian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederPERL = perl
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederHAPPY = happy -sga
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederGENRULES = utils/genRules
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder -i Data.Typeable -i ATerm.Lib
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder -i Data.Typeable -i ATerm.Lib -i ATC.Grothendieck
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederDRIFT = utils/DrIFT
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederINLINEAXIOMS = utils/outlineAxioms
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederHADDOCK = haddock
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederHADDOCKVERSION = $(shell $(HADDOCK) --version)
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederOSBYUNAME = $(shell uname)
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maederifneq ($(findstring SunOS, $(OSBYUNAME)),)
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederTAR = gtar
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederPATCH = gpatch
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maederelse
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederTAR = tar
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederPATCH = patch
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian Maederendif
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maeder
bab2d88d650448628730ed3b65c9f99c52500e8cChristian MaederARCH = $(subst $(space),,$(shell uname -m))
734257b9ea9fcaa18d4e3627f54f5295a99aa1f7Felix Gabriel ManceSETUP = utils/Setup
8cacad2a09782249243b80985f28e9387019fe40Christian MaederSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
6a2dad705deefd1b7a7e09b84fd2d75f2213be47Christian Maeder
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian MaederSETUPPACKAGE = ../$(SETUP) clean; \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder ../$(SETUP) configure -O -p $(SETUPPREFIX) --user; \
014dc30f64ec25e4790cca987d4d1e6635430510Christian Maeder ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich
6aea82c63ba1d2efc0329bc784a14e521469ec20Christian Maeder# list glade files
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian MaederGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
feca1d35123d8c31aee238c9ce79947b0bf65494Christian MaederGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maederderived_sources += $(GTK_GLADE_HSFILES)
f5c0884429b01e74c6e658ded921fb2e16dfb478Christian Maeder
db675e8302ddb0d6528088ce68f5e98a00e890e3Christian Maeder# the list of logics that need ShATermConvertible instances
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maederlogics = CASL HasCASL Isabelle Modal Temporal CoCASL COL CspCASL CASL_DL \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder SoftFOL ConstraintCASL Propositional OWL RelationalScheme VSE OMDoc DFOL \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder Maude
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder
23ffcc44ca8612feccbd8fda63fa5be7ab5f9dc3Christian MaederTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Common/ATerm/ATermDiffMain.hs Common/annos.hs Common/test_parser.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Comorphisms/test/sublogicGraph.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder SoftFOL/dfg.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder### list of directories to run checks in
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederTESTDIRS += Common CASL HasCASL test
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
dc679edd4ca027663212afdf00926ae2ce19b555Christian Maeder Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederPFE_TOOLDIR = $(wildcard ../programatica/tools)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederifneq ($(strip $(PFE_TOOLDIR)),)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder base/transforms base/transforms/Deriving property \
b568982efd0997d877286faa592d81b03c8c67b8Christian Maeder property/syntax property/AST property/transforms \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder property/TI property/defs property/parse2 property/parse2/Parser
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPFE_PATH = $(addprefix -i, $(PFE_PATHS))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian MaederLEX_DIR = $(PFE_TOOLDIR)/base/parse2/Lexer
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maederprogramatica_pkg: $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder $(LEX_DIR)/HsLex.hs $(SETUP)
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder @if $(HCPKG) field programatica version; then \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder echo "of programatica package found"; else \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder ($(PATCH) -usNlp0 -d $(PFE_TOOLDIR) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder -i `pwd`/Haskell/Programatica.patch || exit 0); \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder cp -f utils/programatica.cabal ../programatica/tools; \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder cp -f $(SETUP) ../programatica/tools; \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder (cd ../programatica/tools; \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder ./Setup configure $(SETUPPREFIX); \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder ./Setup build; ./Setup install --user) fi
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder$(LEX_DIR)/HsLex.hs: $(LEX_DIR)Gen/HsLexerGen
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder echo "{-# OPTIONS -w #-}" > $@
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder $< >> $@
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder $(LEX_DIR)/HsTokens.hs
e6d5dbbc3308f05197868806e0b860f4f53875f1Christian Maeder $(HC) --make -fno-monomorphism-restriction -O \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder -i$(PFE_TOOLDIR)/base/tests/HbcLibraries \
e4f4d096e5e6d60dd91c746d0e833d0ac7a29c50Christian Maeder -i$(PFE_TOOLDIR)/base/lib \
eb74267cf39e4e95f9eeb5c765f4c8dac33971b4Christian Maeder -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
eb74267cf39e4e95f9eeb5c765f4c8dac33971b4Christian Maeder $@.hs -o $@
e4f4d096e5e6d60dd91c746d0e833d0ac7a29c50Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederlogics += Haskell
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederderived_sources += Haskell/PreludeString.hs
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
8d178ae08a52d61379e6b8074f61646499bc88bbChristian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder Haskell/ProgramaticaPrelude.hs
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder## rule for appendHaskellPreludeString
6cd33d6101fb1b93baa6d86fac158af18a115108Christian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder $(APPENDPRELUDESTRING)
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder $(RM) $@
b2ac5a92cf36382e8deea5661c1964566caf72b3Christian Maeder $(APPENDPRELUDESTRING) < $< > $@
59138b404f12352d103eeffbeaeb3957b90e75fdChristian Maeder chmod 444 $@
b2ac5a92cf36382e8deea5661c1964566caf72b3Christian Maeder
b2ac5a92cf36382e8deea5661c1964566caf72b3Christian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
7d0ee72ee91ec305408688b969c43f07b9667c80Christian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
7d0ee72ee91ec305408688b969c43f07b9667c80Christian Maeder HsModule HsName HsLiteral HsIdent
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder#files in base/TI/
0e5b095a19790411e5352fa7cf57cb0388e70472Christian Maeder#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
f1a913f880e409e7327b5deae95738b5448379a1Christian Maeder
f1a913f880e409e7327b5deae95738b5448379a1Christian MaederOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
f1a913f880e409e7327b5deae95738b5448379a1Christian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
f1a913f880e409e7327b5deae95738b5448379a1Christian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
14c56dc499da4bbeaeebeb558ceb755150ae341cChristian Maeder property/syntax/PropSyntaxStruct
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHaskell_files = $(addsuffix .hs, \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder## rule for ATC generation
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
328a85c807f2a95c3f147d10b05927eaf862ebebChristian Maeder
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maederhs_der_files += $(hs_clean_files)
06dd4e7c29f33f6122a910719e3bd9062256e397Andy Gimblett
254df6f22d01eacf7c57b85729e0445747b630d9Christian MaederTESTDIRS += ToHaskell
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian MaederTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maederelse
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder# unset this variable from var.mk because the programatica sources
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers# are needed to created our sources!
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederPFE_FLAGS =
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maederendif
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# end of programatica stuff
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
140287998aa8592c9c403bd9e308e447ba92ae11Christian MaederTESTTARGETS = Test.o $(subst .hs,,$(TESTTARGETFILES))
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder# remove -fno-warn-orphans for older ghcs and add -ifgl
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederHC_WARN = -Wall -fno-warn-orphans
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix ReckersINCLUDE_PATH =
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHC_INCLUDE = $(addprefix -i, $(INCLUDE_PATH))
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# uncomment HC_PROF for profiling (and comment out packages in var.mk)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# call resulting binary with a final +RTS -p to get a file <binary>.prof
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederHC_OPTS += $(HC_WARN) $(HC_INCLUDE) $(HC_PROF)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder# -ddump-minimal-imports
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder# uncomment the above line to generate .imports files for displayDependencyGraph
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder## deprecated non-sources to be excluded for haddock-0.8
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maedernon_sources = Common/LaTeX_maps.svmono.hs Common/CaslLanguage.hs ./Test.hs \
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(SETUP).hs
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder## deprecated hets sources for haddock-0.8
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maedersources = hets.hs $(filter-out $(non_sources), \
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(wildcard $(addsuffix /[A-Z]*hs, $(SOURCE_PATHS))))
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder# files generated by DriFT
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maederdrifted_files = Common/AS_Annotation.hs \
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs \
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder Propositional/AS_BASIC_Propositional.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder CASL_DL/AS_CASL_DL.hs OWL/ReadWrite.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder RelationalScheme/AS.hs ATC/Grothendieck.hs \
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder $(gendrifted_files)
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maeder# files to extract data types from to generate ShATermConvertible instances
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maederatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder Common/Consistency.hs Common/ProofTree.hs Static/DevGraph.hs \
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder Common/Lib/Graph.hs
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# files generated by genRules as input for DriFT
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maederatc_der_files = $(foreach file, $(atc_files), \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder# the rules to create ATC .der.hs file for DriFT
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/Id.der.hs: Common/Id.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -o $@ $<
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/Result.der.hs: Common/Result.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i ATC.Id -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -o $@ $<
ac34194a668399bb8ef238da77c3a09e93fb253bChristian Maeder
4fc9de0da898448f1d3597ebbd8c04a066464c21Christian MaederATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
c208973c890b8f993297720fd0247bc7481d4304Christian MaederATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder $(GENRULECALL) -o $@ $<
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian MaederATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
986d3f255182539098a97ac86da9eeee5b7a72e3Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
4561227a776bdf0ab679b19fb92f1eaaed8786f7Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
01e278bdd7dce13b9303ed3d79683d83c89d09f9Liam O'Reilly
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik Luecke $(GENRULECALL) -o $@ $<
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder
8c812cd83569e973f10cf69a342424ceabc07af9Christian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder $(GENRULECALL2) -o $@ $<
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
31d6d9286988dc31639d105841296759aeb743e0Jonathan von SchroederATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
05a206508bc898f87fe6ab6e069814df3c29d303Dominik LueckeATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
05a206508bc898f87fe6ab6e069814df3c29d303Dominik Luecke $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian Maeder $(GENRULECALL) -x Logic.Prover.ProverTemplate \
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian Maeder -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency -o $@ $<
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder# ATC files for every logic
5afff1a0f62394414c33b06141175b3ab0b117a5Christian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
5afff1a0f62394414c33b06141175b3ab0b117a5Christian Maeder CASL/AS_Basic_CASL.der.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
1b3a2f98d1cd01fc9e0591f69507e20526727559Dominik LueckeHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus LuettichIsabelle_files = Isabelle/IsaSign.hs
e39a1626bee36d6ad13a2c0014a80ef179a65bcbChristian Maeder
f8e1a1eca871a26a535a4ee7d51902ba94b1db1eChristian MaederPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
ea3bff3e547a1ac714d4db39c5efef95e02b2e7dChristian Maeder Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
dd6f22b9dcff2695181b86372e4df03d5b96e92dKristina Sojakova Propositional/Sublogic.hs
005e0f0c6b0cc898003b03801158c208f3071fc5Kristina Sojakova
abf2487c3aece95c371ea89ac64319370dcb6483Klaus LuettichRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
76b9b2974795a6fb31f242fd032de3ff66df6204Christian Maeder Temporal/Symbol.hs Temporal/Morphism.hs
76b9b2974795a6fb31f242fd032de3ff66df6204Christian Maeder
8a78868bae2ec6838c87366c35c57e109154c51eChristian MaederConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
878a5ecd6acf973907e25e5be6e4a792ea19a05eEwaryst SchulzCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
878a5ecd6acf973907e25e5be6e4a792ea19a05eEwaryst SchulzCOL_files = COL/AS_COL.hs COL/COLSign.hs
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik Dietrich
6b75c206b317eb30a08d88a8f27e0295ffeb1546Christian MaederCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
9a4b469ca0a7f44a598e551a973c75195207db58Eugen Kuksa CspCASL/SignCSP.hs CspCASL/Morphism.hs
48aa0645e25883048369afc02aac3f49b14a50daChristian Maeder
01645eac73dbc789392674930adc5745c935f3a0Christian MaederCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
01645eac73dbc789392674930adc5745c935f3a0Christian MaederSoftFOL_files = SoftFOL/Sign.hs
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian MaederOWL_files = OWL/Sign.hs OWL/Sublogic.hs OWL/Morphism.hs
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian MaederVSE_files = VSE/As.hs
7dc37844730a8b23973139e9720574382de109e7Alexis TsogiasOMDoc_files = OMDoc/OMDocInterface.hs
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis TsogiasDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst SchulzMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
a604cbad8e2202147b5c6bb9f2e06ae61162d654Felix Gabriel Mance Maude/Symbol.hs Maude/AS_Maude.hs
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maeder
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maeder# ATC DrIFT-rule generation for logics
7834a982096d93301a4626f444dd9ea5f9fe17eaChristian MaederCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
734257b9ea9fcaa18d4e3627f54f5295a99aa1f7Felix Gabriel Mance $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
e420b3848a0e15a9e074b08c413996cbeb5ab06dChristian Maeder
bab2d88d650448628730ed3b65c9f99c52500e8cChristian MaederRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -o $@ $(Isabelle_files)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai CodescuTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
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)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederOWL/ATC_OWL.der.hs: $(OWL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i OWL.ReadWrite -o $@ $(OWL_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)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_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 Maeder# all ATC .der.hs files for all logics
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian 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
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina SojakovagenRules: $(generated_rule_files)
48aa0645e25883048369afc02aac3f49b14a50daChristian Maeder
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina Sojakova# the final ATC target files created by DriFT
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakovagendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova# files to be processed by utils/InlineAxioms
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maederinline_axiom_files = Comorphisms/CASL2PCFOL.hs \
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder Comorphisms/Modal2CASL.hs Comorphisms/CASL2TopSort.hs \
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder Comorphisms/CASL2SubCFOL.hs CASL_DL/PredefinedSign.hs
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maedergen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulz# all sources that need to be created before ghc can be called
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulzderived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik Dietrich $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files)
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc# sources that have {-# OPTIONS -cpp #-}
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luccpp_sources = hets.hs $(happy_files) \
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder CASL/Logic_CASL.hs \
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder Common/Exception.hs \
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder Common/ATerm/ConvInstances.hs \
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder Comorphisms/KnownProvers.hs \
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder Comorphisms/LogicGraph.hs \
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder Comorphisms/LogicList.hs \
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias Driver/WriteFn.hs \
fc09e0a6af734edbd944dd8082bb51985c233b43Alexis Tsogias GUI/GraphMenu.hs \
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias GUI/ShowGraph.hs \
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz GUI/Utils.hs \
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz GUI/ProverGUI.hs \
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz Isabelle/CreateTheories.hs \
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder OWL/Logic_OWL.hs \
18d370f8341357f5d6a4068f4bb6981173ece70fFelix Gabriel Mance CMDL/InfoCommands.hs \
7834a982096d93301a4626f444dd9ea5f9fe17eaChristian Maeder CMDL/Interface.hs \
ed1b8e97e72b2e3e92edaf2eb22a4b5373d705f1Felix Gabriel Mance Propositional/Logic_Propositional.hs \
ed1b8e97e72b2e3e92edaf2eb22a4b5373d705f1Felix Gabriel Mance SoftFOL/Logic_SoftFOL.hs \
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz VSE/Logic_VSE.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder VSE/Prove.hs \
c70ef4c3b3a62764f715510c9fd67dde3acfe454Christian Maeder Proofs/VSE.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# further sources that should be excluded from haddock-0.8
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckersnondoc_sources = $(wildcard utils/DrIFT-src/*.hs) \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(wildcard utils/DrIFT-src/*.lhs) \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(wildcard utils/GenerateRules/*.hs) \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(wildcard utils/InlineAxioms/*.hs) \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(wildcard utils/itcor/*.hs) \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(cpp_sources) $(pfe_sources) $(gen_inline_axiom_files) \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(generated_rule_files) \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hspp \
cc07a598b995acc9436651e66fd18009509047efChristian Maeder Modal/GeneratePatterns.inline.hs \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder Haskell/PreludeString.append.hs Haskell/ProgramaticaPrelude.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder SoftFOL/MathServCommunication.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(patsubst %.hs, %.der.hs, $(drifted_files))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichhspp_sources = $(patsubst %.hs, %.hspp, $(cpp_sources))
e420b3848a0e15a9e074b08c413996cbeb5ab06dChristian Maeder
f443a57f2a8e0ca3daa7431b0c89a18ba52c337aChristian Maeder# this variable holds the modules that should be documented
f5c9b1e739228c2a2edf055ac419583412569683Christian Maederdoc_sources = $(filter-out $(nondoc_sources), $(sources) $(hspp_sources))
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder
37a9d042e9f85a1d6e229eb80b48f93df810f155Christian Maeder####################################################################
7c99e334446bb97120e30e967baeeddfdd1278deKlaus Luettich### targets
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder real_clean bin_clean package_clean distclean packages \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder programatica_pkg aterm_pkg maintainer-clean annos \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder check capa hacapa h2h h2hf showKP clean_genRules genRules \
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder count doc fromKif derivedSources release cgi ghci build
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder$(SETUP): utils/Setup.hs
0c355dd0b739631ee472f9a656e266be27fa4e64Christian Maeder $(HC) --make -O -o $@ $<
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederpackages: aterm_pkg programatica_pkg
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettichprogramatica_pkg:
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettichaterm_sources = $(wildcard atermlib/src/ATerm/*.hs)
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich
810746aea00b81c1eec27dae84d73a43599ff056Christian Maederaterm_pkg: $(aterm_sources) $(SETUP)
a883cd4d01fe39d23219cf5333425f195be24d8bChristian Maeder @if $(HCPKG) field aterm version; then \
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich echo "of aterm package found"; else \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder cp -f LICENSE.txt atermlib; \
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder cp -f LIZENZ.txt atermlib; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder cp -f utils/Setup.hs atermlib; \
0a5571c8adeddd27548445546491725beb224dddChristian Maeder cp -f $(SETUP) atermlib; \
0a5571c8adeddd27548445546491725beb224dddChristian Maeder (cd atermlib; $(SETUPPACKAGE)) fi
0a5571c8adeddd27548445546491725beb224dddChristian Maeder
0a5571c8adeddd27548445546491725beb224dddChristian Maederhets-opt:
0a5571c8adeddd27548445546491725beb224dddChristian Maeder $(MAKE) distclean
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder $(MAKE) derivedSources
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder $(MAKE) clean
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder $(MAKE) hets-optimized
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder
e642ad0e782f9bb9ba310164358220402eec8cd8Christian Maederhets-optimized: $(derived_sources)
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder $(HC) --make -O -o hets hets.hs $(HC_OPTS)
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder
74d27713392cbbe39ecd72d0ddb0caad16e84555Christian Maedercgi:
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich $(MAKE) distclean
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder $(MAKE) derivedSources
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(MAKE) clean
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder $(MAKE) hets.cgi
e05fd774e0181e93963d4302303b20698603a505Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maederhets.cgi: $(sources) GUI/hets_cgi.hs
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
e420b3848a0e15a9e074b08c413996cbeb5ab06dChristian Maeder
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroederhets_maintainers.txt: $(sources)
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder @echo 'File : Maintainer' > $@
005a00ee02fd3c373d218699dab6dad85bdb18f5Christian Maeder @echo -n Generating $@ " "
005a00ee02fd3c373d218699dab6dad85bdb18f5Christian Maeder @egrep -m 1 "Maintainer" $(sources) | \
005a00ee02fd3c373d218699dab6dad85bdb18f5Christian Maeder sed -e 's/: *Maintainer *: */ : /' >> $@
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder @echo " done"
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder# count lines of code
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroedercount: $(sources)
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder wc -l $(sources)
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder# Documentation via haddock
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederdoc: docs/index.html
e05fd774e0181e93963d4302303b20698603a505Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maederifneq ($(findstring 2.,$(HADDOCKVERSION)),)
1dfba1f850f6a43094962b459998d1ea11472461Christian MaederHADDOCK_OPTS = $(addprefix --optghc=, $(HC_OPTS))
1dfba1f850f6a43094962b459998d1ea11472461Christian Maederdocs/index.html: $(doc_sources)
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder $(RM) -r docs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder mkdir docs
fa0f3519d71f719d88577b716b1579776b4a2535Christian Maeder $(HADDOCK) -o docs -h -v -s ../%F \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder -t 'Hets - the Heterogeneous Tool Set' \
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
fa0f3519d71f719d88577b716b1579776b4a2535Christian Maeder Syntax/ADoc.hs $(filter-out Test.hs, $(wildcard *.hs))
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maederelse
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder# generate haddock documentation with links to sources
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder# the interface treatment is stolen from uni/mk/suffix.mk
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maederdocs/index.html: $(doc_sources)
c59d1c38ef94b4fb1c8d9fda9573bc1e1d2801e7Christian Maeder $(RM) -r docs
cd36bffee51c77cdadcb9f916b34fa512e311946Christian Maeder mkdir docs
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder cp -r -L ../uni/www docs/www || mkdir docs/www
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder HINTERFACES0=`find -L docs/www -name '*.haddock' \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder -printf "--read-interface=www/%P,%p "` ; \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich HINTERFACES=`echo $$HINTERFACES0 | \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(PERL) -pe 's+/[^/]*.haddock,+,+g'` ; \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(HADDOCK) -o docs -h -v -s ../%F $$HINTERFACES \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich -t 'Hets - the Heterogeneous Tool Set' \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich -p Hets-Haddock-Prologue.txt $(doc_sources)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichendif
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus LuettichderivedSources: $(derived_sources) $(hspp_sources)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich$(DRIFT): $(DRIFT_deps)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder$(GENRULES): $(DRIFT) $(GENERATERULES_deps)
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder (cd utils/GenerateRules; \
810746aea00b81c1eec27dae84d73a43599ff056Christian Maeder $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder GenerateRules.hs -o ../genRules)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
1365c420ef71be3d52796ebd369dc2defdedc822Christian Maeder# "-package hssource" for ghc-5.04.2
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich$(INLINEAXIOMS): $(INLINEAXIOMS_deps)
82e29b77f0ef4cccd7ed734692c5e1e93dbbc645Christian Maeder $(HC) --make utils/InlineAxioms/InlineAxioms.hs $(HC_WARN) $(HC_PROF) \
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich -i../.. -o $(INLINEAXIOMS)
5f0e3e4cb7dd31033c9682cafa712d2a66b2f3bcChristian Maeder
5f0e3e4cb7dd31033c9682cafa712d2a66b2f3bcChristian Maederutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -o $@ $<
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# release management
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederREV = trunk
d0652648f9879c67a194f8b03baafe2700c68eb4Christian Maederrelease:
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder $(RM) -r Hets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder $(RM) -r uni
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich if [ -d ../uni ] ; then ln -s ../uni uni ; fi
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(RM) -r programatica
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder if [ -d ../programatica ] ; then \
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder mkdir programatica; \
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder ln -s ../../programatica/tools programatica/tools ; fi
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder cp Makefile Makefile.orig; \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich cp ReleaseMakefile Makefile; \
1365c420ef71be3d52796ebd369dc2defdedc822Christian Maeder ./clean.sh; \
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maeder find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maeder $(RM) clean.*; utils/replaceAllHeaders.sh)
1365c420ef71be3d52796ebd369dc2defdedc822Christian Maeder $(TAR) cvf Hets.tar Hets
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich# Common/LaTeX_maps.hs generation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederutils/genItCorrections: $(GENITCORRECTIONS_deps)
e420b3848a0e15a9e074b08c413996cbeb5ab06dChristian Maeder $(HC) --make -o $@ $<
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
cc07a598b995acc9436651e66fd18009509047efChristian Maeder pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
cc07a598b995acc9436651e66fd18009509047efChristian Maeder @echo -n "Generating pretty/LaTeX_maps.hs ... "
e420b3848a0e15a9e074b08c413996cbeb5ab06dChristian Maeder @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @(cd pretty >/dev/null; ../utils/genItCorrections \
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder gen_it_characters gen_it_words >> LaTeX_maps.hs)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @echo "ready"
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @echo "please copy the file manually to Common"
2c619a4dfdc1df27573eba98e81ed1ace906941dChristian Maeder
5580ab3e64410186ccd36cde8a94282d8757ac0dChristian Maeder### clean up
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederclean_genRules:
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl $(RM) $(generated_rule_files) $(gendrifted_files) $(hspp_sources) \
b446bf54c1dc78690aa12e86aadc49cdd8585847Christian Maeder $(hs_clean_files)
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühlclean: bin_clean o_clean clean_pretty
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder### removes all *.o, *.hi and *.p_o files in all subdirectories
50515239e7e190f4a34ca581dd685d002148fbddChristian Maedero_clean:
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder find . -name \*.o -o -name \*.hi -o -name \*.p_o \
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder -o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### remove binaries
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederbin_clean:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) hets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) hets.cgi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) $(SETUP)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) $(TESTTARGETS)
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowskiclean_pretty:
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini pretty/generated_words.tex
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini### additionally removes the library files
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maederreal_clean: clean
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maeder
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder### clean user packages
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrinipackage_clean:
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder $(HCPKG) unregister programatica --user || exit 0
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder $(HCPKG) unregister aterm --user || exit 0
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder
e50e41135ece589f7202bd4ef8d6b97531c2a56eKlaus Luettich### additionally removes generated files not in the CVS tree
47b0e9f3cb008cb7997f4e3bae26e4d62dcc887aChristian Maederdistclean: clean clean_genRules
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) $(derived_sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) Modal/GeneratePatterns.inline.hs utils/appendHaskellPreludeString
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maedermaintainer-clean: distclean package_clean
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder $(RM) -r $(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder
d5d349836d8b1fa93ea49a59d977b106c6e9233bKlaus Luettich### interactive
d5d349836d8b1fa93ea49a59d977b106c6e9233bKlaus Luettichghci: $(derived_sources)
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder ghci $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### build only, don't link
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maederbuild: hets.hs packages
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder $(HC) --make -c $< $(HC_OPTS)
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian Maeder### Kif parser
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian MaederfromKif: CASL/fromKif
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder### Annos parser
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettichannos: Common/annos
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich### CASL parser
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maedercapa: CASL/capa
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder### HasCASL parser
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederhacapa: HasCASL/hacapa
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### Haskell analysis
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederhana: Haskell/hana
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder### Haskell to Isabelle-HOLCF translation
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maederh2hf: Haskell/h2hf
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder Common/Lib/*.hs Comorphisms/*.hs
7767474aba4fa2dc51a6c68017d3bcef3b773001Christian Maeder $(HC) -O --make -o $@ $< $(HC_OPTS)
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### HasCASL to Haskell translation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederh2h: Haskell/h2h
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### test program to check the known provers
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaedershowKP: Comorphisms/test/showKP
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### run tests in other directories
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedercheck: $(TESTTARGETS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## Preparing the version of Hets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederDriver/Version.hs: Driver/Version.in version_nr
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder LANG=C $(PERL) utils/build_version.pl version_nr \
1a6464613c59e35072b90ca296ae402cbe956144Christian Maeder < Driver/Version.in > $@
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder chmod 444 $@
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder## two hardcoded dependencies for a correct generation of Version.hs
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maederhets.hs: Driver/Version.hs
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederATC/DevGraph.hs: Static/DevGraph.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder## two dependencies for avoidence of circular prerequisites
f78ce817f35574674d54e30ad1861a9b4ced20caChristian MaederCASL_DEPENDENT_BINARIES= hets CASL/capa CASL/fromKif \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder Common/annos Common/test_parser Comorphisms/test/showKP \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
fd2c22348e5a69231f92fb44e35a9970b47c4e93Christian Maeder Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder$(CASL_DEPENDENT_BINARIES): $(sources) $(derived_sources)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
89c9d707aa817684b88036a2dad66c3437840677Heng Jiang#? CASL_DL/Logic_CASL_DL.hs: CASL_DL/PredefinedSign.hs
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder## suffix rules
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder.SUFFIXES:
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder## rule for GHC
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder%: %.hs packages
bea81dabd203833818cb4a5f3758977c695728cdHeng Jiang $(HC) --make -o $@ $< $(HC_OPTS)
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder## rule for HAPPY
49d647f58ec5bf482da541eec62f531848c49036Christian Maeder%.hs: %.y
7834a982096d93301a4626f444dd9ea5f9fe17eaChristian Maeder $(HAPPY) -o $@.tmp $<
7834a982096d93301a4626f444dd9ea5f9fe17eaChristian Maeder echo "{-# OPTIONS -w #-}" > $@
f9442174f64331ccf0bf08178632af7302ccfc96Christian Maeder cat $@.tmp >> $@
f9442174f64331ccf0bf08178632af7302ccfc96Christian Maeder $(RM) $@.tmp
f9442174f64331ccf0bf08178632af7302ccfc96Christian Maeder
c802a1041ed9251f8ad79139454267e802900e2aChristian Maeder## rule for DrIFT
53bbc1c9a4e986d1ee9c081d6f0ac7b9546f212bDominik Luecke%.hs: %.der.hs $(DRIFT)
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke $(RM) $@
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke chmod 444 $@
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke## rule for inlineAxioms
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke%.hs: %.inline.hs $(INLINEAXIOMS)
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke $(RM) $@
75b0c0c2cbfb7edd3f4c0555227aabbe6c1aa195Christian Maeder $(INLINEAXIOMS) $< > $@
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke chmod 444 $@
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu## rule for cpp and haddock
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu%.hspp: %.hs
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu $(HC) -E -cpp -D__HADDOCK__ \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu -DUNI_PACKAGE -DCASLEXTENSIONS -DPROGRAMATICA -optP -P $<
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu## compiling rules for object and interface files
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu%.o %.hi: %.hs
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu $(HC) -c $< $(HC_OPTS)
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu%.o %.hi: %.lhs
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu $(HC) -c $< $(HC_OPTS)
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu## compiling rules for dependencies
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu%.d : %.hs
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu%.d : %.lhs
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu## Rule to generate hs files from glade files. Needed for GTK
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu%.hs: %.glade utils/appendHaskellPreludeString \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu GUI/Glade/Template.append.hs
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu b=`basename $< .glade`; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu utils/appendHaskellPreludeString $< > $@
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu## generate the inline file for the predefined CASL_DL sign
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae BungiuCASL_DL/PredefinedSign.inline.hs: \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu CASL_DL/PredefinedSign.inline.hs.in utils/appendHaskellPreludeString \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu CASL_DL/PredDatatypes.het
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu $(RM) $@
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu utils/appendHaskellPreludeString CASL_DL/PredDatatypes.het \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu < CASL_DL/PredefinedSign.inline.hs.in > $@
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu echo " )" >> $@
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu chmod 444 $@
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu# Warning: Don't change the order of the depencies!!
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae BungiuCASL_DL/PredDatatypes.het: utils/transformLibAsBasicSpec.pl \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu CASL_DL/Datatypes.het
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu $(RM) $@
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu $(PERL) $+ > $@
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu chmod 444 $@
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu# uses intransparently utils/outlineAxioms
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae BungiuModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu utils/genTransMFormFunc.pl $(INLINEAXIOMS)
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu $(RM) $@
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu $(PERL) utils/genTransMFormFunc.pl $< $@
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu chmod 444 $@
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu# directory for installers
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae BungiuINSTALLER_DIR = ../installers
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiuifeq ($(strip $(HETS_VERSION)),)
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae BungiuHETS_VERSION := `cat version_nr`
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu# or `date +%F`
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiuendif
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu# prepare installer creation
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiuinitialize_installer:
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu mkdir -p $(INSTALLER_DIR)
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
b446bf54c1dc78690aa12e86aadc49cdd8585847Christian Maeder > $(INSTALLER_DIR)/Makefile
3b5814dc6ac813faf8a12ecddf4b727ca7b666a8Francisc Nicolae Bungiu @echo Please do
3b5814dc6ac813faf8a12ecddf4b727ca7b666a8Francisc Nicolae Bungiu @echo " -> cd $(INSTALLER_DIR)"
e7cf29d9f71f4724aed05916d93a0b656d7104e6Francisc Nicolae Bungiu @echo " -> make"
@echo and wait until it is finished
# check out java parts for OWL
owl_java:
svn co \
https://owlapi.svn.sourceforge.net/svnroot/owlapi/owl1_1/trunk \
OWL/java/OwlApi
initialize_java: owl_java
ant -q init
java-libs:
ant -q java-libs
java-files:
ant -q java-files
java-clean:
ant -q java-clean