Makefile revision 5db0bfca8a3cd5d5f487ad70524bd6ec49fb439f
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# This Makefile will compile the new hets system and provides also
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# targets for test programs during implementation phases.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# !!! Note: This makefile is written for GNU make !!!
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# (gmake on solaris)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe####################################################################
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe## Some varibles, which control the compilation
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe CspCASL ATC Proofs Comorphisms Isabelle Driver Modifications \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe Taxonomy CASL_DL SoftFOL OWL OMDoc PGIP Propositional RelationalScheme \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# the 'replacing spaces' example was taken from the (GNU) Make info manual
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# override on commandline for other architectures
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
(cd ../programatica/tools; \
$@.hs -o $@
strip $@
$(RM) $@
$(APPENDPRELUDESTRING) < $< > $@
#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
cpp_sources = \
$(wildcard utils/GenerateRules/*.hs) \
$(wildcard utils/InlineAxioms/*.hs) \
$(RM) $@
cgi:
(cd utils/GenerateRules; \
GenerateRules.hs -o ../genRules && strip ../genRules)
-i../.. -o $(INLINEAXIOMS)
if [ -d ../programatica ] ; then \
./clean.sh; \
### Common/LaTeX_maps.hs generation
strip $@
@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