Makefile revision 456238178f89e5a3de2988ee6c8af924297d52d9
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# This Makefile will compile the hets system and provides also
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# targets for test programs during implementation phases.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# !!! Note: This makefile is written for GNU make !!!
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# (gmake on solaris)
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# variables that control the compilation
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# deprecated since we have haifa_pkg
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# deprecated since haddock 2
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai CspCASL ATC Proofs Comorphisms Isabelle Driver Modifications \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai Taxonomy CASL_DL SoftFOL OWL OMDoc PGIP Propositional RelationalScheme \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# the 'replacing spaces' example was taken from the (GNU) Make info manual
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# list glade files
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# the list of logics that need ShATermConvertible instances
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllailogics = CASL HasCASL Isabelle Modal Temporal CoCASL COL CspCASL CASL_DL \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai SoftFOL ConstraintCASL Propositional OWL RelationalScheme VSE OMDoc DFOL
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai Common/ATerm/ATermDiffMain.hs Common/annos.hs Common/test_parser.hs \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai SoftFOL/tests/soapTest.hs Comorphisms/test/sublogicGraph.hs \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai### list of directories to run checks in
(cd ../programatica/tools; \
$@.hs -o $@
$(RM) $@
$(APPENDPRELUDESTRING) < $< > $@
#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
# 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 $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -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