Makefile revision 08e5741dd8b6bf9b7419e89298e384e18bc57f64
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2004
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# This Makefile will compile the new hetcats system and provides also
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# targets for test programs during implementation phases.
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# !!! Note: This makefile is written for GNU make !!!
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# (gmake on solaris ; make on linux)
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews####################################################################
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater## Some varibles, which control the compilation
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic UpdaterCOMMONLIB_PATH = Common/Lib:Common/Lib/Parsec:Common/ATerm:fgl/Data/Graph:fgl/Data/Graph/Inductive:fgl/Data/Graph/Inductive/Aux:fgl/Data/Graph/Inductive/Monad:fgl/Data/Graph/Inductive/Query
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic UpdaterCLEAN_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
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater## set ghc imports properly for your system
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic UpdaterLINUX_IMPORTS = $(wildcard /home/linux-bkb/ghc/ghc-latest/lib/ghc-*/imports)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsDRIFT_ENV = DERIVEPATH='.:ghc:hetcats:${LINUX_IMPORTS}:${GHC_IMPORTS}'
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# override on commandline for other architectures
831f79c4310a7d38fc3475ccfff531b2b2535641Automatic UpdaterINSTALLDIR = /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterHC_FLAGS = -Wall -fglasgow-exts -fallow-overlapping-instances
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# -ddump-minimal-imports
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# flags also come in via ../uni/uni-package.conf
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# but added it here in case of compilation without uni
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterHC_PACKAGE = -package-conf ../uni/uni-package.conf -package uni-davinci \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater### Profiling (only for debugging)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater### Attention every module must be compiled with profiling or the linker
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater### cannot link the various .o files properly. So after switching on
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater### Profiling, do an 'gmake real_clean; gmake'
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater### and comment out HC_PACKAGE variable definition above.
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater### Comment in the following line for switching on profiling.
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater#HC_PROF = -prof -auto-all
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterHCI_OPTS = $(HC_FLAGS) $(HC_PACKAGE) $(HC_INCLUDE)
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews### list of directories to run checks in
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsTESTDIRS = Common CASL HasCASL Haskell/Hatchet/examples ToHaskell/test
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews####################################################################
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater## sources for hetcats (semi - manually produced with a perl script)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updaterobjects = $(patsubst %.lhs,%.o,$(sources:%.hs=%.o))
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewsdrifted_files = Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic Updater Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs Syntax/AS_Structured.hs \
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic Updater Modal/AS_Modal.hs CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updatergenrule_header_files = $(wildcard ATC/*.header.hs)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsgenrule_files = Common/Lib/Graph.hs Common/Id.hs Common/Result.hs \
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater CASL/Morphism.hs CASL/Sign.hs CASL/AS_Basic_CASL.der.hs \
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater HasCASL/As.hs HasCASL/Le.hs HasCASL/Morphism.hs \
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater CspCASL/AS_CSP_CASL.hs CspCASL/SignCSP.hs \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater Haskell/Hatchet/Class.hs Haskell/Hatchet/KindInference.hs \
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updatergendrifted_files = ATC/Graph.hs ATC/Id.hs ATC/Result.hs ATC/AS_Annotation.hs \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater ATC/AS_Library.hs ATC/GlobalAnnotations.hs \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ATC/AS_Structured.hs ATC/AS_Architecture.hs \
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater HasCASL/ATC_HasCASL.hs CspCASL/ATC_CspCASL.hs \
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater Modal/ATC_Modal.hs CoCASL/ATC_CoCASL.hs COL/ATC_COL.hs \
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updatergenerated_rule_files = $(patsubst %.hs,%.der.hs,$(gendrifted_files))
3e5340279d8875d136a4dd815cccad0044aa2644Automatic Updaterinline_axiom_files = Comorphisms/CASL2PCFOL.hs Comorphisms/PCFOL2FOL.hs Comorphisms/Modal2CASL.hs
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updatergen_inline_axiom_files = $(patsubst %.hs,%.inline.hs,$(inline_axiom_files))
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater# this variable holds the modules that should be documented
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# the imported parsec library is not included!
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updatercpp_sources = ./Isabelle/Logic_Isabelle.hs \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater ./Proofs/Proofs.hs hets.hs ./CASL/CCC/FreeTypes.hs
e628576d3b3d91c8954679077f4c208f1e43b433Automatic Updaterdoc_sources = $(filter-out $(cpp_sources) ,$(sources)) \
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# some modules from uni for haddock
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# if uni/server is included also HaXml sources are needed
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updateruni_sources = $(wildcard ../uni/davinci/haddock/*.hs) \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updatertax_sources = Taxonomy/AbstractGraphView.hs Taxonomy/MMiSSOntology.hs \
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater Taxonomy/MMiSSOntologyGraph.hs Taxonomy/OntoParser.hs
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updatertax_objects = $(patsubst %.hs,%.o,$(tax_sources))
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater####################################################################
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater.PHONY : clean d_clean real_clean bin_clean check hetana hetpa hetdg \
82447d835d3ff5c658749b4e9b4f66166407b3eaAutomatic Updater.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater $(HC) --make -o $@ hets.hs $(HC_OPTS) 2>&1 | tee hetcats-make
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(HC) --make -O -o hets hets.hs $(HC_OPTS) -w 2>&1 | tee hetcats-make
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater ghc --make -package-conf /home/luettich/ghc-pkg/package.conf -package WASH-CGI GUI/hets_cgi.hs -o hets.cgi $(HC_OPTS) -O
f7a71eef29bcbf892270460269c79664f600cffdAutomatic Updaterhetcats-make: hets.hs utils/create_sources.pl $(drifted_files) $(happy_files) $(inline_axiom_files) Modal/ModalSystems.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(HC) --make -o hets $< $(HC_OPTS) 2>&1 | tee hetcats-make
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updatertaxonomy: Taxonomy/taxonomyTool.hs $(tax_sources)
cf7e98f59148b559946a7f1ca728471374f1eef3Automatic Updater $(HC) --make -o Taxonomy/taxonomyTool $< -ifgl $(HC_OPTS)
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updater###############################
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater### TAGS files for (x)emacs
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# load them with "M-x" "visit-tags-table" from
c3fd32ed29e9e419bb56583f4272a506773b1ea0Automatic Updater# use "M-." to search for a tag
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# !!Beware this is somewhat instable, because it uses an absolute path!!
c3fd32ed29e9e419bb56583f4272a506773b1ea0Automatic Updater /home/ger/linux/ghc-5.04.2/bin/i386-unknown-linux/hasktags \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater $(sources); mv TAGS $@; mv tags hetcats.tags
099b86fb8136a7dff81df85cf395978c16eb254cAutomatic Updater###############################
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### count lines of code
572cb2c1c931f6bc6a4a019c103ae88239b0eb96Automatic Updater###############################
7858b0168b866c0c2878fc4ea31fb5e581c1a6a9Automatic Updater### Documentation via haddock
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# generate haddock documentation with links to sources
56e7dc0c24b04210dcbffb180a9e35644fb820daAutomatic Updater $(HADDOCK) $(doc_sources) $(uni_sources) -o docs -h -v \
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater -i docs/base.haddock -i docs/parsec.haddock -s ../ \
8292deab031e7599cd7622aa7675fbe139ca6095Mark Andrews -t 'hets -- a heterogenous Specification (CASL) tool set'
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews# sources are not copied here
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater###############################
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews### release management
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic UpdaterderivedSources: $(drifted_files) $(happy_files) hetcats/Version.hs $(inline_axiom_files) Modal/ModalSystems.hs
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT && \
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater $(HC) --make '-i../..:../DrIFT-src' -package text GenerateRules.hs -o ../genRules && \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(HC) --make utils/InlineAxioms/InlineAxioms.hs \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews cvs -d :pserver:cvsread@cvs-agbkb.informatik.uni-bremen.de:/repository co HetCATS
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews (cd HetCATS; $(MAKE) derivedSources; ./clean.sh; \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews find . -name CVS -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
06f5acb11f1c32228d93eefd1eb841dbfb1c7f4dAutomatic Updater $(RM) clean.*; mv Makefile Makefile.orig; \
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews cp -p hets $(INSTALLDIR)/versions/hets-`cat version_nr`
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ln -s versions/hets-`cat version_nr` hets; $(RM) version_nr)
b13d89bd89878137c81b36a36596cca3920f27a4Automatic Updater#############################
b13d89bd89878137c81b36a36596cca3920f27a4Automatic Updater### ATC DrIFT-rule generation
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdatergenRules: $(generated_rule_files) utils/genRules
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater$(generated_rule_files): $(genrule_files) utils/genRules $(genrule_header_files)
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater $(foreach file,$(atc_files),$(gen_atc_files))
b1265b5a06df36d490d4bdf54284fb133a1f5a84Automatic Updater utils/genRules -r $(rule) -o CASL $(casl_files)
bc0a4c01beede169df81a3ee5b614ed9e82339dbAutomatic Updater utils/genRules -r $(rule) -o HasCASL $(hascasl_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington utils/genRules -r $(rule) -o Modal $(modal_files)
665ba746c0585088d0c314dcfc4671aa2c7b2dc1Automatic Updater utils/genRules -r $(rule) -o CoCASL $(cocasl_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington utils/genRules -r $(rule) -o COL $(col_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington utils/genRules -r $(rule) -o CspCASL $(cspcasl_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington utils/genRules -r $(rule) -o Haskell -h ATC/Haskell.header.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtongen_atc_files = if [ -f ATC/$(basename $(basename $(notdir $(file)))).header.hs ]; then \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington utils/genRules -r $(rule) -o ATC -h ATC/$(basename $(basename $(notdir $(file)))).header.hs $(file); \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington utils/genRules -r $(rule) -o ATC $(file); \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonatc_files := $(filter-out CASL/% HasCASL/% Modal/% CoCASL/% COL/% CspCASL/% Haskell/% ,$(genrule_files))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoncasl_files := $(filter CASL/% ,$(genrule_files))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonhascasl_files := $(filter HasCASL/% ,$(genrule_files))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonmodal_files := $(filter Modal/% ,$(genrule_files))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoncocasl_files := $(filter CoCASL/% ,$(genrule_files))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoncol_files := $(filter COL/% ,$(genrule_files))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoncspcasl_files := $(filter CspCASL/% ,$(genrule_files))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonhaskell_files := $(filter Haskell/%,$(genrule_files))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington###############
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### removes *.hi and *.o in all include directories
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington for p in $(subst :, ,$(CLEAN_PATH)) . ; do \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### remove binaries
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater### additonally removes *.d (dependency files) in every include directory
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater### also delete *.d.bak (dependency file backups)
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater for p in $(subst :, ,$(CLEAN_PATH)) . ; do \
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater### remove files also in own libraries
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater for p in $(subst :, ,$(COMMONLIB_PATH)) . ; do \
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater### additionally removes the files that define the sources-variable
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington### additionally removes files not in CVS tree
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellingtondistclean: real_clean clean_genRules d_clean
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# $(RM) $(happy_files)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews####################################################################
348040cb2675f1c3711672dadfc29f5ddfd2bb23Automatic Updater### test targets
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington####################################################################
099b86fb8136a7dff81df85cf395978c16eb254cAutomatic Updater### a parser to test annotation parser and Id parsers
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCommon/test_parser: Common/test_parser.hs Common/AS_Annotation.der.hs
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater### interactive
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater### christian's target
765c97d56ccddc9d7904c7d9ff2e2d825d9687e4Automatic Updater### CASL parser
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterCASL/capa: CASL/capa.hs Common/*.hs CASL/*.hs
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater### HasCASL parser
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterHasCASL/hacapa: HasCASL/hacapa.hs Common/*.hs HasCASL/*.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### Haskell parser
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonHaskell/hapa: Haskell/hapa.hs Haskell/Hatchet/*.hs $(happy_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### Haskell analysis
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonHaskell/hana: Haskell/hana.hs Haskell/HatAna.hs Haskell/Hatchet/*.hs $(happy_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### HetCASL parser
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### HetCASL parser
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater### ATC test system
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonatctest2: Common/ATerm/ATermLibTest.hs Common/SimpPretty.hs Common/ATerm/*.hs Common/Lib/*.hs
7adcb4de92bf4383a4c5624c4ed256736d02bc6dMark Andrews### ATerm.Lib test system
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonatermlibtest: Common/ATerm/ATermLibTest.hs Common/ATerm/*.hs Common/SimpPretty.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### HetCASL with dev graph
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(HC) --make -o $@ $< $(HC_OPTS) -package-conf ../uni/uni-package.conf -package uni-davinci -package uni-server
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### run tests in other directories
7adcb4de92bf4383a4c5624c4ed256736d02bc6dMark Andrews for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington####################################################################
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## Preparing the version of HetCATS
7adcb4de92bf4383a4c5624c4ed256736d02bc6dMark Andrewshetcats/Version.hs: hetcats/Version.in version_nr
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(PERL) utils/build_version.pl version_nr < hetcats/Version.in > $@
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## two hardcoded dependencies for a correct generation of Version.hs
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updaterhetcats/Options.hs hetcats/WriteFn.hs hetcats/ReadFn.hs: hetcats/Version.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington####################################################################
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## rules for DrIFT
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater## rules for inlineAxioms
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater## rule for cpp and haddock
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater## compiling rules for object and interface files
7adcb4de92bf4383a4c5624c4ed256736d02bc6dMark Andrews## compiling rules for dependencies
7adcb4de92bf4383a4c5624c4ed256736d02bc6dMark Andrews## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
7adcb4de92bf4383a4c5624c4ed256736d02bc6dMark AndrewsModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in utils/genTransMFormFunc.pl $(INLINEAXIOMS)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington####################################################################
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## Setting a global search path (for dependency files)
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updater## include every .d file in INCLUDE_PATH
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updatersources_hetcats.mk: hetcats-make hetcats/Version.hs hets.hs utils/create_sources.pl $(drifted_files) $(happy_files)