Makefile revision 6d48df27e647ee84056df7985f09b60e1877bad6
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# Makefile
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# $Header$
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
d8c71aacc9f1c8cd40a8ad8dcdad9be8854b849fChristian Maederall: patch hets
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## Some varibles, which control the compilation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus LuettichINCLUDE_PATH = hxt syb-generics haifa-lite/src hcl/src
a737caf82de97c1907027c03e4b4509eb492b4b8Christian MaederHXT_PATHS = Data Data/Tree Data/Tree/NTree Data/Digest Text Text/XML \
a737caf82de97c1907027c03e4b4509eb492b4b8Christian Maeder Text/XML/HXT Text/XML/HXT/IO Text/XML/HXT/DOM Text/XML/HXT/Arrow \
a737caf82de97c1907027c03e4b4509eb492b4b8Christian Maeder Text/XML/HXT/XPath Text/XML/HXT/Validator Text/XML/HXT/Parser \
a737caf82de97c1907027c03e4b4509eb492b4b8Christian Maeder Text/XML/HXT/RelaxNG Text/XML/HXT/ProtocolHandler Codec Codec/ASN1 \
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maeder Codec/Binary Codec/Encryption Codec/Encryption/RSA Network \
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maeder Control Control/Arrow Control/Monad System \
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maeder System/Console System/Console/Shell System/Console/Shell/Backend
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
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus LuettichCLEAN_PATH = . 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 \
bd54a9917cd87169b8e40bcc5616c537fed85815Christian Maeder Taxonomy CASL_DL SPASS OWL_DL OMDoc $(PFE_PATHS) \
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich $(addprefix hxt/, $(HXT_PATHS)) \
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich hcl/src/Data syb-generics/Data syb-generics/Data/Generics2 \
8c7a54ad8bf776a530ecf907a373d42415cf4faeChristian Maeder $(addprefix haifa-lite/src/, $(HAIFA_PATHS)) PGIP
ce8b15da31cd181b7e90593cbbca98f47eda29d6Till Mossakowski
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederempty =
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederspace = $(empty) $(empty)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder## set ghc imports properly for your system
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederGHC_IMPORTS = `$(HC) --print-libdir`/imports
2e2094a642e3775b0d76b890556407941d3a53b6Christian Maeder# import directories for ghc-5.04.2
2e2094a642e3775b0d76b890556407941d3a53b6Christian MaederGHC5 = $(GHC_IMPORTS)/base:$(GHC_IMPORTS)/haskell98
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederDRIFT_ENV = \
e8db9a65830cf71504e33c6f441a67b4d184a3caChristian Maeder DERIVEPATH=.:$(GHC_IMPORTS):$(GHC5):$(subst $(space),:,$(PFE_PATHS))
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder# override on commandline for other architectures
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederINSTALLDIR = \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichDRIFT_deps = utils/DrIFT-src/*hs
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus LuettichGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs Common/Utils.hs \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich Common/Lib/Map.hs Common/Lib/Set.hs
4d56f2fa72e4aec20eb827c11ed49c8cbb7014bdChristian MaederINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
4cb215739e9ab13447fa21162482ebe485b47455Christian Maeder Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
8ef75f1cc0437656bf622cec5ac9e8ea221da8f2Christian Maeder Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHC = ghc
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPERL = perl
55adfe57a4de1f36adc3e3bfc16f342e44a7d444Christian MaederHAPPY = happy -sga
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederGENRULES = utils/genRules
8d97ef4f234681b11bb5924bd4d03adef858d2d2Christian MaederGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
8d97ef4f234681b11bb5924bd4d03adef858d2d2Christian Maeder -i Common.DynamicUtils -i Common.ATerm.Lib
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederDRIFT = utils/DrIFT
e593b89bfd4952698dc37feced21cefe869d87a2Christian MaederINLINEAXIOMS = utils/outlineAxioms
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHADDOCK = haddock
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
0206ab93ef846e4e0885996d052b9b73b9dc66b0Christian Maeder# remove -fno-warn-orphans for older ghcs and add -ifgl
f13d1e86e58da53680e78043e8df182eed867efbChristian MaederHC_WARN = -Wall -fno-warn-orphans
cdd280437686b1e2e25e3761d4adf3d4a0a2d11cKlaus LuettichHC_FLAGS = -fcontext-stack60 \
96646aed2ae087b942ae23f15bbe729a8f7c43d3Christian Maeder $(HC_WARN) -fglasgow-exts -fno-monomorphism-restriction \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder -fallow-overlapping-instances -fallow-undecidable-instances
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# -ddump-minimal-imports
c6fcd42c6d6d9dae8c7835c24fcb7ce8531a9050Christian Maeder# flags also come in via ../uni/uni-package.conf
31c49f2fa23d4ac089f35145d80a224deb6ea7e4Till Mossakowski# but added it here in case of compilation without uni
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus LuettichHC_INCLUDE = $(addprefix -i, $(INCLUDE_PATH))
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich
363939beade943a02b31004cea09dec34fa8a6d9Christian Maederlogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SPASS \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder OWL_DL ConstraintCASL
8cacad2a09782249243b80985f28e9387019fe40Christian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian MaederTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian Maeder Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
8a28707e9155465c6f2236a06eac6580a65c7025Christian Maeder Common/ATerm/ATermDiffMain.hs Common/annos.hs Common/test_parser.hs \
47b0e9f3cb008cb7997f4e3bae26e4d62dcc887aChristian Maeder SPASS/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
d3ae0072823e2ef0d41d4431fcc768e66489c20eChristian Maederifneq ($(strip $(UNI_PACKAGE_CONF)),)
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder -package uni-server -DUNI_PACKAGE
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# some modules from uni for haddock
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# if uni/server is included also HaXml sources are needed
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederuni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder ../uni/reactor ../uni/util ../uni/posixutil
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(wildcard ../uni/htk/haddock/*/*.hs)
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian MaederTESTTARGETFILES += OWL_DL/ToHaskellAS.hs Taxonomy/taxonomyTool.hs
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederendif
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder### list of directories to run checks in
776a1a086df734581431e6edb4343ed4c8d34d55Christian MaederTESTDIRS += Common CASL HasCASL test
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPFE_TOOLDIR = $(wildcard ../programatica/tools)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederifneq ($(strip $(PFE_TOOLDIR)),)
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/transforms base/transforms/Deriving property \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/syntax property/AST property/transforms \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/TI property/defs property/parse2 property/parse2/Parser
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederPFE_PATH = $(addprefix -i, $(PFE_PATHS))
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederPFE_FLAGS = -package data -package text $(PFE_PATH) -DPROGRAMATICA
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederLEX_DIR = $(PFE_TOOLDIR)/base/parse2/Lexer
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
4017ebc0f692820736d796af3110c3b3018c108aChristian Maederpatch: Haskell/Programatica.patch
ad4889ebb40efae8595b0969dd6ba1162d52bac3Christian Maeder patch -usNlp0 -d $(PFE_TOOLDIR) -i `pwd`/$< || exit 0
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder$(LEX_DIR)/HsLex.hs: $(LEX_DIR)Gen/HsLexerGen
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder echo "{-# OPTIONS -w #-}" > $@
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder $< >> $@
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder $(LEX_DIR)/HsTokens.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(HC) --make -O -package data \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder -i$(PFE_TOOLDIR)/base/tests/HbcLibraries \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder -i$(PFE_TOOLDIR)/base/lib \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $@.hs -o $@
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder strip $@
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maederlogics += Haskell
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederderived_sources += Haskell/PreludeString.hs $(LEX_DIR)/HsLex.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(LEX_DIR)Gen/HsLexerGen
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian Maederutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder $(HC) --make -o $@ $<
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Haskell/ProgramaticaPrelude.hs
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder## rule for appendHaskellPreludeString
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder $(APPENDPRELUDESTRING)
b568982efd0997d877286faa592d81b03c8c67b8Christian Maeder $(RM) $@
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(APPENDPRELUDESTRING) < $< > $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich chmod 444 $@
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder HsModule HsName HsLiteral HsIdent
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder#files in base/TI/
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/syntax/PropSyntaxStruct
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederHaskell_files = $(addsuffix .hs, \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder## rule for ATC generation
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maederhs_der_files += $(hs_clean_files)
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
89f7631cbfbd1bb99fc152b434bd362a7799d295Christian MaederTESTDIRS += ToHaskell Haskell/test
363939beade943a02b31004cea09dec34fa8a6d9Christian MaederTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederendif
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian MaederTESTTARGETS = Test.o $(subst .hs,,$(TESTTARGETFILES))
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### Profiling (only for debugging)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### Attention every module must be compiled with profiling or the linker
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### cannot link the various .o files properly. So after switching on
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### Profiling, do an 'gmake real_clean; gmake'
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder### Comment in the following line for switching on profiling.
6b6773cf587b74259178641d811746a235faf056Christian Maeder#HC_PROF = -prof -auto-all -fignore-asserts
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
2c619a4dfdc1df27573eba98e81ed1ace906941dChristian MaederHC_OPTS = $(HC_FLAGS) $(HC_INCLUDE) $(HC_PACKAGE) $(PFE_FLAGS) $(HC_PROF) \
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich -DCASLEXTENSIONS
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder## sources for hets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
d272062059eea4d7479e1c6e8517469f02f61287Christian Maedernon_sources = Common/LaTeX_maps.svmono.hs CspCASL/Main.hs \
7c5c311d67e187280877c45bd89dcba9038bc0a3Christian Maeder Common/CaslLanguage.hs ./Test.hs Static/LogicStructured.hs \
7c5c311d67e187280877c45bd89dcba9038bc0a3Christian Maeder $(wildcard syb-generics/Data/Generics2/*.hs) \
7c5c311d67e187280877c45bd89dcba9038bc0a3Christian Maeder haifa-lite/src/Network/Server/HTTP.hs \
7c5c311d67e187280877c45bd89dcba9038bc0a3Christian Maeder $(wildcard haifa-lite/src/Org/W3/N2001/*.hs) \
7c5c311d67e187280877c45bd89dcba9038bc0a3Christian Maeder $(wildcard haifa-lite/src/Org/Xmlsoap/Schemas/Soap/*.hs) \
7c5c311d67e187280877c45bd89dcba9038bc0a3Christian Maeder $(wildcard haifa-lite/src/Text/XML/*/*.hs)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
83394c6b6e6de128e71b67c9251ed7a84485d082Christian MaederSOURCE_PATHS = $(CLEAN_PATH)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maedersources = hets.hs $(filter-out $(non_sources), \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(wildcard $(addsuffix /[A-Z]*hs, $(SOURCE_PATHS))))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder#endif
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederobjects = $(sources:%.hs=%.o)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
9df11f85fd7f8c4745d64464876e84ec4e263692Christian Maederdrifted_files = Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs Syntax/AS_Structured.hs \
010c56c4cf12dd7977ca36efe85219b91e265ee3Christian Maeder HasCASL/As.hs ATC/DevGraph.hs \
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettich Modal/AS_Modal.hs CoCASL/AS_CoCASL.hs COL/AS_COL.hs CASL_DL/AS_CASL_DL.hs\
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski ConstraintCASL/AS_ConstraintCASL.hs\
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder $(gendrifted_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maederatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder Logic/Prover.hs #Common/Id.hs Common/Result.hs OWL_DL/AS.hs
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederatc_der_files = $(foreach file, $(atc_files), \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/Id.der.hs: Common/Id.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/Result.der.hs: Common/Result.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
819e29dba060687cf391e444e0f6ff88c1908cc3Christian MaederATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder $(GENRULECALL) -o $@ $<
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Grothendieck -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian 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 ProverTemplate -i ATC.AS_Annotation -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 Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian MaederIsabelle_files = Isabelle/IsaSign.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till MossakowskiConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederCOL_files = COL/AS_COL.hs COL/COLSign.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederCspCASL_files = CspCASL/AS_CSP_CASL.hs CspCASL/SignCSP.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus LuettichCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettich
e96a0bf4040fd789339958c01f145c5057d26db6René WagnerSPASS_files = SPASS/Sign.hs
e96a0bf4040fd789339958c01f145c5057d26db6René Wagner
abf2487c3aece95c371ea89ac64319370dcb6483Klaus LuettichOWL_DL_files = OWL_DL/Sign.hs
abf2487c3aece95c371ea89ac64319370dcb6483Klaus Luettich
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maedergenerated_rule_files = $(atc_der_files) $(atc_logic_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maedergendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b9b960bc75e34658e70c4a0231dbc6a6e7373f2dChristian Maederinline_axiom_files = Comorphisms/CASL2PCFOL.hs \
18a4d5cb6828f080db9c5f9551785c5151027271Christian Maeder Comorphisms/Modal2CASL.hs Comorphisms/CASL2TopSort.hs \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich Comorphisms/CASL2SubCFOL.hs CASL_DL/PredefinedSign.hs
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maedergen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maederderived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files) \
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski OWL_DL/ReadWrite.hs ConstraintCASL/AS_ConstraintCASL.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# sources that have {-# OPTIONS -cpp #-}
c9acb8681bcc512245b4f0d1a9f2b189c60e10d4Christian Maedercpp_sources = Common/DynamicUtils.hs \
38352346eb1a67ba0f4eab8ad6f718528cf0cde0Christian Maeder Common/Lib/Set.hs Common/Lib/Map.hs ATC/Set.hs\
8d97ef4f234681b11bb5924bd4d03adef858d2d2Christian Maeder Isabelle/CreateTheories.hs \
63e50b4c36074d5fb9de872c4007b688b4bce534Christian Maeder SPASS/Logic_SPASS.hs GUI/Utils.hs Driver/WriteFn.hs \
63e50b4c36074d5fb9de872c4007b688b4bce534Christian Maeder Comorphisms/LogicList.hs Comorphisms/LogicGraph.hs \
bd54a9917cd87169b8e40bcc5616c537fed85815Christian Maeder Comorphisms/KnownProvers.hs hets.hs $(happy_files) \
11b55e6fbbc397b9fa41a7d61be53c6f4f027824Christian Maeder hxt/Text/XML/HXT/ProtocolHandler/ProtocolHandler.hs \
6d48df27e647ee84056df7985f09b60e1877bad6Christian Maeder hxt/System/Console/Shell/Regex.hs PGIP/Common.hs PGIP/Commands.hs \
11b55e6fbbc397b9fa41a7d61be53c6f4f027824Christian Maeder OMDoc/HetsInterface.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# unused, remove when header files are gone
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maedergenrule_header_files = $(wildcard ATC/*.header.hs)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian 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) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(cpp_sources) $(pfe_sources) $(gen_inline_axiom_files) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(genrule_header_files) $(generated_rule_files) \
6bf24e5eb644064ad650eb3fd9774483fccbf601Christian Maeder $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hspp \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Modal/GeneratePatterns.inline.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Haskell/PreludeString.append.hs Haskell/ProgramaticaPrelude.hs \
ffd3a0c7339cc3637f022c38e66a7aa9f0cf10d3Rainer Grabbe SPASS/MathServCommunication.hs \
e8db9a65830cf71504e33c6f441a67b4d184a3caChristian Maeder $(patsubst %.hs, %.der.hs, $(drifted_files))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maederhspp_sources = $(patsubst %.hs, %.hspp, $(cpp_sources))
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# this variable holds the modules that should be documented
6bf24e5eb644064ad650eb3fd9774483fccbf601Christian Maederdoc_sources = $(filter-out $(nondoc_sources), $(sources) $(hspp_sources))
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnketax_sources = Taxonomy/AbstractGraphView.hs Taxonomy/MMiSSOntology.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Taxonomy/MMiSSOntologyGraph.hs Taxonomy/OntoParser.hs
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maedertax_objects = $(patsubst %.hs, %.o, $(tax_sources))
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### targets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich real_clean bin_clean distclean \
f443a57f2a8e0ca3daa7431b0c89a18ba52c337aChristian Maeder check capa hacapa h2h h2hf showKP clean_genRules genRules \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder count doc apache_doc post_doc4apache fromKif \
1f63599faaa311cd024d6413f82bff8caae8de24Christian Maeder derivedSources install_hets install release cgi patch ghci
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
7c99e334446bb97120e30e967baeeddfdd1278deKlaus Luettich
4017ebc0f692820736d796af3110c3b3018c108aChristian Maederpatch:
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederhets-opt:
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(MAKE) distclean
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder $(MAKE) derivedSources
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder $(MAKE) clean
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder $(MAKE) hets-optimized
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederhets-optimized: $(derived_sources)
0c355dd0b739631ee472f9a656e266be27fa4e64Christian Maeder $(HC) --make -O -o hets hets.hs $(HC_OPTS)
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder strip hets
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maederhets-old: $(objects)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) $@
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder $(HC) -o hets $(HC_OPTS) $(objects)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maedercgi:
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich $(MAKE) distclean
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich $(MAKE) derivedSources
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich $(MAKE) real_clean
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich $(MAKE) hets.cgi
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettichhets.cgi: $(sources) GUI/hets_cgi.hs
5ea9168eddbfbfe2282ed46dfe107a8962d6727bChristian Maeder ghc --make GUI/hets_cgi.hs -o $@ $(HC_INCLUDE) \
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich $(HC_FLAGS) $(PFE_FLAGS) -O
5c69cef4668bbd959d721668313a779126014d1eKlaus Luettich strip hets.cgi
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder###############################
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder### TAGS files for (x)emacs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# load them with "M-x" "visit-tags-table" from
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# "HetCATS/hetcats.TAGS"
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# use "M-." to search for a tag
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# !!Beware this is somewhat instable, because it uses an absolute path!!
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederhetcats.TAGS: $(sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder /home/ger/linux/ghc-5.04.2/bin/i386-unknown-linux/hasktags \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(sources); mv TAGS $@; mv tags hetcats.tags
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettichhets_maintainers.txt: $(sources)
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich @echo 'File : Maintainer' > $@
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich @echo -n Generating $@ " "
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich @$(PERL) -e \
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich 'foreach my $$f (@ARGV) { open I, "<$$f"; \
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich print "$$f :"; while (<I>) \
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich { if(m,^\s*Maintainer\s*:\s*(.*)$$,o) { \
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich print " $$1" ; last} }; print "\n"; close I; }' \
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich $(sources) >> $@
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich @echo " done"
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder###############################
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich### count lines of code
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettichcount: $(sources)
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich wc -l $(sources)
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich###############################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### Documentation via haddock
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maederdoc: docs/index.html
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder# generate haddock documentation with links to sources
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder# the interface treatment is stolen from uni/mk/suffix.mk
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederdocs/index.html: $(doc_sources)
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder $(RM) -r docs
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder mkdir docs
68aab98a58d1460c77a1573a86c32a891756a420Christian Maeder cp -r ../uni/www docs/www || mkdir docs/www
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder HINTERFACES0=`find docs/www -name '*.haddock' \
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder -printf "--read-interface=www/%P,%p "` ; \
96646aed2ae087b942ae23f15bbe729a8f7c43d3Christian Maeder HINTERFACES=`echo $$HINTERFACES0 | \
96646aed2ae087b942ae23f15bbe729a8f7c43d3Christian Maeder $(PERL) -pe 's+/[^/]*.haddock,+,+g'` ; \
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder $(HADDOCK) -o docs -h -v -s ../%F $$HINTERFACES \
3a7788e09dd23b364a46c9488cbd1522369113dbChristian Maeder -t 'Hets - the Heterogeneous Tool Set' \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder -p Hets-Haddock-Prologue.txt $(doc_sources)
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder# sources are not copied here
ef67402074be14deb95e4ff564737d5593144130Klaus Luettichapache_doc:
462d9dc583444aab82732e14a75610684d2dc7e9Christian Maeder $(RM) -r docs
c9e197862d9d8ef2585270dd08f5194b3aed4a9dKlaus Luettich cvs up -d ; echo "CVS exited with: " $$?
e7e1ab2ac3f1fded8611bb92ae00e8f3b8c693fbKlaus Luettich $(MAKE) hets-opt
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich $(MAKE) doc
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich $(MAKE) post_doc4apache
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich $(MAKE) o_clean
d784803f9c752667b4fcf7393d698002bedf3f89Klaus Luettich $(MAKE) hets.cgi
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettichpost_doc4apache:
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder $(RM) -r a-docs
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder cp -r docs a-docs
462d9dc583444aab82732e14a75610684d2dc7e9Christian Maeder $(PERL) utils/post_process_docs.pl a-docs \
5d39c60274aaa76506292d2d9e885fccd27e1eabChristian Maeder 'Common.Lib.Map.html:Common.Lib._Map.html'
5d39c60274aaa76506292d2d9e885fccd27e1eabChristian Maeder $(PERL) utils/post_process_docs.pl a-docs \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder 'Data.Map.html:Data._Map.html'
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder###############################
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder### release management
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian MaederderivedSources: $(derived_sources) $(hspp_sources)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettichutils/DrIFT: $(DRIFT_deps)
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT && \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder strip ../DrIFT)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettichutils/genRules: $(GENERATERULES_deps)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder (cd utils/GenerateRules; \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder GenerateRules.hs -o ../genRules && strip ../genRules)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
2e2094a642e3775b0d76b890556407941d3a53b6Christian Maeder# "hssource" for ghc-5.04.2
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder$(INLINEAXIOMS): $(INLINEAXIOMS_deps)
43bb71dfe7ec405f563864d57c1cacdaa8ce9a80Christian Maeder $(HC) --make utils/InlineAxioms/InlineAxioms.hs $(HC_WARN) $(HC_PROF) \
2e2094a642e3775b0d76b890556407941d3a53b6Christian Maeder -package hssource -i../.. -o $(INLINEAXIOMS)
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder strip $(INLINEAXIOMS)
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
aa6c527682224a4e1434f80eae8bc2ef67fb6ca6Christian Maeder# set this variable from the command line to i,e. RELEASETAG='-r release-0-60'
aa6c527682224a4e1434f80eae8bc2ef67fb6ca6Christian MaederRELEASETAG =
37951dbd8e5f2418a07f072d9bf551d0c3a1eafcChristian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederrelease:
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(RM) -r HetCATS
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder cvs -d :pserver:cvsread@cvs-agbkb.informatik.uni-bremen.de:/repository\
aa6c527682224a4e1434f80eae8bc2ef67fb6ca6Christian Maeder co -P $(RELEASETAG) HetCATS
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(RM) -r uni
c22d75ec3ea1306219d1c09a5b3e8ff04f753ad6Christian Maeder if [ -d ../uni ] ; then ln -s ../uni uni ; fi
9c3edf2b283c09d33b2820696886d1ed32fcadc8Christian Maeder $(RM) -r programatica
c22d75ec3ea1306219d1c09a5b3e8ff04f753ad6Christian Maeder if [ -d ../programatica ] ; then \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder mkdir programatica; \
68b77966b2cf7bf2e340bf0fb6b9efc3e6a00467Christian Maeder ln -s ../../programatica/tools programatica/tools ; fi
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder (cd HetCATS; $(MAKE) derivedSources; $(MAKE) clean; \
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder cp Makefile Makefile.orig; \
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder cp ReleaseMakefile Makefile; \
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder ./clean.sh; \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder find . -name CVS -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder $(RM) clean.*)
94d3aa05411444596b44ede4531f05dd7ac20fdfChristian Maeder tar cvf HetCATS.tar HetCATS
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
8410667510a76409aca9bb24ff0eda0420088274Christian Maederinstall-hets:
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian Maeder chmod g+w hets
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian Maeder cp -p hets $(INSTALLDIR)/versions/hets-`cat version_nr`
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder cp -p version_nr $(INSTALLDIR)
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder (cd $(INSTALLDIR); $(RM) hets; \
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder ln -s versions/hets-`cat version_nr` hets; $(RM) version_nr)
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder
8410667510a76409aca9bb24ff0eda0420088274Christian Maederinstall: hets-opt install-hets
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maederpack/install-%.jar: pack/install-%.xml pack/UserInputSpec-%.xml hets.in hets
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich ## TODO: add more dependencies and use hets-opt
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich compile $< -b . -k standard -o $@
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich# compile $< -b . -k web -o $@
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus 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 $@
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus 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 ... "
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @(cd pretty >/dev/null; ../utils/genItCorrections \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich gen_it_characters gen_it_words >> LaTeX_maps.hs)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @echo "ready"
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @echo "please copy the file manually to Common"
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus Luettich#############################
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus Luettich### ATC DrIFT-rule generation
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaedergenRules: $(generated_rule_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
18c1d987ce5818ecf0bfc8af3f43aed2ce86e1eaChristian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
1c9a63e4f7c6879f51fe0f32154a9116f2c126dbChristian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Isabelle_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettich
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till MossakowskiConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
e96a0bf4040fd789339958c01f145c5057d26db6René Wagner
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederSPASS/ATC_SPASS.der.hs: $(SPASS_files) $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SPASS_files)
abf2487c3aece95c371ea89ac64319370dcb6483Klaus Luettich
abf2487c3aece95c371ea89ac64319370dcb6483Klaus LuettichOWL_DL/ATC_OWL_DL.der.hs: $(OWL_DL_files) $(GENRULES)
abf2487c3aece95c371ea89ac64319370dcb6483Klaus Luettich $(GENRULECALL) -i ATC.AS_Annotation -i OWL_DL.ReadWrite \
abf2487c3aece95c371ea89ac64319370dcb6483Klaus Luettich -o $@ $(OWL_DL_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederclean_genRules:
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder $(RM) $(generated_rule_files) $(gendrifted_files) $(hspp_sources) \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder $(hs_clean_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder###############
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### clean up
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichclean: bin_clean o_clean clean_pretty
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### removes *.hi and *.o in all include directories
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luetticho_clean:
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder for p in $(CLEAN_PATH) ; do \
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder (cd $$p ; $(RM) *.hi *.o) ; done
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder### remove binaries
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederbin_clean:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) hets
d0652648f9879c67a194f8b03baafe2700c68eb4Christian Maeder $(RM) hets.cgi
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder $(RM) $(TESTTARGETS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maederclean_pretty:
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich pretty/generated_words.tex
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder### additionally removes the library files
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettichreal_clean: clean
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder### additionally removes generated files not in the CVS tree
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettichdistclean: clean clean_genRules
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder $(RM) $(derived_sources)
c5e3fc166373b0d90f6e36e8aa234396a1dcd879Christian Maeder $(RM) Modal/GeneratePatterns.inline.hs utils/appendHaskellPreludeString
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### test targets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### interactive
2c619a4dfdc1df27573eba98e81ed1ace906941dChristian Maederghci: $(derived_sources)
2c619a4dfdc1df27573eba98e81ed1ace906941dChristian Maeder $(HC)i $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### christian's target
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder### CASL parser
50515239e7e190f4a34ca581dd685d002148fbddChristian MaederfromKif: CASL/fromKif
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### CASL parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedercapa: CASL/capa
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### HasCASL parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhacapa: HasCASL/hacapa
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski### Haskell analysis
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowskihana: Haskell/hana
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini### Haskell to Isabelle-HOLCF translation
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maederh2hf: Haskell/h2hf
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian MaederHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maeder Common/Lib/*.hs Comorphisms/*.hs
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maeder $(HC) -O --make -o $@ $< $(HC_FLAGS) $(PFE_FLAGS)
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder### HasCASL to Haskell translation
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maederh2h: Haskell/h2h
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder
e50e41135ece589f7202bd4ef8d6b97531c2a56eKlaus Luettich### test program to check the known provers
47b0e9f3cb008cb7997f4e3bae26e4d62dcc887aChristian MaedershowKP: Comorphisms/test/showKP
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### run tests in other directories
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maedercheck: $(TESTTARGETS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## Preparing the version of HetCATS
43b4c41fbb07705c9df321221ab9cb9832460407Christian MaederDriver/Version.hs: Driver/Version.in version_nr
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder $(RM) $@
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder $(PERL) utils/build_version.pl version_nr < Driver/Version.in > $@
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder chmod 444 $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## two hardcoded dependencies for a correct generation of Version.hs
43b4c41fbb07705c9df321221ab9cb9832460407Christian MaederDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maederhets.hs: Driver/Version.hs
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian MaederATC/DevGraph.hs: Static/DevGraph.hs
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian Maeder
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich## two dependencies for avoidence of circular prerequisites
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus LuettichCASL_DEPENDENT_BINARIES= hets CASL/capa CASL/fromKif \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich Common/annos Common/test_parser Comorphisms/test/showKP \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich$(CASL_DEPENDENT_BINARIES): $(sources) $(derived_sources)
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich# CASL_DL/Logic.hs: CASL_DL/PredefinedSign.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## rules for DrIFT
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder.SUFFIXES:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich%: %.hs
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder
fdef3358918491badb0e29e42b5d3b5a01950716Christian Maeder%.hs: %.y
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder $(HAPPY) -o $@.tmp $<
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder echo "{-# OPTIONS -w #-}" > $@
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder cat $@.tmp >> $@
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder $(RM) $@.tmp
fdef3358918491badb0e29e42b5d3b5a01950716Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder%.hs: %.der.hs $(DRIFT)
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder $(RM) $@
7767474aba4fa2dc51a6c68017d3bcef3b773001Christian Maeder ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder chmod 444 $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski## rules for inlineAxioms
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder%.hs: %.inline.hs $(INLINEAXIOMS)
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder $(RM) $@
bf76f4fcf07abaebea587df8135de8356c26a363Till Mossakowski $(INLINEAXIOMS) $< > $@
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder chmod 444 $@
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder## rule for cpp and haddock
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich%.hspp: %.hs
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maeder $(HC) -E -cpp -D__HADDOCK__ \
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maeder -DUNI_PACKAGE -DCASLEXTENSIONS -DPROGRAMATICA -optP -P $<
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## compiling rules for object and interface files
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.o %.hi: %.hs
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich $(HC) -c $< $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.o %.hi: %.lhs
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich $(HC) -c $< $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## compiling rules for dependencies
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.d : %.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.d : %.lhs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
1a6464613c59e35072b90ca296ae402cbe956144Christian Maeder
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich## generate the inline file for the predefined CASL_DL sign
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich# Warning: Don't change the order of the depencies!!
0be0db405c49906bd7057255069bf6df53395ac9Klaus 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 \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich < CASL_DL/PredefinedSign.inline.hs.in > $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich echo " )" >> $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich chmod 444 $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus LuettichCASL_DL/PredDatatypes.het: utils/transformLibAsBasicSpec.pl \
2e62113845a35e07cb46db05714627c95450f267Klaus Luettich CASL_DL/Datatypes.het
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich $(RM) $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich $(PERL) $+ > $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich chmod 444 $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# uses intransparently utils/outlineAxioms
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder utils/genTransMFormFunc.pl $(INLINEAXIOMS)
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder $(RM) $@
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich $(PERL) utils/genTransMFormFunc.pl $< $@
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder chmod 444 $@