Makefile revision 74ed33551361b268c9dec050abd9af0da6db482b
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl# This Makefile will compile the new hets system and provides also
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl# targets for test programs during implementation phases.
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl# !!! Note: This makefile is written for GNU make !!!
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl# (gmake on solaris)
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl####################################################################
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl## Some varibles, which control the compilation
d611dadcc74db10ba533ee6859308f5fc505aee1Michael BieblHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
a72d698d0d9ff9c158155b44cdc77376df31a317Dave Reisner utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl CspCASL ATC Proofs Comorphisms Isabelle Driver Modifications \
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl Taxonomy CASL_DL SoftFOL OWL OMDoc PGIP Propositional
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl# the 'replacing spaces' example was taken from the (GNU) Make info manual
d611dadcc74db10ba533ee6859308f5fc505aee1Michael BieblDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl# override on commandline for other architectures
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
d611dadcc74db10ba533ee6859308f5fc505aee1Michael BieblGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
d611dadcc74db10ba533ee6859308f5fc505aee1Michael BieblGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
d611dadcc74db10ba533ee6859308f5fc505aee1Michael BieblINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
d611dadcc74db10ba533ee6859308f5fc505aee1Michael BieblGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
3ce09b7da2eb8b888066468663b2b5c81a05a03cZbigniew Jędrzejewski-SzmekINLINEAXIOMS = utils/outlineAxioms
d611dadcc74db10ba533ee6859308f5fc505aee1Michael BieblSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl ../$(SETUP) configure -p $(SETUPPREFIX) --user; \
d611dadcc74db10ba533ee6859308f5fc505aee1Michael Biebl ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
d611dadcc74db10ba533ee6859308f5fc505aee1Michael BieblHAXMLVERSION = $(shell $(HCPKG) field HaXml version)
(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 $@ $<
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) $@
@if [ -d $(INSTALLER_DIR) ] ; then \
sed "s/^\(SPASS_DIR_MAC=\).*/\1`ls utils/SPASS-ppc-mac/ | grep SPASS`/" Makefile.inst > Makefile.inst2 ;\
@echo Please do