Makefile revision e284004f10a315dbdb624c8b2522f65d485eaa48
25fdbae285d682b7e54ac103ccfb95e032b6ff1fTimo Sirainen# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# This Makefile will compile the hets system and provides also
25fdbae285d682b7e54ac103ccfb95e032b6ff1fTimo Sirainen# targets for test programs during implementation phases.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# !!! Note: This makefile is written for GNU make !!!
25fdbae285d682b7e54ac103ccfb95e032b6ff1fTimo Sirainen# (gmake on solaris)
25fdbae285d682b7e54ac103ccfb95e032b6ff1fTimo Sirainen# deprecated since haddock 2
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
25fdbae285d682b7e54ac103ccfb95e032b6ff1fTimo Sirainen Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen CspCASL ATC Proofs Comorphisms Isabelle Driver Modifications \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen Taxonomy CASL_DL SoftFOL OWL OMDoc PGIP Propositional RelationalScheme \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen VSE Interfaces Temporal CspCASLProver DFOL CMDL
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# the 'replacing spaces' example was taken from the (GNU) Make info manual
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
25fdbae285d682b7e54ac103ccfb95e032b6ff1fTimo SirainenGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
25fdbae285d682b7e54ac103ccfb95e032b6ff1fTimo SirainenINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
25fdbae285d682b7e54ac103ccfb95e032b6ff1fTimo Sirainen Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
25fdbae285d682b7e54ac103ccfb95e032b6ff1fTimo SirainenGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
25fdbae285d682b7e54ac103ccfb95e032b6ff1fTimo Sirainen -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
$(wildcard utils/GenerateRules/*.hs) \
$(wildcard utils/InlineAxioms/*.hs) \
$(generated_rule_files) \
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