Makefile revision 03f242dcc84c327431783cf8694f8682f927ac85
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# Makefile
c63ebf815c8a874525cf18670ad74847f7fc7b26Christian 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
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maederall: patch hets
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder####################################################################
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder## Some varibles, which control the compilation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederINCLUDE_PATH = hxt
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederCLEAN_PATH = . hxt/Data hxt/Text/XML/HXT/DOM hxt/Text/XML/HXT/Parser \
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich Syntax Static GUI HasCASL Haskell Modal CoCASL COL \
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich CspCASL ATC ToHaskell Proofs Comorphisms Isabelle Driver \
a737caf82de97c1907027c03e4b4509eb492b4b8Christian Maeder Taxonomy CASL_DL SPASS OWL_DL $(PFE_PATHS)
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder
96646aed2ae087b942ae23f15bbe729a8f7c43d3Christian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
01e383014b555bbcf639c0ca60c5810b3eff83c0Christian Maederempty =
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowskispace = $(empty) $(empty)
9dac90ec2be2a72e03893095461960d483fe2fc2Christian Maeder
5e5d3e82af3bc2834f8718a52d9f45da80220273Dominik Luecke## set ghc imports properly for your system
5db0bfca8a3cd5d5f487ad70524bd6ec49fb439fChristian MaederGHC_IMPORTS = `$(HC) --print-libdir`/imports
ce8b15da31cd181b7e90593cbbca98f47eda29d6Till Mossakowski# import directories for ghc-5.04.2
e7757995211bd395dc79d26fe017d99375f7d2a6Christian MaederGHC5 = $(GHC_IMPORTS)/base:$(GHC_IMPORTS)/haskell98
e7757995211bd395dc79d26fe017d99375f7d2a6Christian MaederDRIFT_ENV = \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder DERIVEPATH=.:ghc:$(GHC_IMPORTS):$(GHC5):$(subst $(space),:,$(PFE_PATHS))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
a1ed34933c266ce85066acb0d7b20c90cb8eb213Christian Maeder# override on commandline for other architectures
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederINSTALLDIR = \
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederDRIFT_deps = utils/DrIFT-src/*hs
8410667510a76409aca9bb24ff0eda0420088274Christian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps) Common/Utils.hs
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder Common/Lib/Pretty.hs Common/Keywords.hs Common/Lib/Set.hs \
ad270004874ce1d0697fb30d7309f180553bb315Christian Maeder Common/Lib/Map.hs Common/Lib/Rel.hs Common/Lib/State.hs Common/Id.hs \
4d56f2fa72e4aec20eb827c11ed49c8cbb7014bdChristian Maeder Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs CASL/ShowMixfix.hs \
4cb215739e9ab13447fa21162482ebe485b47455Christian Maeder CASL/Utils.hs Common/Lexer.hs Common/Token.hs Common/Anno_Parser.hs \
8ef75f1cc0437656bf622cec5ac9e8ea221da8f2Christian Maeder Common/GlobalAnnotations.hs Common/PrettyPrint.hs \
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich Common/Print_AS_Annotation.hs Common/PPUtils.hs CASL/LiteralFuns.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder CASL/Print_AS_Basic.hs Common/AnnoState.hs CASL/Formula.hs \
55adfe57a4de1f36adc3e3bfc16f342e44a7d444Christian Maeder CASL/OpItem.hs CASL/SortItem.hs CASL/Inject.hs Common/Result.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder Common/ConvertLiteral.hs Common/Earley.hs CASL/MixfixParser.hs \
8d97ef4f234681b11bb5924bd4d03adef858d2d2Christian Maeder CASL/Parse_AS_Basic.hs CASL/Sign.hs CASL/Overload.hs \
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder CASL/StaticAna.hs Modal/AS_Modal.hs Modal/Parse_AS.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
e593b89bfd4952698dc37feced21cefe869d87a2Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHC = ghc
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederPERL = perl
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian MaederHAPPY = happy -sga
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederGENRULES = utils/genRules
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederGENRULECALL = $(GENRULES) -r ShATermConvertible -i Common.ATerm.Lib
51d769d55d88dfa88bdf54bee78d8fa85a2deba8Christian MaederDRIFT = utils/DrIFT
f041c9a6bda23de33a38490e35b831ae18d96b45Christian MaederINLINEAXIOMS = utils/outlineAxioms
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian MaederHADDOCK = haddock
51d769d55d88dfa88bdf54bee78d8fa85a2deba8Christian MaederCPPP = cpp
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder# remove -fno-warn-orphans for older ghcs
c3053d57f642ca507cdf79512e604437c4546cb9Christian MaederHC_WARN = -Wall -fno-warn-orphans
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian MaederHC_FLAGS = -package fgl \
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder $(HC_WARN) -fglasgow-exts -fno-monomorphism-restriction \
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder -fallow-overlapping-instances -fallow-undecidable-instances
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder# -ddump-minimal-imports
d0279930f87bf39843e0bd2992a4789322662144Christian Maeder# flags also come in via ../uni/uni-package.conf
c2fcc35abb03cf0b4ca4b050efeb10827f38c322Christian Maeder# but added it here in case of compilation without uni
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederHC_INCLUDE = $(addprefix -i, $(INCLUDE_PATH))
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maederlogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SPASS OWL_DL
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maederifneq ($(strip $(UNI_PACKAGE_CONF)),)
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus LuettichHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
317bcd45211dd8f28a8ebb3dee7a67197391fc0dDominik Luecke -package uni-server -DUNI_PACKAGE
8cacad2a09782249243b80985f28e9387019fe40Christian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder# some modules from uni for haddock
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian Maeder# if uni/server is included also HaXml sources are needed
363939beade943a02b31004cea09dec34fa8a6d9Christian Maederuni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
8a28707e9155465c6f2236a06eac6580a65c7025Christian Maeder ../uni/reactor ../uni/util ../uni/posixutil
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich
797ccd67cb8ae127be097cd43448801b673e3b69Christian Maederuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
797ccd67cb8ae127be097cd43448801b673e3b69Christian Maeder $(wildcard ../uni/htk/haddock/*/*.hs)
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maederendif
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
498aa48bdb931ab50990d3b74318a5db2312186cChristian Maeder### list of directories to run checks in
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian MaederTESTDIRS += Common CASL HasCASL
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian MaederPFE_TOOLDIR = $(wildcard ../programatica/tools)
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maederifneq ($(strip $(PFE_TOOLDIR)),)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
c0c2380bced8159ff0297ece14eba948bd236471Christian 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
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederPFE_PATH = $(addprefix -i, $(PFE_PATHS))
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederPFE_FLAGS = -package data -package text $(PFE_PATH) -DPROGRAMATICA
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederLEX_DIR = $(PFE_TOOLDIR)/base/parse2/Lexer
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederpatch: Haskell/Programatica.patch
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maeder patch -sNlp0 -d $(PFE_TOOLDIR) -i `pwd`/$< || exit 0
bc8cbf12aa172bf5673b92a9e7a0151d4aa4c315Christian Maeder
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder$(LEX_DIR)/HsLex.hs: $(LEX_DIR)Gen/HsLexerGen
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder echo "{-# OPTIONS -w #-}" > $@
51d769d55d88dfa88bdf54bee78d8fa85a2deba8Christian Maeder $< >> $@
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maeder
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
bc8cbf12aa172bf5673b92a9e7a0151d4aa4c315Christian Maeder $(LEX_DIR)/HsTokens.hs
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder $(HC) --make -O -package data \
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder -i$(PFE_TOOLDIR)/base/tests/HbcLibraries \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder -i$(PFE_TOOLDIR)/base/lib \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $@.hs -o $@
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder strip $@
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederlogics += Haskell
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederderived_sources += Haskell/PreludeString.hs $(LEX_DIR)/HsLex.hs \
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder $(LEX_DIR)Gen/HsLexerGen
a9b59eb2ce961014974276cdae0e9df4419bd212Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder Haskell/ProgramaticaPrelude.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder## rule for appendHaskellPreludeString
88318aafc287e92931dceffbb943d58a9310001dChristian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(APPENDPRELUDESTRING)
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maeder $(APPENDPRELUDESTRING) < $< > $@
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder HsModule HsName HsLiteral HsIdent
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder property/syntax/PropSyntaxStruct
b568982efd0997d877286faa592d81b03c8c67b8Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederHaskell_files = $(addsuffix .hs, \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder## rule for ATC generation
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian MaederTESTDIRS += ToHaskell
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maederendif
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder### Profiling (only for debugging)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder### Attention every module must be compiled with profiling or the linker
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder### cannot link the various .o files properly. So after switching on
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder### Profiling, do an 'gmake real_clean; gmake'
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder### Comment in the following line for switching on profiling.
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder#HC_PROF = -prof -auto-all
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHC_OPTS = $(HC_FLAGS) $(HC_INCLUDE) $(HC_PACKAGE) $(PFE_FLAGS) $(HC_PROF) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder -DCASLEXTENSIONS
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederDRIFT_OPTS = +RTS -K10m -RTS
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder####################################################################
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder## sources for hets
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maedernon_sources = Common/LaTeX_maps.svmono.hs CspCASL/Main.hs \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder Common/CaslLanguage.hs ./Test.hs Static/LogicStructured.hs
e6d5dbbc3308f05197868806e0b860f4f53875f1Christian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian MaederSOURCE_PATHS = $(CLEAN_PATH)
06ba24fa9695b698437546276f37aa5e1924ad1bChristian Maeder
06ba24fa9695b698437546276f37aa5e1924ad1bChristian Maedersources = hets.hs $(filter-out $(non_sources), \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(wildcard $(addsuffix /[A-Z]*hs, $(SOURCE_PATHS))))
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder#endif
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maederobjects = $(sources:%.hs=%.o)
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maederdrifted_files = Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs Syntax/AS_Structured.hs \
13731dfbb4b6a31b35dd210e832e920065b6ac45Christian Maeder HasCASL/As.hs ATC/DevGraph.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Modal/AS_Modal.hs CoCASL/AS_CoCASL.hs COL/AS_COL.hs CASL_DL/AS_CASL_DL.hs\
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder $(gendrifted_files)
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maederatc_files = Common/AS_Annotation.der.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder Logic/Prover.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
42b12fba6830ada5057949f825fc27edf5574e5fChristian Maederatc_der_files = $(foreach file, $(atc_files), \
42b12fba6830ada5057949f825fc27edf5574e5fChristian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(GENRULECALL) -o $@ $<
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Grothendieck -o $@ $<
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian MaederATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder $(GENRULECALL) -i ATC.AS_Structured -o $@ $<
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder
328a85c807f2a95c3f147d10b05927eaf862ebebChristian MaederATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
a6db617ca58eb6a0587b6366e913107dfecb71b5Heng Jiang $(GENRULECALL) -i ATC.AS_Architecture -o $@ $<
06dd4e7c29f33f6122a910719e3bd9062256e397Andy Gimblett
317bcd45211dd8f28a8ebb3dee7a67197391fc0dDominik LueckeATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $<
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
819e29dba060687cf391e444e0f6ff88c1908cc3Christian MaederATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(GENRULECALL) -x ProverTemplate -i ATC.AS_Annotation -o $@ $<
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder CASL/AS_Basic_CASL.der.hs
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederHasCASL_files = HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederIsabelle_files = Isabelle/IsaSign.hs
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs CoCASL/Sublogic.hs
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederCOL_files = COL/AS_COL.hs COL/COLSign.hs
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederCspCASL_files = CspCASL/AS_CSP_CASL.hs CspCASL/SignCSP.hs
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian MaederCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian MaederSPASS_files = SPASS/Sign.hs
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederOWL_DL_files = OWL_DL/Sign.hs
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maederatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maeder
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maedergenerated_rule_files = $(atc_der_files) $(atc_logic_files)
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maedergendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maederinline_axiom_files = Comorphisms/CASL2PCFOL.hs Comorphisms/PCFOL2CFOL.hs \
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder Comorphisms/Modal2CASL.hs Comorphisms/CASL2TopSort.hs \
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder Comorphisms/CASL2SubCFOL.hs
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maedergen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maederderived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(inline_axiom_files) Modal/ModalSystems.hs
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# sources that have {-# OPTIONS -cpp #-}
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maedercpp_sources = Common/DynamicUtils.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder Common/Lib/Set.hs Common/Lib/Map.hs ATC/Set.hs\
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder Isabelle/Logic_Isabelle.hs Isabelle/CreateTheories.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder SPASS/Logic_SPASS.hs GUI/Utils.hs Driver/WriteFn.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder Comorphisms/LogicList.hs Comorphisms/LogicGraph.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder Comorphisms/KnownProvers.hs \
ac34194a668399bb8ef238da77c3a09e93fb253bChristian Maeder GUI/ShowGraph.hs hets.hs $(happy_files)
ac34194a668399bb8ef238da77c3a09e93fb253bChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# unused, remove when header files are gone
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maedergenrule_header_files = $(wildcard ATC/*.header.hs)
4c8d3c5a9e938633f6147b5a595b9b93bfca99e6Christian Maeder
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maedernondoc_sources = $(wildcard utils/DrIFT-src/*.hs) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(wildcard utils/DrIFT-src/*.lhs) \
986d3f255182539098a97ac86da9eeee5b7a72e3Christian Maeder $(wildcard utils/GenerateRules/*.hs) \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(wildcard utils/InlineAxioms/*.hs) \
4561227a776bdf0ab679b19fb92f1eaaed8786f7Christian Maeder $(cpp_sources) $(pfe_sources) $(gen_inline_axiom_files) \
01e278bdd7dce13b9303ed3d79683d83c89d09f9Liam O'Reilly $(genrule_header_files) $(generated_rule_files) \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hspp \
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik Luecke Modal/GeneratePatterns.inline.hs \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder Haskell/PreludeString.append.hs Haskell/ProgramaticaPrelude.hs \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder hxt/HXT.hs hxt/Net.hs $(patsubst %.hs, %.der.hs, $(drifted_files))
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder
05a206508bc898f87fe6ab6e069814df3c29d303Dominik Lueckehspp_sources = $(patsubst %.hs, %.hspp, $(cpp_sources))
05a206508bc898f87fe6ab6e069814df3c29d303Dominik Luecke
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# this variable holds the modules that should be documented
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowskidoc_sources = $(filter-out $(nondoc_sources), $(sources) $(hspp_sources))
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maedertax_sources = Taxonomy/AbstractGraphView.hs Taxonomy/MMiSSOntology.hs \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder Taxonomy/MMiSSOntologyGraph.hs Taxonomy/OntoParser.hs
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maedertax_objects = $(patsubst %.hs, %.o, $(tax_sources))
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
1b3a2f98d1cd01fc9e0591f69507e20526727559Dominik Luecke####################################################################
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich### targets
a4d469c9b085a55257fdf67133b6d0dbabb88032Dominik Luecke
e39a1626bee36d6ad13a2c0014a80ef179a65bcbChristian Maeder.PHONY : all hets-opt hets-optimized clean d_clean real_clean bin_clean \
f8e1a1eca871a26a535a4ee7d51902ba94b1db1eChristian Maeder lib_clean distclean check capa hacapa h2h clean_genRules genRules \
abf2487c3aece95c371ea89ac64319370dcb6483Klaus Luettich taxonomy count doc apache_doc post_doc4apache \
c70ef4c3b3a62764f715510c9fd67dde3acfe454Christian Maeder derivedSources install_hets install release patch
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederpatch:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b9b960bc75e34658e70c4a0231dbc6a6e7373f2dChristian Maederhets: $(sources) $(derived_sources)
18a4d5cb6828f080db9c5f9551785c5151027271Christian Maeder $(HC) --make -o $@ hets.hs $(HC_OPTS)
846d851fc0c2c49e949763cd3407634ba0f726c0Christian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederhets-opt:
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(MAKE) distclean
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski $(MAKE) derivedSources
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder $(MAKE) clean
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder $(MAKE) hets-optimized
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederhets-optimized: $(derived_sources)
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder $(HC) --make -O -o hets hets.hs $(HC_OPTS)
70731e5459a18fc473bdc962ca94d1c12de974afChristian Maeder strip hets
edd1b7f4720bc2eea51fa0685417e1e4f3be4915Klaus Luettich
7809fb14d290d257ed6d46a2dd563227e227fcf3Christian Maederhets-old: $(objects)
63e50b4c36074d5fb9de872c4007b688b4bce534Christian Maeder $(RM) $@
bd54a9917cd87169b8e40bcc5616c537fed85815Christian Maeder $(HC) -o hets $(HC_OPTS) $(objects)
4485d1c9ef1ff5a45c3ac3f76b7e952099625678Christian Maeder
bea667f53e35535aa05b52ad8d5e5aa47f793c3cChristian Maedercgi:
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(MAKE) distclean
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder $(MAKE) derivedSources
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder $(MAKE) real_clean
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(MAKE) hets.cgi
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederhets.cgi: $(sources) GUI/hets_cgi.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder ghc --make -package WASH GUI/hets_cgi.hs -o $@ $(HC_INCLUDE) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(HC_FLAGS) $(PFE_FLAGS) -O
8d401657e07a01e10400265f508f75353a9fba4cChristian Maeder strip hets.cgi
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maedertaxonomy: Taxonomy/taxonomyTool.hs $(tax_sources)
6bf24e5eb644064ad650eb3fd9774483fccbf601Christian Maeder $(HC) --make -o Taxonomy/taxonomyTool $< -ifgl $(HC_OPTS)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder###############################
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich### TAGS files for (x)emacs
e8db9a65830cf71504e33c6f441a67b4d184a3caChristian Maeder# load them with "M-x" "visit-tags-table" from
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# "HetCATS/hetcats.TAGS"
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder# use "M-." to search for a tag
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder# !!Beware this is somewhat instable, because it uses an absolute path!!
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederhetcats.TAGS: $(sources)
6bf24e5eb644064ad650eb3fd9774483fccbf601Christian Maeder /home/ger/linux/ghc-5.04.2/bin/i386-unknown-linux/hasktags \
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder $(sources); mv TAGS $@; mv tags hetcats.tags
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederhets_maintainers.txt: $(sources)
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke @echo 'File : Maintainer' > $@
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder @echo -n Generating $@ " "
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke @$(PERL) -e \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder 'foreach my $$f (@ARGV) { open I, "<$$f"; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder print "$$f :"; while (<I>) \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder { if(m,^\s*Maintainer\s*:\s*(.*)$$,o) { \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich print " $$1" ; last} }; print "\n"; close I; }' \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(sources) >> $@
368c26b8ad68a4b2c42963626087667000c2eebfChristian Maeder @echo " done"
368c26b8ad68a4b2c42963626087667000c2eebfChristian Maeder
368c26b8ad68a4b2c42963626087667000c2eebfChristian Maeder###############################
f443a57f2a8e0ca3daa7431b0c89a18ba52c337aChristian Maeder### count lines of code
363939beade943a02b31004cea09dec34fa8a6d9Christian Maedercount: $(sources)
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maeder wc -l $(sources)
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder###############################
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski### Documentation via haddock
7c99e334446bb97120e30e967baeeddfdd1278deKlaus Luettichdoc: docs/index.html
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder# generate haddock documentation with links to sources
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder# the interface treatment is stolen from uni/mk/suffix.mk
12251a9d23f842673978d0ad6692527ef320c55dChristian Maederdocs/index.html: $(doc_sources)
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(RM) -r docs
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder mkdir docs
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder cp -r ../uni/www docs/www || mkdir docs/www
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder HINTERFACES0=`find docs/www -name '*.haddock' \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder -printf "--read-interface=www/%P,%p "` ; \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder HINTERFACES=`echo $$HINTERFACES0 | \
c8acf4d00418dc649168d446e33f1ee7b1d052f1Christian Maeder $(PERL) -pe 's+/[^/]*.haddock,+,+g'` ; \
6d549a835ffd3a11c3ed74e0f8fda30fda6a9528Christian Maeder $(HADDOCK) -o docs -h -v -s ../%F $$HINTERFACES \
27785f379d6810811b4e6d23feab18845fde9a98Christian Maeder -t 'Hets - the Heterogeneous Tool Set' \
27785f379d6810811b4e6d23feab18845fde9a98Christian Maeder -p Hets-Haddock-Prologue.txt $(doc_sources)
b886e9e5db2098d0112cc4f70aeba232962939ddChristian Maeder
c4451dc7da4a15726ba96179aecf046a5df5cae1Christian Maeder# sources are not copied here
c4451dc7da4a15726ba96179aecf046a5df5cae1Christian Maederapache_doc:
c4451dc7da4a15726ba96179aecf046a5df5cae1Christian Maeder $(RM) -r docs
27785f379d6810811b4e6d23feab18845fde9a98Christian Maeder cvs up -d ; echo "CVS exited with: " $$?
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder $(MAKE) hets-opt
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder $(MAKE) doc
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder $(MAKE) post_doc4apache
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(MAKE) o_clean
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder $(MAKE) hets.cgi
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maederpost_doc4apache:
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder $(RM) -r a-docs
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder cp -r docs a-docs
0c355dd0b739631ee472f9a656e266be27fa4e64Christian Maeder $(PERL) utils/post_process_docs.pl a-docs \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder 'Common.Lib.Map.html:Common.Lib._Map.html'
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder $(PERL) utils/post_process_docs.pl a-docs \
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder 'Data.Map.html:Data._Map.html'
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder###############################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### release management
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus LuettichderivedSources: $(derived_sources) $(hspp_sources)
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettichutils/DrIFT: $(DRIFT_deps)
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT && \
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich strip ../DrIFT)
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich
a883cd4d01fe39d23219cf5333425f195be24d8bChristian Maederutils/genRules: $(GENERATERULES_deps)
5c69cef4668bbd959d721668313a779126014d1eKlaus Luettich (cd utils/GenerateRules; \
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich GenerateRules.hs -o ../genRules && strip ../genRules)
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich# "hssource" for ghc-5.04.2
5818d884784339c1b8aa6c6d972bad4eafd36ccbKlaus Luettich$(INLINEAXIOMS): $(INLINEAXIOMS_deps)
5818d884784339c1b8aa6c6d972bad4eafd36ccbKlaus Luettich $(HC) --make utils/InlineAxioms/InlineAxioms.hs $(HC_WARN) $(HC_PROF) \
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich -package hssource -i../.. -o $(INLINEAXIOMS)
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich strip $(INLINEAXIOMS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettichrelease:
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich $(RM) -r HetCATS
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich cvs -d :pserver:cvsread@cvs-agbkb.informatik.uni-bremen.de:/repository\
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich co -P HetCATS
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) -r uni
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder if [ -d ../uni ] ; then ln -s ../uni uni ; fi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) -r programatica
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder if [ -d ../programatica ] ; then \
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder mkdir programatica; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder ln -s ../../programatica/tools programatica/tools ; fi
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder (cd HetCATS; $(MAKE) derivedSources; $(MAKE) clean; \
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder cp Makefile Makefile.orig; \
c1bf9cc3bc3729b0bf925be3be123cbb59bea2a6Christian Maeder cp ReleaseMakefile Makefile; \
c1bf9cc3bc3729b0bf925be3be123cbb59bea2a6Christian Maeder ./clean.sh; \
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder find . -name CVS -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
96646aed2ae087b942ae23f15bbe729a8f7c43d3Christian Maeder $(RM) clean.*)
96646aed2ae087b942ae23f15bbe729a8f7c43d3Christian Maeder tar cvf HetCATS.tar HetCATS
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder
3a7788e09dd23b364a46c9488cbd1522369113dbChristian Maederinstall-hets:
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder chmod g+w hets
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich cp -p hets $(INSTALLDIR)/versions/hets-`cat version_nr`
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder cp -p version_nr $(INSTALLDIR)
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich (cd $(INSTALLDIR); $(RM) hets; \
462d9dc583444aab82732e14a75610684d2dc7e9Christian Maeder ln -s versions/hets-`cat version_nr` hets; $(RM) version_nr)
c9e197862d9d8ef2585270dd08f5194b3aed4a9dKlaus Luettich
e7e1ab2ac3f1fded8611bb92ae00e8f3b8c693fbKlaus Luettichinstall: hets-opt install-hets
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich#############################
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich### ATC DrIFT-rule generation
d784803f9c752667b4fcf7393d698002bedf3f89Klaus Luettich
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus LuettichgenRules: $(generated_rule_files)
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian MaederCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CASL_files)
462d9dc583444aab82732e14a75610684d2dc7e9Christian Maeder
5d39c60274aaa76506292d2d9e885fccd27e1eabChristian MaederHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
5d39c60274aaa76506292d2d9e885fccd27e1eabChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HasCASL_files)
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Isabelle_files)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian MaederCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
f2d9352f2999f82c36b4b65535d14a6a40ae5a82Christian MaederCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
43bb71dfe7ec405f563864d57c1cacdaa8ce9a80Christian Maeder
f2d9352f2999f82c36b4b65535d14a6a40ae5a82Christian MaederSPASS/ATC_SPASS.der.hs: $(SPASS_files) $(GENRULES)
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SPASS_files)
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
1dfba1f850f6a43094962b459998d1ea11472461Christian MaederOWL_DL/ATC_OWL_DL.der.hs: $(OWL_DL_files) $(GENRULES)
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i OWL_DL.ReadWrite \
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder -o $@ $(OWL_DL_files)
fa0f3519d71f719d88577b716b1579776b4a2535Christian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederclean_genRules:
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder $(RM) $(generated_rule_files) $(gendrifted_files) $(hspp_sources) \
fa0f3519d71f719d88577b716b1579776b4a2535Christian Maeder Haskell/ATC_Haskell.der.hs
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
c22d75ec3ea1306219d1c09a5b3e8ff04f753ad6Christian Maeder###############
9c3edf2b283c09d33b2820696886d1ed32fcadc8Christian Maeder### clean up
c22d75ec3ea1306219d1c09a5b3e8ff04f753ad6Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederclean: bin_clean o_clean
68b77966b2cf7bf2e340bf0fb6b9efc3e6a00467Christian Maeder
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder### removes *.hi and *.o in all include directories
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maedero_clean:
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder for p in $(CLEAN_PATH) ; do \
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder (cd $$p ; $(RM) *.hi *.o) ; done
c59d1c38ef94b4fb1c8d9fda9573bc1e1d2801e7Christian Maeder
cd36bffee51c77cdadcb9f916b34fa512e311946Christian Maeder### remove binaries
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maederbin_clean:
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(RM) hets
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder $(RM) test_parser
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian Maeder $(RM) CASL/capa
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian Maeder $(RM) HasCASL/hacapa
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder $(RM) Haskell/hapa
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder $(RM) Haskell/hana
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder $(RM) Haskell/wrap
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder $(RM) ToHaskell/h2h
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder $(RM) Syntax/hetpa
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder $(RM) Static/hetana
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder $(RM) GUI/hetdg
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich $(RM) hetpa
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich $(RM) hetana
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich $(RM) hetdg
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich $(RM) atctest2
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(RM) atctest
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(RM) Common/annos
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(RM) ToHaskell/translateAna
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(RM) Taxonomy/taxonomyTool
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### additionally removes the library files
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichreal_clean: clean
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### additionally removes generated files not in the CVS tree
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichdistclean: clean clean_genRules
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich $(RM) $(derived_sources)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich####################################################################
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### test targets
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich####################################################################
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus Luettich
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus Luettich### a parser to test annotation parser and Id parsers
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckerstest_parser: Common/test_parser
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix ReckersCommon/test_parser: Common/test_parser.hs Common/AS_Annotation.der.hs
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
18c1d987ce5818ecf0bfc8af3f43aed2ce86e1eaChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder### interactive
05a206508bc898f87fe6ab6e069814df3c29d303Dominik Lueckeghci: $(derived_sources)
05a206508bc898f87fe6ab6e069814df3c29d303Dominik Luecke $(HC)i $(HC_OPTS)
05a206508bc898f87fe6ab6e069814df3c29d303Dominik Luecke
b891e9ad7dd358a7df24b59bf00d51515078497cChristian Maeder### christian's target
b891e9ad7dd358a7df24b59bf00d51515078497cChristian Maeder### CASL parser
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik Lueckecapa: CASL/capa
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
1c9a63e4f7c6879f51fe0f32154a9116f2c126dbChristian MaederCASL/capa: CASL/capa.hs Common/*.hs CASL/*.hs
6fe9628743562678acf97d6730ebcfee5e9e50c2Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
b891e9ad7dd358a7df24b59bf00d51515078497cChristian Maeder### HasCASL parser
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederhacapa: HasCASL/hacapa
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederHasCASL/hacapa: HasCASL/hacapa.hs Common/*.hs HasCASL/*.hs
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettich $(HC) --make -o $@ $< $(HC_OPTS)
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski### Haskell analysis
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowskihana: Haskell/hana
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederHaskell/hana: Haskell/hana.hs Haskell/HatAna.hs Haskell/PreludeString.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder### Haskell to Isabelle-HOLCF translation
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederh2hf: ToHaskell/h2hf
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederToHaskell/h2hf: ToHaskell/h2hf.hs ToHaskell/*.hs Haskell/*.hs HasCASL/*.hs Isabelle/*.hs Common/*.hs
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(HC) --make -o $@ $< $(HC_OPTS)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder### HasCASL to Haskell translation
e96a0bf4040fd789339958c01f145c5057d26db6René Wagnerh2h: ToHaskell/h2h
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus LuettichToHaskell/h2h: ToHaskell/h2h.hs ToHaskell/*.hs Haskell/*.hs HasCASL/*.hs
abf2487c3aece95c371ea89ac64319370dcb6483Klaus Luettich $(HC) --make -o $@ $< $(HC_OPTS)
81c15526a787941b48b02ae8786782f9fb578801Christian Maeder
b891e9ad7dd358a7df24b59bf00d51515078497cChristian Maeder### HetCASL parser
b891e9ad7dd358a7df24b59bf00d51515078497cChristian Maederhetpa: Syntax/hetpa.hs Syntax/*.hs
e39a1626bee36d6ad13a2c0014a80ef179a65bcbChristian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
7868299829c1318b888152243ec2cea4f598b568Christian Maeder
e39a1626bee36d6ad13a2c0014a80ef179a65bcbChristian Maeder### HetCASL parser
f8e1a1eca871a26a535a4ee7d51902ba94b1db1eChristian Maederhetana: Static/hetana.hs Static/*.hs
f8e1a1eca871a26a535a4ee7d51902ba94b1db1eChristian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
f8e1a1eca871a26a535a4ee7d51902ba94b1db1eChristian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder### ATC test system
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maederatctest: ATC/ATCTest.hs ATC/*.hs
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederatctest2: ATC/ATCTest2.hs Common/SimpPretty.hs Common/ATerm/*.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Common/Lib/*.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich### ATerm.Lib test system
82e29b77f0ef4cccd7ed734692c5e1e93dbbc645Christian Maederatermlibtest: Common/ATerm/ATermLibTest.hs Common/SimpPretty.hs \
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich Common/ATerm/*.hs Common/Lib/*.hs
13731dfbb4b6a31b35dd210e832e920065b6ac45Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS) $(EXTRA_HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maederhatermdiff: Common/ATerm/ATermDiffMain.hs Common/SimpPretty.hs \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder Common/ATerm/*.hs Common/Lib/*.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS) $(EXTRA_HC_OPTS)
d0652648f9879c67a194f8b03baafe2700c68eb4Christian Maeder
210aa1071465039588fa9e38c10e343631c34655Christian Maeder### OWL_DL test target
363939beade943a02b31004cea09dec34fa8a6d9Christian MaederOWL_DL/readAStest: OWL_DL/ToHaskellAS.hs Common/ATerm/*.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Common/Lib/*.hs OWL_DL/*.hs
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder $(HC) --make -o $@ $< $(HC_OPTS) $(EXTRA_HC_OPTS)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### HetCASL with dev graph
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichhetdg: GUI/hetdg.hs $(drifted_files) *.hs
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaedercheckMakeBinaries: test_parser hetpa hetana Test.o \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder atermlibtest hatermdiff atctest
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
27785f379d6810811b4e6d23feab18845fde9a98Christian Maeder### run tests in other directories
2d130d212db7208777ca896a7ecad619a8944971Christian Maedercheck: checkMakeBinaries
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder####################################################################
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder## Preparing the version of HetCATS
e7757995211bd395dc79d26fe017d99375f7d2a6Christian MaederDriver/Version.hs: Driver/Version.in version_nr
c5e3fc166373b0d90f6e36e8aa234396a1dcd879Christian Maeder $(RM) $@
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder $(PERL) utils/build_version.pl version_nr < Driver/Version.in > $@
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich chmod 444 $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder## two hardcoded dependencies for a correct generation of Version.hs
e1559d046eb2c6dde0e6e272b37b6756eac0e8adChristian MaederDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maederhets.hs: Driver/Version.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## rules for DrIFT
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder.SUFFIXES:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%: %.hs
2c619a4dfdc1df27573eba98e81ed1ace906941dChristian Maeder $(HC) --make -o $@ $<
b36f451c8ccd631dac70b541450c880b65d86f3bChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.hs: %.y
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HAPPY) -o $@.tmp $<
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder echo "{-# OPTIONS -w #-}" > $@
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder cat $@.tmp >> $@
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder $(RM) $@.tmp
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder%.hs: %.der.hs $(DRIFT)
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder $(RM) $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $(DRIFT_OPTS) $< > $@)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder chmod 444 $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## rules for inlineAxioms
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.hs: %.inline.hs $(INLINEAXIOMS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) $@
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski $(INLINEAXIOMS) $< > $@
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski chmod 444 $@
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini## rule for cpp and haddock
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder%.hspp: %.hs
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini $(HC) -E -cpp -DUNI_PACKAGE -optP -P $<
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maeder
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maeder## compiling rules for object and interface files
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder%.o %.hi: %.hs
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini $(HC) -c $< $(HC_OPTS)
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder%.o %.hi: %.lhs
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder $(HC) -c $< $(HC_OPTS)
e50e41135ece589f7202bd4ef8d6b97531c2a56eKlaus Luettich
47b0e9f3cb008cb7997f4e3bae26e4d62dcc887aChristian Maeder## compiling rules for dependencies
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.d : %.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.d : %.lhs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# uses intransparently utils/outlineAxioms
88318aafc287e92931dceffbb943d58a9310001dChristian MaederModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
d5d349836d8b1fa93ea49a59d977b106c6e9233bKlaus Luettich utils/genTransMFormFunc.pl $(INLINEAXIOMS)
d5d349836d8b1fa93ea49a59d977b106c6e9233bKlaus Luettich $(RM) $@
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder $(PERL) utils/genTransMFormFunc.pl $< $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder chmod 444 $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder