Makefile revision 8b4c68db8b465107cabef8b9cd5b6bc216e1b156
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2004
43b4c41fbb07705c9df321221ab9cb9832460407Christian 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 !!!
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# (gmake on solaris ; make on linux)
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder####################################################################
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder## Some varibles, which control the compilation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederCOMMONLIB_PATH = Common/Lib:Common/Lib/Parsec:Common/ATerm
68d10d143f29fcff3c637ba24f90e983995ceae6Christian 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
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich## set ghc imports properly for your system
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus LuettichLINUX_IMPORTS = $(wildcard /home/linux-bkb/ghc/ghc-latest/lib/ghc-*/imports)
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus LuettichDRIFT_ENV = DERIVEPATH='.:ghc:hetcats:${LINUX_IMPORTS}:${GHC_IMPORTS}'
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder# override on commandline for other architectures
96646aed2ae087b942ae23f15bbe729a8f7c43d3Christian MaederINSTALLDIR = /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
9dac90ec2be2a72e03893095461960d483fe2fc2Christian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder# -fglasgow-exts comes in via ../uni/uni-package.conf
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich# but added it here in case of compilation without uni
4d56f2fa72e4aec20eb827c11ed49c8cbb7014bdChristian MaederHC_PACKAGE = -package-conf ../uni/uni-package.conf -package uni-davinci \
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich### Profiling (only for debugging)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder### Attention every module must be compiled with profiling or the linker
356fa49fe3e6a8398f92d13e9f920d0f093697ecChristian Maeder### cannot link the various .o files properly. So after switching on
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder### Profiling, do an 'gmake real_clean; gmake'
55adfe57a4de1f36adc3e3bfc16f342e44a7d444Christian Maeder### and comment out HC_PACKAGE variable definition above.
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder### Comment in the following line for switching on profiling.
8d97ef4f234681b11bb5924bd4d03adef858d2d2Christian Maeder#HC_PROF = -prof -auto-all
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHCI_OPTS = $(HC_FLAGS) $(HC_PACKAGE) $(HC_INCLUDE)
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian Maeder### list of directories to run checks in
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederTESTDIRS = Common CASL HasCASL Haskell/Hatchet/examples ToHaskell/test
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian Maeder####################################################################
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder## sources for hetcats (semi - manually produced with a perl script)
d3ae0072823e2ef0d41d4431fcc768e66489c20eChristian Maederobjects = $(patsubst %.lhs,%.o,$(sources:%.hs=%.o))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederdrifted_files = Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs Syntax/AS_Structured.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder Modal/AS_Modal.hs CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maedergenrule_header_files = $(wildcard ATC/*.header.hs)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maedergenrule_files = Common/Lib/Graph.hs Common/Id.hs Common/Result.hs \
a6db617ca58eb6a0587b6366e913107dfecb71b5Heng Jiang Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
a6082d6cfdfbdc6a4e70430bb25638dfa4f0db9bHeng Jiang Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder CASL/Morphism.hs CASL/Sign.hs CASL/AS_Basic_CASL.der.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder HasCASL/As.hs HasCASL/Le.hs HasCASL/Morphism.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Haskell/Hatchet/Class.hs Haskell/Hatchet/KindInference.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maedergendrifted_files = ATC/Graph.hs ATC/Id.hs ATC/Result.hs ATC/AS_Annotation.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder ATC/AS_Library.hs ATC/GlobalAnnotations.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder ATC/AS_Structured.hs ATC/AS_Architecture.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder HasCASL/ATC_HasCASL.hs CspCASL/ATC_CspCASL.hs \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder Modal/ATC_Modal.hs CoCASL/ATC_CoCASL.hs COL/ATC_COL.hs \
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maedergenerated_rule_files = $(patsubst %.hs,%.der.hs,$(gendrifted_files))
2d130d212db7208777ca896a7ecad619a8944971Christian Maederinline_axiom_files = Comorphisms/CASL2PCFOL.hs Comorphisms/PCFOL2FOL.hs Comorphisms/Modal2CASL.hs
2d130d212db7208777ca896a7ecad619a8944971Christian Maedergen_inline_axiom_files = $(patsubst %.hs,%.inline.hs,$(inline_axiom_files))
bc8cbf12aa172bf5673b92a9e7a0151d4aa4c315Christian Maeder# this variable holds the modules that should be documented
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder# the imported parsec library is not included!
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maedercpp_sources = ./Isabelle/IsaProve.hs ./Isabelle/Logic_Isabelle.hs ./Proofs/Proofs.hs hets.hs
2d130d212db7208777ca896a7ecad619a8944971Christian Maederdoc_sources = $(filter-out ./Isabelle/IsaSign.hs $(cpp_sources) ,$(sources)) \
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder####################################################################
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder.PHONY : clean d_clean real_clean bin_clean check hetana hetpa hetdg \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maeder $(HC) --make -o $@ hets.hs $(HC_OPTS) 2>&1 | tee hetcats-make
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederproblematic_objs = Common/Lib/Rel.o Common/Id.o Common/Lexer.o Common/Lib/Pretty.o Common/GlobalAnnotations.o Common/PPUtils.o
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(HC) --make -O -o hets hets.hs $(HC_OPTS) -w 2>&1 | tee hetcats-make
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder ghc --make -package-conf /home/luettich/ghc-pkg/package.conf -package WASH-CGI GUI/hets_cgi.hs -o hets.cgi $(HC_OPTS) -O
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederhetcats-make: hets.hs utils/create_sources.pl $(drifted_files) $(happy_files) $(inline_axiom_files) Modal/ModalSystems.hs
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(HC) --make -o hets $< $(HC_OPTS) 2>&1 | tee hetcats-make
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder###############################
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder### TAGS files for (x)emacs
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# load them with "M-x" "visit-tags-table" from
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# use "M-." to search for a tag
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder# !!Beware this is somewhat instable, because it uses an absolute path!!
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder /home/ger/linux/ghc-5.04.2/bin/i386-unknown-linux/hasktags \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder $(sources); mv TAGS $@; mv tags hetcats.tags
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder###############################
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder### count lines of code
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder###############################
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### Documentation via haddock
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich# index for prelude is missing
2c619a4dfdc1df27573eba98e81ed1ace906941dChristian Maeder -t 'hets -- a heterogenous Specification (CASL) tool set'
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder###############################
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder### release management
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian MaederderivedSources: $(drifted_files) $(happy_files) hetcats/Version.hs $(inline_axiom_files) Modal/ModalSystems.hs
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT && \
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder $(HC) --make '-i../..:../DrIFT-src' -package text GenerateRules.hs -o ../genRules && \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(HC) --make utils/InlineAxioms/InlineAxioms.hs \
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder cvs -d :pserver:cvsread@cvs-agbkb.informatik.uni-bremen.de:/repository co HetCATS
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder (cd HetCATS; $(MAKE) derivedSources; ./clean.sh; \
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder find . -name CVS -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder $(RM) clean.*; mv Makefile Makefile.orig; \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder cp -p hets $(INSTALLDIR)/versions/hets-`cat version_nr`
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder ln -s versions/hets-`cat version_nr` hets; $(RM) version_nr)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder#############################
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder### ATC DrIFT-rule generation
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaedergenRules: $(generated_rule_files) utils/genRules
ac34194a668399bb8ef238da77c3a09e93fb253bChristian Maeder$(generated_rule_files): $(genrule_files) utils/genRules #$(genrule_header_files)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(foreach file,$(atc_files),$(gen_atc_files))
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maeder utils/genRules -r $(rule) -o CASL $(casl_files)
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maeder utils/genRules -r $(rule) -o HasCASL $(hascasl_files)
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maeder utils/genRules -r $(rule) -o Modal $(modal_files)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder utils/genRules -r $(rule) -o CoCASL $(cocasl_files)
986d3f255182539098a97ac86da9eeee5b7a72e3Christian Maeder utils/genRules -r $(rule) -o COL $(col_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder utils/genRules -r $(rule) -o CspCASL $(cspcasl_files)
4561227a776bdf0ab679b19fb92f1eaaed8786f7Christian Maeder utils/genRules -r $(rule) -o Haskell -h ATC/Haskell.header.hs \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maedergen_atc_files = if [ -f ATC/$(basename $(basename $(notdir $(file)))).header.hs ]; then \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder utils/genRules -r $(rule) -o ATC -h ATC/$(basename $(basename $(notdir $(file)))).header.hs $(file); \
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski utils/genRules -r $(rule) -o ATC $(file); \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maederatc_files := $(filter-out CASL/% HasCASL/% Modal/% CoCASL/% COL/% CspCASL/% Haskell/% ,$(genrule_files))
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maedercasl_files := $(filter CASL/% ,$(genrule_files))
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maederhascasl_files := $(filter HasCASL/% ,$(genrule_files))
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maedermodal_files := $(filter Modal/% ,$(genrule_files))
fb328c4f646dd3dd78a9391c5cb58450a3dd0aa9Klaus Luettichcocasl_files := $(filter CoCASL/% ,$(genrule_files))
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettichcol_files := $(filter COL/% ,$(genrule_files))
a6db617ca58eb6a0587b6366e913107dfecb71b5Heng Jiangcspcasl_files := $(filter CspCASL/% ,$(genrule_files))
abf2487c3aece95c371ea89ac64319370dcb6483Klaus Luettichhaskell_files := $(filter Haskell/%,$(genrule_files))
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder###############
18a4d5cb6828f080db9c5f9551785c5151027271Christian Maeder### removes *.hi and *.o in all include directories
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder for p in $(subst :, ,$(CLEAN_PATH)) . ; do \
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder### remove binaries
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder### additonally removes *.d (dependency files) in every include directory
6bf24e5eb644064ad650eb3fd9774483fccbf601Christian Maeder### also delete *.d.bak (dependency file backups)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder for p in $(subst :, ,$(CLEAN_PATH)) . ; do \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### remove files also in own libraries
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder for p in $(subst :, ,$(COMMONLIB_PATH)) . ; do \
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder### additionally removes the files that define the sources-variable
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder### additionally removes files not in CVS tree
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) $(drifted_file) $(inline_axiom_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich# $(RM) $(happy_files)
27785f379d6810811b4e6d23feab18845fde9a98Christian Maeder####################################################################
f443a57f2a8e0ca3daa7431b0c89a18ba52c337aChristian Maeder### test targets
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder####################################################################
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maeder### a parser to test annotation parser and Id parsers
7c99e334446bb97120e30e967baeeddfdd1278deKlaus LuettichCommon/test_parser: Common/test_parser.hs Common/AS_Annotation.der.hs
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder### interactive
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder### christian's target
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder### CASL parser
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederCASL/capa: CASL/capa.hs Common/*.hs CASL/*.hs
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder### HasCASL parser
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian MaederHasCASL/hacapa: HasCASL/hacapa.hs Common/*.hs HasCASL/*.hs
215d42ce4d6397a453d5887292bc786e8fa9c1a2Christian Maeder### Haskell parser
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian MaederHaskell/hapa: Haskell/hapa.hs Haskell/Hatchet/*.hs $(happy_files)
215d42ce4d6397a453d5887292bc786e8fa9c1a2Christian Maeder### Haskell analysis
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian MaederHaskell/hana: Haskell/hana.hs Haskell/HatAna.hs Haskell/Hatchet/*.hs $(happy_files)
215d42ce4d6397a453d5887292bc786e8fa9c1a2Christian Maeder### HetCASL parser
27785f379d6810811b4e6d23feab18845fde9a98Christian Maeder### HetCASL parser
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder### ATC test system
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maederatctest2: Common/ATerm/ATermLibTest.hs Common/SimpPretty.hs Common/ATerm/*.hs Common/Lib/*.hs
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maederatermlibtest: Common/ATerm/ATermLibTest.hs Common/ATerm/*.hs Common/SimpPretty.hs
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder### HetCASL with dev graph
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich $(HC) --make -o $@ $< $(HC_OPTS) -package-conf ../uni/uni-package.conf -package uni-davinci -package uni-server
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich### run tests in other directories
5c69cef4668bbd959d721668313a779126014d1eKlaus Luettich for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich####################################################################
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich## Preparing the version of HetCATS
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettichhetcats/Version.hs: hetcats/Version.in version_nr
5818d884784339c1b8aa6c6d972bad4eafd36ccbKlaus Luettich $(PERL) utils/build_version.pl version_nr < hetcats/Version.in > $@
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich## two hardcoded dependencies for a correct generation of Version.hs
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettichhetcats/Options.hs hetcats/WriteFn.hs hetcats/ReadFn.hs: hetcats/Version.hs
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich####################################################################
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich## rules for DrIFT
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## rules for inlineAxioms
c1bf9cc3bc3729b0bf925be3be123cbb59bea2a6Christian Maeder## rule for cpp and haddock
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder## compiling rules for object and interface files
c9e197862d9d8ef2585270dd08f5194b3aed4a9dKlaus Luettich## compiling rules for dependencies
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian MaederModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in utils/genTransMFormFunc.pl $(INLINEAXIOMS)
5d39c60274aaa76506292d2d9e885fccd27e1eabChristian Maeder####################################################################
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder## Setting a global search path (for dependency files)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder## include every .d file in INCLUDE_PATH
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maedersources_hetcats.mk: hetcats-make hetcats/Version.hs hets.hs utils/create_sources.pl $(drifted_files) $(happy_files)