Makefile revision dd7b93bd69a40191907af1739db375ecc7e6cf18
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2004
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# This Makefile will compile the new hetcats system and provides also
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# targets for test programs during implementation phases.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# !!! Note: This makefile is written for GNU make !!!
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# (gmake on solaris ; make on linux)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## Some varibles, which control the compilation
8e494181dee5cfc59ae494e4082c71edfde24f58Christian MaederCOMMONLIB_PATH = Common/Lib:Common/ATerm:fgl/Data/Graph:fgl/Data/Graph/Inductive:fgl/Data/Graph/Inductive/Aux:fgl/Data/Graph/Inductive/Monad:fgl/Data/Graph/Inductive/Query
b7839add0728fef3cbb28244373661db382f6588Christian MaederCLEAN_PATH = utils/DrIFT-src:utils/GenerateRules:utils/InlineAxioms:Common:Logic:CASL:CASL/CCC:Syntax:Static:GUI:HasCASL:Haskell:Modal:CoCASL:COL:CspCASL:ATC:ToHaskell:Proofs:Comorphisms:Isabelle:$(INCLUDE_PATH):Haskell/Hatchet:Taxonomy:$(PFE_PATHS)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder## set ghc imports properly for your system
760ae19a92dde8249679a674f93f58d26a7c5f6bChristian MaederLINUX_IMPORTS = $(wildcard /home/linux-bkb/ghc/ghc-latest/lib/ghc-*/imports)
760ae19a92dde8249679a674f93f58d26a7c5f6bChristian MaederDRIFT_ENV = DERIVEPATH='.:ghc:hetcats:${LINUX_IMPORTS}:${GHC_IMPORTS}'
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder# override on commandline for other architectures
8410667510a76409aca9bb24ff0eda0420088274Christian MaederINSTALLDIR = /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
e1f542dcb2f3f33a7a1be5096f5ccf6147d3576cChristian MaederINLINEAXIOMS_deps = utils/InlineAxioms/*hs CASL/AS_Basic_CASL.hs \
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString
5d44c8cecd07b47ce537c7e14bf7b41a39f08507Christian MaederHC_FLAGS = -Wall -fglasgow-exts -fno-monomorphism-restriction \
5d44c8cecd07b47ce537c7e14bf7b41a39f08507Christian Maeder -fallow-overlapping-instances -fallow-undecidable-instances
c6fcd42c6d6d9dae8c7835c24fcb7ce8531a9050Christian 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
7b2177999334c920c5669621bd3c142fe198a8d7Christian MaederHC_INCLUDE = $(addprefix -i, $(subst :, ,$(INCLUDE_PATH)))
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederUNI_PACKAGE_CONF := $(wildcard ../uni/uni-package.conf)
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# some modules from uni for haddock
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# if uni/server is included also HaXml sources are needed
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederuni_sources = $(wildcard ../uni/davinci/haddock/*.hs) \
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederPFE_TOOLDIR := $(wildcard ../programatica/tools)
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
5d44c8cecd07b47ce537c7e14bf7b41a39f08507Christian Maeder base/transforms base/transforms/Deriving hs2html pfe property base \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder property/pfe property/syntax property/AST property/transforms \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder property/TI property/defs property/parse2 property/parse2/Parser \
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederPFE_PATH = $(addprefix -i$(PFE_TOOLDIR)/, $(PFE_DIRS))
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# add PFE_PATHS to DERIVEPATH if needed
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# but name clashes currently prevent ATC generation in a single file
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederPFE_PATHS = $(subst $(space),:,$(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS)))
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederpfe_sources = $(wildcard $(subst :,/*hs , $(PFE_PATHS)))
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederPFE_FLAGS = -package data -package text $(PFE_PATH) -DPROGRAMATICA
549b97cfbe3a6687db74440a550b68b2fc19a272Christian Maederhappy_files = $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
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'
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### and comment out HC_PACKAGE variable definition above.
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### Comment in the following line for switching on profiling.
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettich#HC_PROF = -prof -auto-all
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederHCI_OPTS = $(HC_FLAGS) $(HC_INCLUDE) $(HC_PACKAGE) $(PFE_FLAGS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### list of directories to run checks in
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## sources for hetcats (semi - manually produced with a perl script)
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederSOURCE_PATHS = $(COMMON_LIB_PATH):$(CLEAN_PATH)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maedersources = $(wildcard $(subst :,/*hs , $(SOURCE_PATHS))/*hs)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederobjects = $(patsubst %.lhs,%.o,$(sources:%.hs=%.o))
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 \
9df11f85fd7f8c4745d64464876e84ec4e263692Christian Maeder Modal/AS_Modal.hs CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettichgenrule_header_files = $(wildcard ATC/*.header.hs)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederatc_files := Common/Lib/Graph.hs Common/Id.hs Common/Result.hs \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederatc_der_files = $(foreach file, $(atc_files), \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCASL_files := CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederHasCASL_files := HasCASL/As.hs HasCASL/Le.hs HasCASL/Morphism.hs \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederModal_files := Modal/AS_Modal.hs Modal/ModalSign.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCoCASL_files := CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCspCASL_files := CspCASL/AS_CSP_CASL.hs CspCASL/SignCSP.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederlogics := CASL HasCASL Modal CoCASL COL CspCASL
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maedergenerated_rule_files = $(atc_der_files) $(atc_logic_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maedergendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederinline_axiom_files = Comorphisms/CASL2PCFOL.hs Comorphisms/PCFOL2FOL.hs \
a02a4eb2a2029d27a11fff2ebcc6c460574a74fcKlaus Luettich Comorphisms/Modal2CASL.hs # Comorphisms/CASL2TopSort.hs
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowskigen_inline_axiom_files = $(patsubst %.hs,%.inline.hs,$(inline_axiom_files))
b70b9c569e477c6a877c93d3ecc17c38c9e047dcChristian Maederderived_sources = $(drifted_files) hetcats/Version.hs $(happy_files) \
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder $(inline_axiom_files) Modal/ModalSystems.hs \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# sources that have {-# OPTIONS -cpp #-}
a348b2eb46eb51f376c910d6dd4415fdab6713bdChristian Maedercpp_sources = ./Isabelle/Logic_Isabelle.hs \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder ./Proofs/Proofs.hs hets.hs ./CASL/CCC/FreeTypes.hs \
7ea1b24778bb8f58c650f5ae659da720b9f9e109Klaus Luettich ./Comorphisms/LogicList.hs ./Comorphisms/LogicGraph.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# this variable holds the modules that should be documented
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederdoc_sources = $(filter-out $(cpp_sources), $(filter-out $(pfe_sources), \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(sources))) $(patsubst %.hs, %.hspp, $(cpp_sources))
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnketax_sources = Taxonomy/AbstractGraphView.hs Taxonomy/MMiSSOntology.hs \
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke Taxonomy/MMiSSOntologyGraph.hs Taxonomy/OntoParser.hs
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnketax_objects = $(patsubst %.hs,%.o,$(tax_sources))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder.PHONY : all hets-opt hets-optimized clean d_clean real_clean bin_clean \
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder lib_clean distclean check capa hacapa h2h clean_genRules genRules \
dd7b93bd69a40191907af1739db375ecc7e6cf18Christian Maeder taxonomy count doc apache_doc post_doc4apache \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder derivedSources install_hets install release
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
ed9207cf24e96b0d6f59985822054ae28cb69b2eChristian Maeder $(HC) --make -o $@ hets.hs $(HC_OPTS) 2>&1 | tee hetcats-make
05a8b581f98b928baca6dab60cd20277659ac760Christian Maeder $(HC) --make -O -o hets hets.hs $(HC_OPTS) -w 2>&1 | tee hetcats-make
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder ghc --make -package-conf /home/luettich/ghc-pkg/package.conf \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder -package WASH-CGI GUI/hets_cgi.hs -o hets.cgi $(HC_INCLUDE) \
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maedertaxonomy: Taxonomy/taxonomyTool.hs $(tax_sources)
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder $(HC) --make -o Taxonomy/taxonomyTool $< -ifgl $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder###############################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### TAGS files for (x)emacs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# load them with "M-x" "visit-tags-table" from
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# use "M-." to search for a tag
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# !!Beware this is somewhat instable, because it uses an absolute path!!
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder /home/ger/linux/ghc-5.04.2/bin/i386-unknown-linux/hasktags \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(sources); mv TAGS $@; mv tags hetcats.tags
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder###############################
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich### count lines of code
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich###############################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### Documentation via haddock
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder# generate haddock documentation with links to sources
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder $(HADDOCK) $(doc_sources) $(uni_sources) -o docs -h -v \
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder -i docs/base.haddock -i docs/parsec.haddock -s ../ \
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich -t 'hets -- a heterogenous Specification (CASL) tool set'
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder# sources are not copied here
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder###############################
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder### release management
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT && \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder GenerateRules.hs -o ../genRules && strip ../genRules)
e593b89bfd4952698dc37feced21cefe869d87a2Christian Maeder $(HC) --make utils/InlineAxioms/InlineAxioms.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder cvs -d :pserver:cvsread@cvs-agbkb.informatik.uni-bremen.de:/repository\
9c3edf2b283c09d33b2820696886d1ed32fcadc8Christian Maeder -ln -s ../../programatica/tools programatica/tools
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder (cd HetCATS; $(MAKE) derivedSources; ./clean.sh; \
94d3aa05411444596b44ede4531f05dd7ac20fdfChristian Maeder find . -name CVS -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
dc929508a3bd3c666e9b0182d56898fcafb5d66fChristian Maeder $(RM) clean.*; mv Makefile Makefile.orig; \
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian Maeder cp -p hets $(INSTALLDIR)/versions/hets-`cat version_nr`
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder ln -s versions/hets-`cat version_nr` hets; $(RM) version_nr)
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus Luettich#############################
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus Luettich### ATC DrIFT-rule generation
42aacf1f63419cbab63a88725e6a0b2c8776f101Christian Maeder$(atc_der_files): $(atc_files) $(genrule_header_files) utils/genRules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCASL/ATC_CASL.der.hs: $(CASL_files) utils/genRules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder utils/genRules -r $(rule) -o CASL $(CASL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) utils/genRules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder utils/genRules -r $(rule) -o HasCASL $(HasCASL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederModal/ATC_Modal.der.hs: $(Modal_files) utils/genRules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder utils/genRules -r $(rule) -o Modal $(Modal_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) utils/genRules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder utils/genRules -r $(rule) -o CoCASL $(CoCASL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCOL/ATC_COL.der.hs: $(COL_files) utils/genRules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder utils/genRules -r $(rule) -o COL $(COL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) utils/genRules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder utils/genRules -r $(rule) -o CspCASL $(CspCASL_files)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder if [ -f ATC/$(basename $(basename $(notdir $(file)))).header.hs ]; \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder ATC/$(basename $(basename $(notdir $(file)))).header.hs $(file); \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder else utils/genRules -r $(rule) -o ATC $(file); fi ;
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(RM) $(generated_rule_files) $(gendrifted_files)
4d5652abf9ed9c5714723ff7fdb80a54f7350fb2Christian Maeder#############################
4d5652abf9ed9c5714723ff7fdb80a54f7350fb2Christian Maeder### programatica stuff
4d5652abf9ed9c5714723ff7fdb80a54f7350fb2Christian Maeder$(LEX_DIR)/HsLex.hs: $(LEX_DIR)Gen/HsLexerGen
4d5652abf9ed9c5714723ff7fdb80a54f7350fb2Christian Maeder$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
7b2177999334c920c5669621bd3c142fe198a8d7Christian Maeder -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder###############
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### removes *.hi and *.o in all include directories
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder for p in $(subst :, ,$(CLEAN_PATH)) . ; do \
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder### remove binaries
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### additonally removes *.d (dependency files) in every include directory
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### also delete *.d.bak (dependency file backups)
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder for p in $(subst :, ,$(CLEAN_PATH)) . ; do \
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder### remove files also in own libraries
75cda7e5b890d050d560d970af244a183f28328fKlaus Luettich for p in $(subst :, ,$(COMMONLIB_PATH)) . ; do \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### additionally removes the files that define the sources-variable
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### additionally removes files not in CVS tree
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### test targets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### a parser to test annotation parser and Id parsers
470ca7a2797069ae4b27c34c1b71419f67be1f84Christian MaederCommon/test_parser: Common/test_parser.hs Common/AS_Annotation.der.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### interactive
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### christian's target
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### CASL parser
481d4fe351800ab00fd323db8974559431227305Christian MaederCASL/capa: CASL/capa.hs Common/*.hs CASL/*.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### HasCASL parser
481d4fe351800ab00fd323db8974559431227305Christian MaederHasCASL/hacapa: HasCASL/hacapa.hs Common/*.hs HasCASL/*.hs
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski### Haskell analysis
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian MaederHaskell/hana: Haskell/hana.hs Haskell/HatAna.hs Haskell/PreludeString.hs
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder### HasCASL to Haskell translation
23ab8855c58adfbd03a0730584b917b24c603901Christian MaederToHaskell/h2h: ToHaskell/h2h.hs ToHaskell/*.hs Haskell/*.hs HasCASL/*.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### HetCASL parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### HetCASL parser
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers### ATC test system
23ab8855c58adfbd03a0730584b917b24c603901Christian Maederatctest2: Common/ATerm/atctest2.hs Common/SimpPretty.hs \
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettich### ATerm.Lib test system
23ab8855c58adfbd03a0730584b917b24c603901Christian Maederatermlibtest: Common/ATerm/atermlibtest.hs Common/SimpPretty.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### HetCASL with dev graph
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### run tests in other directories
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## Preparing the version of HetCATS
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhetcats/Version.hs: hetcats/Version.in version_nr
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(PERL) utils/build_version.pl version_nr < hetcats/Version.in > $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## two hardcoded dependencies for a correct generation of Version.hs
ba0ec5e897ef99d420c8c14c2374e0f32b7043dbKlaus Luettichhetcats/Options.hs hetcats/WriteFn.hs hetcats/ReadFn.hs: hetcats/Version.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## rules for DrIFT
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski## rules for inlineAxioms
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder## rule for appendHaskellPreludeString
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder## rule for cpp and haddock
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## compiling rules for object and interface files
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## compiling rules for dependencies
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# hetcats-make is created as side-effect of hets or hets-optimized
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maedersources_hetcats.mk: hetcats-make utils/create_sources.pl