Makefile revision 328a85c807f2a95c3f147d10b05927eaf862ebeb
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# Makefile
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# $Id$
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# Year: 2004
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# This Makefile will compile the new 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
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## Some varibles, which control the compilation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
68d10d143f29fcff3c637ba24f90e983995ceae6Christian MaederINCLUDE_PATH =
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus LuettichHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich Text/XML/Serializer
a737caf82de97c1907027c03e4b4509eb492b4b8Christian Maeder
68d10d143f29fcff3c637ba24f90e983995ceae6Christian MaederSOURCE_PATHS = . utils/itcor \
96646aed2ae087b942ae23f15bbe729a8f7c43d3Christian Maeder utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
01e383014b555bbcf639c0ca60c5810b3eff83c0Christian Maeder Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder CspCASL ATC Proofs Comorphisms Isabelle Driver Modifications \
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich Taxonomy CASL_DL SoftFOL OWL OMDoc PGIP Propositional RelationalScheme \
ce8b15da31cd181b7e90593cbbca98f47eda29d6Till Mossakowski DL VSE
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederempty =
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederspace = $(empty) $(empty)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
2e2094a642e3775b0d76b890556407941d3a53b6Christian Maeder
2e2094a642e3775b0d76b890556407941d3a53b6Christian Maeder# override on commandline for other architectures
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederINSTALLDIR = \
e8db9a65830cf71504e33c6f441a67b4d184a3caChristian Maeder /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
8410667510a76409aca9bb24ff0eda0420088274Christian MaederDRIFT_deps = utils/DrIFT-src/*hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
8410667510a76409aca9bb24ff0eda0420088274Christian MaederINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
ad270004874ce1d0697fb30d7309f180553bb315Christian Maeder
4d56f2fa72e4aec20eb827c11ed49c8cbb7014bdChristian MaederHC = ghc
4cb215739e9ab13447fa21162482ebe485b47455Christian MaederHCPKG = ghc-pkg
8ef75f1cc0437656bf622cec5ac9e8ea221da8f2Christian MaederPERL = perl
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichHAPPY = happy -sga
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederGENRULES = utils/genRules
356fa49fe3e6a8398f92d13e9f920d0f093697ecChristian MaederGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder -i Data.Typeable -i Common.ATerm.Lib
55adfe57a4de1f36adc3e3bfc16f342e44a7d444Christian MaederDRIFT = utils/DrIFT
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederINLINEAXIOMS = utils/outlineAxioms
8d97ef4f234681b11bb5924bd4d03adef858d2d2Christian MaederHADDOCK = haddock
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederOSBYUNAME = $(shell uname)
e593b89bfd4952698dc37feced21cefe869d87a2Christian Maederifneq ($(findstring SunOS, $(OSBYUNAME)),)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederTAR = gtar
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederelse
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian MaederTAR = tar
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maederendif
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
f041c9a6bda23de33a38490e35b831ae18d96b45Christian MaederARCH = $(subst $(space),,$(shell uname -m))
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian MaederSETUP = utils/Setup
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
c3053d57f642ca507cdf79512e604437c4546cb9Christian MaederSETUPPACKAGE = ../$(SETUP) clean; \
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder ../$(SETUP) configure -p $(SETUPPREFIX) --user; \
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian MaederHAXMLVERSION = $(shell $(HCPKG) field HaXml version)
b886e9e5db2098d0112cc4f70aeba232962939ddChristian Maederifneq ($(findstring 1.13., $(HAXMLVERSION)),)
c2fcc35abb03cf0b4ca4b050efeb10827f38c322Christian MaederHAXML_PACKAGE = -package HaXml -DHAXML_PACKAGE
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maederendif
356fa49fe3e6a8398f92d13e9f920d0f093697ecChristian Maeder
356fa49fe3e6a8398f92d13e9f920d0f093697ecChristian Maeder# remove -fno-warn-orphans for older ghcs and add -ifgl
4ed0007ac9caea5b468f202521352d153481423cChristian MaederHC_WARN = -Wall -fno-warn-orphans
356fa49fe3e6a8398f92d13e9f920d0f093697ecChristian MaederHC_FLAGS = $(HC_WARN) -fglasgow-exts -fallow-overlapping-instances
356fa49fe3e6a8398f92d13e9f920d0f093697ecChristian Maeder# -ddump-minimal-imports
0206ab93ef846e4e0885996d052b9b73b9dc66b0Christian Maeder# uncomment to above line to generate .imports files for displayDependencyGraph
f13d1e86e58da53680e78043e8df182eed867efbChristian Maeder
c2a4d8ae266aa37cc922eba97077520229a19902Christian MaederHC_INCLUDE = $(addprefix -i, $(INCLUDE_PATH))
03a6d8f77f588dc5d3dd6653797fa2362efa1751Christian Maeder
757e6c79ec40491d45dc72c82b5eb59a386634b0Jian Chun Wanglogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SoftFOL \
ecf76bc89d9a2ecd7ac7310d30654b9a79d97d62Klaus Luettich ConstraintCASL Propositional OWL DL RelationalScheme VSE
ecf76bc89d9a2ecd7ac7310d30654b9a79d97d62Klaus Luettich
ecf76bc89d9a2ecd7ac7310d30654b9a79d97d62Klaus LuettichTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
c6fcd42c6d6d9dae8c7835c24fcb7ce8531a9050Christian Maeder ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
31c49f2fa23d4ac089f35145d80a224deb6ea7e4Till Mossakowski Common/ATerm/ATermDiffMain.hs Common/annos.hs Common/test_parser.hs \
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich SoftFOL/tests/soapTest.hs Comorphisms/test/sublogicGraph.hs \
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich SoftFOL/dfg.hs
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik LueckeUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
8cacad2a09782249243b80985f28e9387019fe40Christian Maederifneq ($(strip $(UNI_PACKAGE_CONF)),)
363939beade943a02b31004cea09dec34fa8a6d9Christian MaederHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian Maeder -package uni-server -DUNI_PACKAGE
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder
8a28707e9155465c6f2236a06eac6580a65c7025Christian Maeder# some modules from uni for haddock
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich# if uni/server is included also HaXml sources are needed
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettichuni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder ../uni/reactor ../uni/util ../uni/posixutil
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
d3ae0072823e2ef0d41d4431fcc768e66489c20eChristian Maederuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(wildcard ../uni/htk/haddock/*/*.hs)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederTESTTARGETFILES += OWL/OWL11Parser.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Taxonomy/taxonomyTool.hs SoftFOL/tests/CMDL_tests.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder Static/test/TestDGTrans.hs
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederendif
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder### list of directories to run checks in
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederTESTDIRS += Common CASL HasCASL test
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
b886e9e5db2098d0112cc4f70aeba232962939ddChristian Maeder Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederPFE_TOOLDIR = $(wildcard ../programatica/tools)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederifneq ($(strip $(PFE_TOOLDIR)),)
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian MaederPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
776a1a086df734581431e6edb4343ed4c8d34d55Christian Maeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder base/transforms base/transforms/Deriving property \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder property/syntax property/AST property/transforms \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder property/TI property/defs property/parse2 property/parse2/Parser
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
c0c2380bced8159ff0297ece14eba948bd236471Christian Maederpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPFE_PATH = $(addprefix -i, $(PFE_PATHS))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPFE_FLAGS = -package programatica -DPROGRAMATICA
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederLEX_DIR = $(PFE_TOOLDIR)/base/parse2/Lexer
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederprogramatica_pkg: $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(LEX_DIR)/HsLex.hs $(SETUP)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder @if $(HCPKG) field programatica version; then \
03a6d8f77f588dc5d3dd6653797fa2362efa1751Christian Maeder echo "of programatica package found"; else \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder (patch -usNlp0 -d $(PFE_TOOLDIR) \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder -i `pwd`/Haskell/Programatica.patch || exit 0); \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder cp -f utils/programatica.cabal ../programatica/tools; \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder cp -f $(SETUP) ../programatica/tools; \
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maeder (cd ../programatica/tools; \
bc8cbf12aa172bf5673b92a9e7a0151d4aa4c315Christian Maeder ./Setup configure $(SETUPPREFIX); \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder ./Setup build; ./Setup install --user) fi
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maeder$(LEX_DIR)/HsLex.hs: $(LEX_DIR)Gen/HsLexerGen
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maeder echo "{-# OPTIONS -w #-}" > $@
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder $< >> $@
bc8cbf12aa172bf5673b92a9e7a0151d4aa4c315Christian Maeder
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder $(LEX_DIR)/HsTokens.hs
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder $(HC) --make -fno-monomorphism-restriction -O \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder -i$(PFE_TOOLDIR)/base/tests/HbcLibraries \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder -i$(PFE_TOOLDIR)/base/lib \
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder $@.hs -o $@
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder strip $@
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
4017ebc0f692820736d796af3110c3b3018c108aChristian Maederlogics += Haskell
a9b59eb2ce961014974276cdae0e9df4419bd212Christian Maederderived_sources += Haskell/PreludeString.hs $(LEX_DIR)/HsLex.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(LEX_DIR)Gen/HsLexerGen
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(HC) --make -o $@ $<
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maeder Haskell/ProgramaticaPrelude.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder## rule for appendHaskellPreludeString
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder $(APPENDPRELUDESTRING)
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder $(RM) $@
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder $(APPENDPRELUDESTRING) < $< > $@
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder chmod 444 $@
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder HsModule HsName HsLiteral HsIdent
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder
b568982efd0997d877286faa592d81b03c8c67b8Christian Maeder#files in base/TI/
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder property/syntax/PropSyntaxStruct
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian MaederHaskell_files = $(addsuffix .hs, \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder## rule for ATC generation
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederhs_der_files += $(hs_clean_files)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederTESTDIRS += ToHaskell
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederendif
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederTESTTARGETS = Test.o $(subst .hs,,$(TESTTARGETFILES))
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder### Profiling (only for debugging)
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder### Attention every module must be compiled with profiling or the linker
89f7631cbfbd1bb99fc152b434bd362a7799d295Christian Maeder### cannot link the various .o files properly. So after switching on
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder### Profiling, do an 'gmake real_clean; gmake'
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder### Comment in the following line for switching on profiling.
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian MaederHC_OPTS = $(HC_FLAGS) $(HC_INCLUDE) $(HC_PROF) $(HAXML_PACKAGE) $(HC_PACKAGE) \
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich $(PFE_FLAGS) -DCASLEXTENSIONS -threaded
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich## sources for hets
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
4ed0007ac9caea5b468f202521352d153481423cChristian Maedernon_sources = Common/LaTeX_maps.svmono.hs Common/CaslLanguage.hs ./Test.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(SETUP).hs
2c619a4dfdc1df27573eba98e81ed1ace906941dChristian Maeder
b886e9e5db2098d0112cc4f70aeba232962939ddChristian Maedersources = hets.hs $(filter-out $(non_sources), \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(wildcard $(addsuffix /[A-Z]*hs, $(SOURCE_PATHS))))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederobjects = $(sources:%.hs=%.o)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
42b12fba6830ada5057949f825fc27edf5574e5fChristian Maederdrifted_files = Common/AS_Annotation.hs \
42b12fba6830ada5057949f825fc27edf5574e5fChristian Maeder CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder Propositional/AS_BASIC_Propositional.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder CASL_DL/AS_CASL_DL.hs OWL/ReadWrite.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder DL/AS.hs RelationalScheme/AS.hs \
9df11f85fd7f8c4745d64464876e84ec4e263692Christian Maeder $(gendrifted_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
6770ec11184086a81daddba75e0cd1f45a2eff96Christian Maederatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettich Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
cf04ba46b9eb495d334466e24e082e391055ca7bDominik Luecke Logic/Prover.hs Common/ExtSign.hs Static/DevGraph.hs
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckersatc_der_files = $(foreach file, $(atc_files), \
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederATC/Id.der.hs: Common/Id.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -o $@ $<
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederATC/Result.der.hs: Common/Result.hs $(GENRULES)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(GENRULECALL) -o $@ $<
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
819e29dba060687cf391e444e0f6ff88c1908cc3Christian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Grothendieck -o $@ $<
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i ATC.AS_Structured -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i ATC.AS_Architecture -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -x Logic.Prover.ProverTemplate \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder -i ATC.AS_Annotation -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
ac34194a668399bb8ef238da77c3a09e93fb253bChristian MaederATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
ac34194a668399bb8ef238da77c3a09e93fb253bChristian Maeder $(GENRULECALL) -i ATC.AS_Library -i ATC.Grothendieck -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder CASL/AS_Basic_CASL.der.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
4561227a776bdf0ab679b19fb92f1eaaed8786f7Christian MaederHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian MaederIsabelle_files = Isabelle/IsaSign.hs
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik Luecke Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
1b5b696aa3bc2a6747a4eeac777f850788482c98Dominik Luecke Propositional/Sublogic.hs
1b5b696aa3bc2a6747a4eeac777f850788482c98Dominik Luecke
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederDL_files = DL/AS.hs DL/Sign.hs
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
0b349288edfa50fdf38fda1a14e1562d03f92574Christian MaederModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
0b349288edfa50fdf38fda1a14e1562d03f92574Christian MaederConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus LuettichCOL_files = COL/AS_COL.hs COL/COLSign.hs
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettich
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus LuettichCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
e96a0bf4040fd789339958c01f145c5057d26db6René Wagner CspCASL/SignCSP.hs
abf2487c3aece95c371ea89ac64319370dcb6483Klaus Luettich
abf2487c3aece95c371ea89ac64319370dcb6483Klaus LuettichCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederSoftFOL_files = SoftFOL/Sign.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederOWL_files = OWL/Sign.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederVSE_files = VSE/As.hs
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b9b960bc75e34658e70c4a0231dbc6a6e7373f2dChristian Maedergenerated_rule_files = $(atc_der_files) $(atc_logic_files)
18a4d5cb6828f080db9c5f9551785c5151027271Christian Maeder
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettichgendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederinline_axiom_files = Comorphisms/CASL2PCFOL.hs \
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski Comorphisms/Modal2CASL.hs Comorphisms/CASL2TopSort.hs \
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder Comorphisms/CASL2SubCFOL.hs CASL_DL/PredefinedSign.hs
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowskigen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederderived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files)
d8bebe0559abdfcd912ac68cf0948fe601249a66Christian Maeder
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich# sources that have {-# OPTIONS -cpp #-}
9a5fda85e9eaf0e6a18d0dd2b8535805c5135e9aDominik Lueckecpp_sources = \
63e50b4c36074d5fb9de872c4007b688b4bce534Christian Maeder CASL/Logic_CASL.hs Isabelle/CreateTheories.hs \
bd54a9917cd87169b8e40bcc5616c537fed85815Christian Maeder SoftFOL/Logic_SoftFOL.hs GUI/Utils.hs Driver/WriteFn.hs \
d534c548bf83a00375e5205b62a55bf6abd32a90Christian Maeder Propositional/Logic_Propositional.hs \
11b55e6fbbc397b9fa41a7d61be53c6f4f027824Christian Maeder Comorphisms/LogicList.hs Comorphisms/LogicGraph.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder Comorphisms/KnownProvers.hs hets.hs $(happy_files) \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder PGIP/InfoCommands.hs OWL/Logic_OWL11.hs
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# unused, remove when header files are gone
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maedergenrule_header_files = $(wildcard ATC/*.header.hs)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maedernondoc_sources = $(wildcard utils/DrIFT-src/*.hs) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(wildcard utils/DrIFT-src/*.lhs) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(wildcard utils/GenerateRules/*.hs) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(wildcard utils/InlineAxioms/*.hs) \
6bf24e5eb644064ad650eb3fd9774483fccbf601Christian Maeder $(wildcard utils/itcor/*.hs) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(cpp_sources) $(pfe_sources) $(gen_inline_axiom_files) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(genrule_header_files) $(generated_rule_files) \
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hspp \
e8db9a65830cf71504e33c6f441a67b4d184a3caChristian Maeder Modal/GeneratePatterns.inline.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Haskell/PreludeString.append.hs Haskell/ProgramaticaPrelude.hs \
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder SoftFOL/MathServCommunication.hs \
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder $(patsubst %.hs, %.der.hs, $(drifted_files))
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
6bf24e5eb644064ad650eb3fd9774483fccbf601Christian Maederhspp_sources = $(patsubst %.hs, %.hspp, $(cpp_sources))
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke# this variable holds the modules that should be documented
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederdoc_sources = $(filter-out $(nondoc_sources), $(sources) $(hspp_sources))
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maedertax_sources = Taxonomy/AbstractGraphView.hs Taxonomy/MMiSSOntology.hs \
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke Taxonomy/MMiSSOntologyGraph.hs Taxonomy/OntoParser.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedertax_objects = $(patsubst %.hs, %.o, $(tax_sources))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich####################################################################
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder### targets
27785f379d6810811b4e6d23feab18845fde9a98Christian Maeder
f443a57f2a8e0ca3daa7431b0c89a18ba52c337aChristian Maeder.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder real_clean bin_clean package_clean distclean packages \
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder http_pkg syb_pkg shellac_pkg shread_pkg shcompat_pkg \
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maeder hxt_pkg haifa_pkg programatica_pkg maintainer-clean annos \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder check capa hacapa h2h h2hf showKP clean_genRules genRules \
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski count doc apache_doc post_doc4apache fromKif \
7c99e334446bb97120e30e967baeeddfdd1278deKlaus Luettich derivedSources install_hets install release cgi ghci
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder$(SETUP): utils/Setup.hs
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder $(HC) --make -O -o $@ $<
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maederpackages: http_pkg syb_pkg shellac_pkg shread_pkg shcompat_pkg \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder hxt_pkg haifa_pkg programatica_pkg
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maederhttp_pkg: utils/http.tgz $(SETUP)
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder @if $(HCPKG) field HTTP version; then \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder echo "of HTTP package found"; else \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(RM) -r http; \
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder $(TAR) zxf utils/http.tgz; \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder (cd http; $(SETUPPACKAGE)) fi
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maedersyb_pkg: $(SETUP)
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder @if $(HCPKG) field syb-generics version; then \
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder echo "of syb-generics package found"; else \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder (cd syb-generics; $(SETUPPACKAGE)) fi
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
215d42ce4d6397a453d5887292bc786e8fa9c1a2Christian Maedershellac_pkg: utils/shellac.tgz $(SETUP)
215d42ce4d6397a453d5887292bc786e8fa9c1a2Christian Maeder @if $(HCPKG) field Shellac version; then \
215d42ce4d6397a453d5887292bc786e8fa9c1a2Christian Maeder echo "of Shellac package found"; else \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(RM) -r shellac; \
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder $(TAR) zxf utils/shellac.tgz; \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder (cd shellac; $(SETUPPACKAGE)) fi
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maedershread_pkg: utils/shread.tgz $(SETUP) shellac_pkg
215d42ce4d6397a453d5887292bc786e8fa9c1a2Christian Maeder @if $(HCPKG) field Shellac-readline version; then \
215d42ce4d6397a453d5887292bc786e8fa9c1a2Christian Maeder echo "of Shellac-readline package found"; else \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(RM) -r shread; \
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder $(TAR) zxf utils/shread.tgz; \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder (cd shread; $(SETUPPACKAGE)) fi
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
215d42ce4d6397a453d5887292bc786e8fa9c1a2Christian Maedershcompat_pkg: utils/shcompat.tgz $(SETUP) shread_pkg
215d42ce4d6397a453d5887292bc786e8fa9c1a2Christian Maeder @if $(HCPKG) field Shellac-compatline version; then \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder echo "of Shellac-compatline package found"; else \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(RM) -r shcompat; \
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder $(TAR) zxf utils/shcompat.tgz; \
27785f379d6810811b4e6d23feab18845fde9a98Christian Maeder (cd shcompat; $(SETUPPACKAGE)) fi
27785f379d6810811b4e6d23feab18845fde9a98Christian Maeder
b886e9e5db2098d0112cc4f70aeba232962939ddChristian Maederhxt_pkg: $(SETUP) http_pkg
27785f379d6810811b4e6d23feab18845fde9a98Christian Maeder @if $(HCPKG) field hxt version; then \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder echo "of hxt package found"; else \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder $(RM) -r hxt; \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder $(TAR) zxf utils/hxt.tgz; \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder (cd hxt; $(SETUPPACKAGE)) fi
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maederhaifa_pkg: $(SETUP) hxt_pkg syb_pkg
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder @if $(HCPKG) field HAIFA version; then \
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder echo "of HAIFA package found"; else \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder (cd haifa-lite; $(SETUPPACKAGE)) fi
0c355dd0b739631ee472f9a656e266be27fa4e64Christian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederprogramatica_pkg:
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maederhets-opt:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) distclean
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder $(MAKE) derivedSources
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) clean
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder $(MAKE) hets-optimized
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettichhets-optimized: $(derived_sources)
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich $(HC) --make -O -o hets hets.hs $(HC_OPTS)
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich strip hets
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettichhets-old: $(objects)
a883cd4d01fe39d23219cf5333425f195be24d8bChristian Maeder $(RM) $@
5c69cef4668bbd959d721668313a779126014d1eKlaus Luettich $(HC) -o hets $(HC_OPTS) $(objects)
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettichcgi:
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich $(MAKE) distclean
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich $(MAKE) derivedSources
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich $(MAKE) real_clean
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich $(MAKE) hets.cgi
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettichhets.cgi: $(sources) GUI/hets_cgi.hs
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich strip hets.cgi
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettichhets_maintainers.txt: $(sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @echo 'File : Maintainer' > $@
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich @echo -n Generating $@ " "
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich @egrep -m 1 "Maintainer" $(sources) | \
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich sed -e 's/: *Maintainer *: */ : /' >> $@
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich @echo " done"
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder###############################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### count lines of code
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maedercount: $(sources)
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder wc -l $(sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder###############################
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder### Documentation via haddock
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maederdoc: docs/index.html
c1bf9cc3bc3729b0bf925be3be123cbb59bea2a6Christian Maeder
c1bf9cc3bc3729b0bf925be3be123cbb59bea2a6Christian Maeder# generate haddock documentation with links to sources
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder# the interface treatment is stolen from uni/mk/suffix.mk
96646aed2ae087b942ae23f15bbe729a8f7c43d3Christian Maederdocs/index.html: $(doc_sources)
96646aed2ae087b942ae23f15bbe729a8f7c43d3Christian Maeder $(RM) -r docs
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder mkdir docs
3a7788e09dd23b364a46c9488cbd1522369113dbChristian Maeder cp -r -L ../uni/www docs/www || mkdir docs/www
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder HINTERFACES0=`find -L docs/www -name '*.haddock' \
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich -printf "--read-interface=www/%P,%p "` ; \
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder HINTERFACES=`echo $$HINTERFACES0 | \
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich $(PERL) -pe 's+/[^/]*.haddock,+,+g'` ; \
462d9dc583444aab82732e14a75610684d2dc7e9Christian Maeder $(HADDOCK) -o docs -h -v -s ../%F $$HINTERFACES \
c9e197862d9d8ef2585270dd08f5194b3aed4a9dKlaus Luettich -t 'Hets - the Heterogeneous Tool Set' \
e7e1ab2ac3f1fded8611bb92ae00e8f3b8c693fbKlaus Luettich -p Hets-Haddock-Prologue.txt $(doc_sources)
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich# sources are not copied here
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettichapache_doc:
d784803f9c752667b4fcf7393d698002bedf3f89Klaus Luettich $(RM) -r docs
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich cvs up -d ; echo "CVS exited with: " $$?
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich $(MAKE) hets-opt
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder $(MAKE) doc
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder $(MAKE) post_doc4apache
462d9dc583444aab82732e14a75610684d2dc7e9Christian Maeder $(MAKE) o_clean
5d39c60274aaa76506292d2d9e885fccd27e1eabChristian Maeder $(MAKE) hets.cgi
5d39c60274aaa76506292d2d9e885fccd27e1eabChristian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederpost_doc4apache:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) -r a-docs
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder cp -r docs a-docs
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(PERL) utils/post_process_docs.pl a-docs \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder 'Common.Lib.Map.html:Common.Lib._Map.html'
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder $(PERL) utils/post_process_docs.pl a-docs \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder 'Data.Map.html:Data._Map.html'
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich###############################
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder### release management
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichderivedSources: $(derived_sources) $(hspp_sources)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder$(DRIFT): $(DRIFT_deps)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT && \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder strip ../DrIFT)
f2d9352f2999f82c36b4b65535d14a6a40ae5a82Christian Maeder
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder$(GENRULES): $(DRIFT) $(GENERATERULES_deps)
43bb71dfe7ec405f563864d57c1cacdaa8ce9a80Christian Maeder (cd utils/GenerateRules; \
f2d9352f2999f82c36b4b65535d14a6a40ae5a82Christian Maeder $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder GenerateRules.hs -o ../genRules && strip ../genRules)
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
2d6d9112c010389cde5625404c4f437aa7fa3cd4Christian Maeder# "-package hssource" for ghc-5.04.2
5a9437fabd7b65fe4aa1c59c6f79f154f3cf8841Christian Maeder$(INLINEAXIOMS): $(INLINEAXIOMS_deps)
37951dbd8e5f2418a07f072d9bf551d0c3a1eafcChristian Maeder $(HC) --make utils/InlineAxioms/InlineAxioms.hs $(HC_WARN) $(HC_PROF) \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder -i../.. -o $(INLINEAXIOMS)
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder strip $(INLINEAXIOMS)
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederREV = trunk
c22d75ec3ea1306219d1c09a5b3e8ff04f753ad6Christian Maederrelease:
9c3edf2b283c09d33b2820696886d1ed32fcadc8Christian Maeder $(RM) -r Hets
c22d75ec3ea1306219d1c09a5b3e8ff04f753ad6Christian Maeder svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(RM) -r uni
68b77966b2cf7bf2e340bf0fb6b9efc3e6a00467Christian Maeder if [ -d ../uni ] ; then ln -s ../uni uni ; fi
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder $(RM) -r programatica
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder if [ -d ../programatica ] ; then \
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder mkdir programatica; \
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder ln -s ../../programatica/tools programatica/tools ; fi
c59d1c38ef94b4fb1c8d9fda9573bc1e1d2801e7Christian Maeder (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder cp Makefile Makefile.orig; \
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder cp ReleaseMakefile Makefile; \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder ./clean.sh; \
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian Maeder $(RM) clean.*; utils/replaceAllHeaders.sh)
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian Maeder $(TAR) cvf Hets.tar Hets
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maederinstall-hets:
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder chmod g+w hets
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder cp -p hets $(INSTALLDIR)/versions/hets-`cat version_nr`
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder cp -p version_nr $(INSTALLDIR)
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder (cd $(INSTALLDIR); $(RM) hets; \
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder ln -s versions/hets-`cat version_nr` hets; $(RM) version_nr)
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettichinstall: hets-opt install-hets
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettichpack/install-%.jar: pack/install-%.xml pack/UserInputSpec-%.xml hets.in hets
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich ## TODO: add more dependencies and use hets-opt
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich compile $< -b . -k standard -o $@
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich# compile $< -b . -k web -o $@
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich###################################
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### Common/LaTeX_maps.hs generation
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichutils/genItCorrections: $(GENITCORRECTIONS_deps)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(HC) --make -o $@ $<
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich strip $@
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @echo -n "Generating pretty/LaTeX_maps.hs ... "
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @(cd pretty >/dev/null; ../utils/genItCorrections \
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus Luettich gen_it_characters gen_it_words >> LaTeX_maps.hs)
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus Luettich @echo "ready"
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers @echo "please copy the file manually to Common"
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers#############################
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder### ATC DrIFT-rule generation
18c1d987ce5818ecf0bfc8af3f43aed2ce86e1eaChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaedergenRules: $(generated_rule_files)
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik Luecke
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian MaederCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik Luecke $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik Luecke
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik LueckeDL/ATC_DL.der.hs: $(DL_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(DL_files)
1c9a63e4f7c6879f51fe0f32154a9116f2c126dbChristian Maeder
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian MaederRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus LuettichHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till MossakowskiIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -o $@ $(Isabelle_files)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix ReckersCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
e96a0bf4040fd789339958c01f145c5057d26db6René WagnerCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich
abf2487c3aece95c371ea89ac64319370dcb6483Klaus LuettichCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
abf2487c3aece95c371ea89ac64319370dcb6483Klaus Luettich $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
abf2487c3aece95c371ea89ac64319370dcb6483Klaus Luettich
abf2487c3aece95c371ea89ac64319370dcb6483Klaus LuettichCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
83394c6b6e6de128e71b67c9251ed7a84485d082Christian MaederSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederOWL/ATC_OWL.der.hs: $(OWL_files) $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i OWL.ReadWrite -o $@ $(OWL_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus LuettichVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettichclean_genRules:
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder $(RM) $(generated_rule_files) $(gendrifted_files) $(hspp_sources) \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(hs_clean_files)
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder###############
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### clean up
d0652648f9879c67a194f8b03baafe2700c68eb4Christian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian Maederclean: bin_clean o_clean clean_pretty
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder### removes all *.o, *.hi and *.p_o files in all subdirectories
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luetticho_clean:
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich find . -name \*.o -o -name \*.hi -o -name \*.p_o | xargs $(RM)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder### remove binaries
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettichbin_clean:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) hets
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(RM) hets.cgi
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(RM) $(SETUP)
27785f379d6810811b4e6d23feab18845fde9a98Christian Maeder $(RM) $(TESTTARGETS)
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maederclean_pretty:
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder pretty/generated_words.tex
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder### additionally removes the library files
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maederreal_clean: clean
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder### clean user packages
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederpackage_clean:
c5e3fc166373b0d90f6e36e8aa234396a1dcd879Christian Maeder $(HCPKG) unregister HAIFA --user || exit 0
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder $(HCPKG) unregister programatica --user || exit 0
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(HCPKG) unregister hxt --user || exit 0
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HCPKG) unregister Shellac-compatline --user || exit 0
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder $(HCPKG) unregister Shellac-readline --user || exit 0
8451c0f87cd1c53edee413e5154dbe7e44448664Christian Maeder $(HCPKG) unregister HTTP --user || exit 0
e1559d046eb2c6dde0e6e272b37b6756eac0e8adChristian Maeder $(HCPKG) unregister syb-generics --user || exit 0
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder $(HCPKG) unregister Shellac --user || exit 0
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### additionally removes generated files not in the CVS tree
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederdistclean: clean clean_genRules
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) $(derived_sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) Modal/GeneratePatterns.inline.hs utils/appendHaskellPreludeString
2c619a4dfdc1df27573eba98e81ed1ace906941dChristian Maeder $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
2c619a4dfdc1df27573eba98e81ed1ace906941dChristian Maeder $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedermaintainer-clean: distclean package_clean
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder $(RM) -r $(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder####################################################################
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder### test targets
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder####################################################################
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### interactive
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederghci: $(derived_sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC)i $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### christian's target
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### CASL parser
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till MossakowskifromKif: CASL/fromKif
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski### Annos parser
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torriniannos: Common/annos
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini### CASL parser
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maedercapa: CASL/capa
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maeder
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maeder### HasCASL parser
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrinihacapa: HasCASL/hacapa
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder### Haskell analysis
23ab8855c58adfbd03a0730584b917b24c603901Christian Maederhana: Haskell/hana
e50e41135ece589f7202bd4ef8d6b97531c2a56eKlaus Luettich
47b0e9f3cb008cb7997f4e3bae26e4d62dcc887aChristian Maeder### Haskell to Isabelle-HOLCF translation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederh2hf: Haskell/h2hf
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
431d34c7007a787331c4e5ec997badb0f8190fc7Christian MaederHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Common/Lib/*.hs Comorphisms/*.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) -O --make -o $@ $< $(HC_FLAGS) $(PFE_FLAGS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder### HasCASL to Haskell translation
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maederh2h: Haskell/h2h
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder
d5d349836d8b1fa93ea49a59d977b106c6e9233bKlaus Luettich### test program to check the known provers
d5d349836d8b1fa93ea49a59d977b106c6e9233bKlaus LuettichshowKP: Comorphisms/test/showKP
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### run tests in other directories
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedercheck: $(TESTTARGETS)
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich####################################################################
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian Maeder## Preparing the version of Hets
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian MaederDriver/Version.hs: Driver/Version.in version_nr
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich $(RM) $@
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich LANG=C $(PERL) utils/build_version.pl version_nr \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich < Driver/Version.in > $@
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich chmod 444 $@
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich## two hardcoded dependencies for a correct generation of Version.hs
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus LuettichDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhets.hs: Driver/Version.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/DevGraph.hs: Static/DevGraph.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder## two dependencies for avoidence of circular prerequisites
363939beade943a02b31004cea09dec34fa8a6d9Christian MaederCASL_DEPENDENT_BINARIES= hets CASL/capa CASL/fromKif \
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder Common/annos Common/test_parser Comorphisms/test/showKP \
fdef3358918491badb0e29e42b5d3b5a01950716Christian Maeder CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder$(CASL_DEPENDENT_BINARIES): $(sources) $(derived_sources)
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder# CASL_DL/Logic.hs: CASL_DL/PredefinedSign.hs
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder####################################################################
fdef3358918491badb0e29e42b5d3b5a01950716Christian Maeder## rules for DrIFT
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder.SUFFIXES:
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder
7767474aba4fa2dc51a6c68017d3bcef3b773001Christian Maeder%: %.hs packages
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski%.hs: %.y
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder $(HAPPY) -o $@.tmp $<
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder echo "{-# OPTIONS -w #-}" > $@
bf76f4fcf07abaebea587df8135de8356c26a363Till Mossakowski cat $@.tmp >> $@
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder $(RM) $@.tmp
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder%.hs: %.der.hs $(DRIFT)
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich $(RM) $@
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maeder ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maeder chmod 444 $@
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## rules for inlineAxioms
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.hs: %.inline.hs $(INLINEAXIOMS)
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich $(RM) $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(INLINEAXIOMS) $< > $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder chmod 444 $@
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## rule for cpp and haddock
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.hspp: %.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) -E -cpp -D__HADDOCK__ \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder -DUNI_PACKAGE -DCASLEXTENSIONS -DPROGRAMATICA -optP -P $<
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## compiling rules for object and interface files
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.o %.hi: %.hs
1a6464613c59e35072b90ca296ae402cbe956144Christian Maeder $(HC) -c $< $(HC_OPTS)
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich%.o %.hi: %.lhs
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich $(HC) -c $< $(HC_OPTS)
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich## compiling rules for dependencies
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich%.d : %.hs
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich%.d : %.lhs
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich## generate the inline file for the predefined CASL_DL sign
2e62113845a35e07cb46db05714627c95450f267Klaus LuettichCASL_DL/PredefinedSign.inline.hs: \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich CASL_DL/PredefinedSign.inline.hs.in utils/appendHaskellPreludeString \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich CASL_DL/PredDatatypes.het
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich $(RM) $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich utils/appendHaskellPreludeString CASL_DL/PredDatatypes.het \
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich < CASL_DL/PredefinedSign.inline.hs.in > $@
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder echo " )" >> $@
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder chmod 444 $@
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder# Warning: Don't change the order of the depencies!!
438f9bd974c8e668203e636b0f2bc80c589af043Klaus LuettichCASL_DL/PredDatatypes.het: utils/transformLibAsBasicSpec.pl \
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder CASL_DL/Datatypes.het
feac53e31a8351e3e3c6621f6a14b5714008bfc7Heng Jiang $(RM) $@
89c9d707aa817684b88036a2dad66c3437840677Heng Jiang $(PERL) $+ > $@
af12672e86f22a822a9915a21efbbbc04a01e3c1Heng Jiang chmod 444 $@
af12672e86f22a822a9915a21efbbbc04a01e3c1Heng Jiang
af12672e86f22a822a9915a21efbbbc04a01e3c1Heng Jiang## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
bea81dabd203833818cb4a5f3758977c695728cdHeng Jiang# uses intransparently utils/outlineAxioms
bea81dabd203833818cb4a5f3758977c695728cdHeng JiangModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder utils/genTransMFormFunc.pl $(INLINEAXIOMS)
bea81dabd203833818cb4a5f3758977c695728cdHeng Jiang $(RM) $@
b1fc44bcc364a48f94b73b7995c2325e37359db7Heng Jiang $(PERL) utils/genTransMFormFunc.pl $< $@
b1fc44bcc364a48f94b73b7995c2325e37359db7Heng Jiang chmod 444 $@
63fd75b1839e6d061eaa2d8d72011b6ca53b0ca9Heng Jiang
f041c9a6bda23de33a38490e35b831ae18d96b45Christian MaederINSTALLER_DIR = ../installers
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maederifeq ($(strip $(HETS_VERSION)),)
f041c9a6bda23de33a38490e35b831ae18d96b45Christian MaederHETS_VERSION := `cat version_nr`
cef2a3ba4ae8b76980733a5e6fc025df18001962Heng Jiang# or `date +%F`
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maederendif
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maederinitialize_installer:
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder mkdir -p $(INSTALLER_DIR)
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder > $(INSTALLER_DIR)/Makefile
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder @echo Please do
bea81dabd203833818cb4a5f3758977c695728cdHeng Jiang @echo " -> cd $(INSTALLER_DIR)"
af12672e86f22a822a9915a21efbbbc04a01e3c1Heng Jiang @echo " -> make"
af12672e86f22a822a9915a21efbbbc04a01e3c1Heng Jiang @echo and wait until it is finished
af12672e86f22a822a9915a21efbbbc04a01e3c1Heng Jiang