Makefile revision 986d3f255182539098a97ac86da9eeee5b7a72e3
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8Mark Washenberger# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen# This Makefile will compile the new hets system and provides also
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen# targets for test programs during implementation phases.
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen# !!! Note: This makefile is written for GNU make !!!
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen# (gmake on solaris)
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen####################################################################
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen## Some varibles, which control the compilation
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo SirainenHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen CspCASL ATC Proofs Comorphisms Isabelle Driver Modifications \
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen Taxonomy CASL_DL SoftFOL OWL OMDoc PGIP Propositional
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo Sirainen# the 'replacing spaces' example was taken from the (GNU) Make info manual
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo SirainenDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen# override on commandline for other architectures
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo SirainenGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo SirainenGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
b3c3d6f46f165cee9f9e80145b9ab5f636a81ba7Timo SirainenINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo SirainenGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo SirainenSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen ../$(SETUP) configure -p $(SETUPPREFIX) --user; \
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo SirainenHAXMLVERSION = $(shell $(HCPKG) field HaXml version)
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen# remove -fno-warn-orphans for older ghcs and add -ifgl
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen $(HC_WARN) -fglasgow-exts -fallow-overlapping-instances \
51ead2f4c04ee85615d23c453924633b9ed8a4c2Timo Sirainen# -ddump-minimal-imports
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# uncomment to above line to generate .imports files for displayDependencyGraph
(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 \
$(GENRULES)
-o $@ $(OWL11_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 \
sed "s/^\(SPASS_DIR_MAC=\).*/\1`ls utils/SPASS-ppc-mac/ | grep SPASS`/" Makefile.inst > Makefile.inst2 ;\
@echo Please do