Makefile revision 76b9b2974795a6fb31f242fd032de3ff66df6204
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore# This Makefile will compile the hets system and provides also
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore# targets for test programs during implementation phases.
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore# !!! Note: This makefile is written for GNU make !!!
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore# (gmake on solaris)
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore# the 'replacing spaces' example was taken from the (GNU) Make info manual
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'AmoreDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'AmoreGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'AmoreGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'AmoreINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'AmoreGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'AmoreGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore -i Data.Typeable -i ATerm.Lib -i ATC.Grothendieck
(cd ../programatica/tools; \
$@.hs -o $@
$(RM) $@
$(APPENDPRELUDESTRING) < $< > $@
#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
# unset this variable from var.mk because the programatica sources
# uncomment HC_PROF for profiling (and comment out packages in var.mk)
# the rules to create ATC .der.hs file for DriFT
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL2) -o $@ $<
# all ATC .der.hs files for all logics
# a rule to create all .der.hs files
# files to be processed by utils/InlineAxioms
cgi:
(cd utils/GenerateRules; \
GenerateRules.hs -o ../genRules)
-i../.. -o $(INLINEAXIOMS)
if [ -d ../programatica ] ; then \
./clean.sh; \
# Common/LaTeX_maps.hs generation
@echo -n "Generating pretty/LaTeX_maps.hs ... "
@(cd pretty >/dev/null; ../utils/genItCorrections \
$(RM) $@
## two hardcoded dependencies for a correct generation of Version.hs
.SUFFIXES:
%.hs: %.y
$(RM) $@
$(RM) $@
$(INLINEAXIOMS) $< > $@
%.d : %.hs
%.d : %.lhs
$(RM) $@
$(RM) $@
$(PERL) $+ > $@
## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
# uses intransparently utils/outlineAxioms
$(RM) $@
@echo Please do