Makefile revision df35538fec1d9135602308d577255c0d466b6365
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Year: 2004
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# This Makefile will compile the new hets system and provides also
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# targets for test programs during implementation phases.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# !!! Note: This makefile is written for GNU make !!!
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# (gmake on solaris)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl####################################################################
9512fe850e98fdd448c638ca63fdd92a8a510255ahl## Some varibles, which control the compilation
9512fe850e98fdd448c638ca63fdd92a8a510255ahlHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# the 'replacing spaces' example was taken from the (GNU) Make info manual
9512fe850e98fdd448c638ca63fdd92a8a510255ahl## set ghc imports properly for your system
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# import directories for ghc-5.04.2
9512fe850e98fdd448c638ca63fdd92a8a510255ahl DERIVEPATH=.:$(GHC_IMPORTS):$(GHC5):$(subst $(space),:,$(PFE_PATHS))
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# override on commandline for other architectures
INSTALLDIR = \
# flags also come in via ../uni/uni-package.conf
$@.hs -o $@
strip $@
$(RM) $@
$(APPENDPRELUDESTRING) < $< > $@
#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
$(wildcard syb-generics/Data/Generics2/*.hs) \
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(wildcard utils/GenerateRules/*.hs) \
$(wildcard utils/InlineAxioms/*.hs) \
$(RM) $@
cgi:
# "HetCATS/hetcats.TAGS"
@$(PERL) -e \
$(sources) >> $@
(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 \
-o $@ $(OWL_DL_files)
$(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) $@
@if [ -d $(INSTALLER_DIR) ] ; then \
echo Please do ;\