Makefile revision 09d6f5d326545acfea43d3ffe1493c2176366475
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# This Makefile will compile the new hets system and provides also
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# targets for test programs during implementation phases.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# !!! Note: This makefile is written for GNU make !!!
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# (gmake on solaris)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington####################################################################
6ec499054450c5e0fd69d78961deef46985ba363Brian Wellington## Some varibles, which control the compilation
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
6ec499054450c5e0fd69d78961deef46985ba363Brian Wellington utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington CspCASL ATC Proofs Comorphisms Isabelle Driver Modifications \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Taxonomy CASL_DL SoftFOL OWL OMDoc PGIP Propositional RelationalScheme \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# the 'replacing spaces' example was taken from the (GNU) Make info manual
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# override on commandline for other architectures
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian WellingtonINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ../$(SETUP) configure -p $(SETUPPREFIX) --user; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonHAXMLVERSION = $(shell $(HCPKG) field HaXml version)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonifneq ($(findstring 1.13., $(HAXMLVERSION)),)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonHAXML_PACKAGE = -package HaXml -DHAXML_PACKAGE
622df0afb82c1b711b5f3c272db4c4b83d09bc4aBob Halley# remove -fno-warn-orphans for older ghcs and add -ifgl
622df0afb82c1b711b5f3c272db4c4b83d09bc4aBob HalleyHC_FLAGS = $(HC_WARN) -fglasgow-exts -fallow-overlapping-instances
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# -ddump-minimal-imports
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# uncomment to above line to generate .imports files for displayDependencyGraph
622df0afb82c1b711b5f3c272db4c4b83d09bc4aBob Halleylogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SoftFOL \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ConstraintCASL Propositional OWL DL RelationalScheme
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Common/ATerm/ATermDiffMain.hs Common/annos.hs Common/test_parser.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington SoftFOL/tests/soapTest.hs Comorphisms/test/sublogicGraph.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
6ec499054450c5e0fd69d78961deef46985ba363Brian Wellington# some modules from uni for haddock
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# if uni/server is included also HaXml sources are needed
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonuni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ../uni/reactor ../uni/util ../uni/posixutil
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Taxonomy/taxonomyTool.hs SoftFOL/tests/CMDL_tests.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### list of directories to run checks in
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonPFE_TOOLDIR = $(wildcard ../programatica/tools)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington base/transforms base/transforms/Deriving property \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington property/syntax property/AST property/transforms \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington property/TI property/defs property/parse2 property/parse2/Parser
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonPFE_FLAGS = -package programatica -DPROGRAMATICA
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonprogramatica_pkg: $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @if $(HCPKG) field programatica version; then \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo "of programatica package found"; else \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington -i `pwd`/Haskell/Programatica.patch || exit 0); \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington cp -f utils/programatica.cabal ../programatica/tools; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington$(LEX_DIR)/HsLex.hs: $(LEX_DIR)Gen/HsLexerGen
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo "{-# OPTIONS -w #-}" > $@
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(HC) --make -fno-monomorphism-restriction -O \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonderived_sources += Haskell/PreludeString.hs $(LEX_DIR)/HsLex.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## rule for appendHaskellPreludeString
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington base/parse2/SourceNames base/syntax/SyntaxRec \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## rule for ATC generation
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonTESTTARGETS = Test.o $(subst .hs,,$(TESTTARGETFILES))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### Profiling (only for debugging)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### Attention every module must be compiled with profiling or the linker
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### cannot link the various .o files properly. So after switching on
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### Profiling, do an 'gmake real_clean; gmake'
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### Comment in the following line for switching on profiling.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonHC_OPTS = $(HC_FLAGS) $(HC_INCLUDE) $(HC_PROF) $(HAXML_PACKAGE) $(HC_PACKAGE) \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington####################################################################
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## sources for hets
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonnon_sources = Common/LaTeX_maps.svmono.hs Common/CaslLanguage.hs ./Test.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonsources = hets.hs $(filter-out $(non_sources), \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(wildcard $(addsuffix /[A-Z]*hs, $(SOURCE_PATHS))))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington CoCASL/AS_CoCASL.hs COL/AS_COL.hs ConstraintCASL/AS_ConstraintCASL.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Logic/Prover.hs Common/ExtSign.hs Static/DevGraph.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonatc_der_files = $(foreach file, $(atc_files), \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ATC/$(basename $(basename $(notdir $(file)))).der.hs)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/Result.der.hs: Common/Result.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Grothendieck -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Structured -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Architecture -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Annotation -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -x Logic.Prover.ProverTemplate \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Library -i ATC.Grothendieck -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtongenerated_rule_files = $(atc_der_files) $(atc_logic_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtongendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninline_axiom_files = Comorphisms/CASL2PCFOL.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Comorphisms/Modal2CASL.hs Comorphisms/CASL2TopSort.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Comorphisms/CASL2SubCFOL.hs CASL_DL/PredefinedSign.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtongen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonderived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# sources that have {-# OPTIONS -cpp #-}
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington CASL/Logic_CASL.hs Isabelle/CreateTheories.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington SoftFOL/Logic_SoftFOL.hs GUI/Utils.hs Driver/WriteFn.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Comorphisms/LogicList.hs Comorphisms/LogicGraph.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Comorphisms/KnownProvers.hs hets.hs $(happy_files) \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# unused, remove when header files are gone
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtongenrule_header_files = $(wildcard ATC/*.header.hs)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonnondoc_sources = $(wildcard utils/DrIFT-src/*.hs) \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(cpp_sources) $(pfe_sources) $(gen_inline_axiom_files) \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(genrule_header_files) $(generated_rule_files) \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hspp \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Haskell/PreludeString.append.hs Haskell/ProgramaticaPrelude.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(patsubst %.hs, %.der.hs, $(drifted_files))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonhspp_sources = $(patsubst %.hs, %.hspp, $(cpp_sources))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# this variable holds the modules that should be documented
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtondoc_sources = $(filter-out $(nondoc_sources), $(sources) $(hspp_sources))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtontax_sources = Taxonomy/AbstractGraphView.hs Taxonomy/MMiSSOntology.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Taxonomy/MMiSSOntologyGraph.hs Taxonomy/OntoParser.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtontax_objects = $(patsubst %.hs, %.o, $(tax_sources))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington####################################################################
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington real_clean bin_clean package_clean distclean packages \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington http_pkg syb_pkg shellac_pkg shread_pkg shcompat_pkg \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington hxt_pkg haifa_pkg programatica_pkg maintainer-clean annos \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington check capa hacapa h2h h2hf showKP clean_genRules genRules \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington count doc apache_doc post_doc4apache fromKif \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington derivedSources install_hets install release cgi ghci
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonpackages: http_pkg syb_pkg shellac_pkg shread_pkg shcompat_pkg \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo "of HTTP package found"; else \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @if $(HCPKG) field syb-generics version; then \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo "of syb-generics package found"; else \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo "of Shellac package found"; else \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonshread_pkg: utils/shread.tgz $(SETUP) shellac_pkg
754768580f991d35f5346a9fdb14e45d46648692Brian Wellington @if $(HCPKG) field Shellac-readline version; then \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo "of Shellac-readline package found"; else \
754768580f991d35f5346a9fdb14e45d46648692Brian Wellingtonshcompat_pkg: utils/shcompat.tgz $(SETUP) shread_pkg
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @if $(HCPKG) field Shellac-compatline version; then \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo "of Shellac-compatline package found"; else \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo "of hxt package found"; else \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo "of HAIFA package found"; else \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @echo 'File : Maintainer' > $@
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @echo " done"
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington###############################
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### count lines of code
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington###############################
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### Documentation via haddock
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# generate haddock documentation with links to sources
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# the interface treatment is stolen from uni/mk/suffix.mk
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington cp -r -L ../uni/www docs/www || mkdir docs/www
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington HINTERFACES0=`find -L docs/www -name '*.haddock' \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(HADDOCK) -o docs -h -v -s ../%F $$HINTERFACES \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington -t 'Hets - the Heterogeneous Tool Set' \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington -p Hets-Haddock-Prologue.txt $(doc_sources)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# sources are not copied here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(PERL) utils/post_process_docs.pl a-docs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(PERL) utils/post_process_docs.pl a-docs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington###############################
fa342c624a5e7df0d10ef34586f8cfffbcd92c69Brian Wellington### release management
fa342c624a5e7df0d10ef34586f8cfffbcd92c69Brian WellingtonderivedSources: $(derived_sources) $(hspp_sources)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT && \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington GenerateRules.hs -o ../genRules && strip ../genRules)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# "-package hssource" for ghc-5.04.2
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(HC) --make utils/InlineAxioms/InlineAxioms.hs $(HC_WARN) $(HC_PROF) \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington if [ -d ../uni ] ; then ln -s ../uni uni ; fi
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington if [ -d ../programatica ] ; then \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ln -s ../../programatica/tools programatica/tools ; fi
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
73eb75dc212911e4da58a3ce0a4672d3910193ebBrian Wellington find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
73eb75dc212911e4da58a3ce0a4672d3910193ebBrian Wellington cp -p hets $(INSTALLDIR)/versions/hets-`cat version_nr`
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ln -s versions/hets-`cat version_nr` hets; $(RM) version_nr)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonpack/install-%.jar: pack/install-%.xml pack/UserInputSpec-%.xml hets.in hets
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ## TODO: add more dependencies and use hets-opt
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# compile $< -b . -k web -o $@
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington###################################
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonutils/genItCorrections: $(GENITCORRECTIONS_deps)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @echo -n "Generating pretty/LaTeX_maps.hs ... "
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @(cd pretty >/dev/null; ../utils/genItCorrections \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington gen_it_characters gen_it_words >> LaTeX_maps.hs)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @echo "ready"
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @echo "please copy the file manually to Common"
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#############################
8227257b1c0224a7991e04bb79dc5059d5062dfbAndreas Gustafsson### ATC DrIFT-rule generation
8227257b1c0224a7991e04bb79dc5059d5062dfbAndreas GustafssonCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
8227257b1c0224a7991e04bb79dc5059d5062dfbAndreas Gustafsson $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
6ec499054450c5e0fd69d78961deef46985ba363Brian Wellington $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(DL_files)
8227257b1c0224a7991e04bb79dc5059d5062dfbAndreas GustafssonRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
8227257b1c0224a7991e04bb79dc5059d5062dfbAndreas Gustafsson $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonOWL/ATC_OWL.der.hs: $(OWL_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i OWL.ReadWrite -o $@ $(OWL_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(RM) $(generated_rule_files) $(gendrifted_files) $(hspp_sources) \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington###############
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### removes all *.o, *.hi and *.p_o files in all subdirectories
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington find . -name \*.o -o -name \*.hi -o -name \*.p_o | xargs $(RM)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### remove binaries
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### additionally removes the library files
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### clean user packages
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(HCPKG) unregister programatica --user || exit 0
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(HCPKG) unregister Shellac-compatline --user || exit 0
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(HCPKG) unregister Shellac-readline --user || exit 0
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(HCPKG) unregister syb-generics --user || exit 0
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(HCPKG) unregister Shellac --user || exit 0
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### additionally removes generated files not in the CVS tree
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(RM) Modal/GeneratePatterns.inline.hs utils/appendHaskellPreludeString
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(RM) -r $(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington####################################################################
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### test targets
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington####################################################################
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### interactive
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### christian's target
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### CASL parser
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### Annos parser
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### CASL parser
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### HasCASL parser
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### Haskell analysis
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### Haskell to Isabelle-HOLCF translation
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(HC) -O --make -o $@ $< $(HC_FLAGS) $(PFE_FLAGS)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### HasCASL to Haskell translation
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### test program to check the known provers
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### run tests in other directories
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington####################################################################
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## Preparing the version of Hets
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonDriver/Version.hs: Driver/Version.in version_nr
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington LANG=C $(PERL) utils/build_version.pl version_nr \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## two hardcoded dependencies for a correct generation of Version.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## two dependencies for avoidence of circular prerequisites
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCASL_DEPENDENT_BINARIES= hets CASL/capa CASL/fromKif \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Common/annos Common/test_parser Comorphisms/test/showKP \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington$(CASL_DEPENDENT_BINARIES): $(sources) $(derived_sources)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# CASL_DL/Logic.hs: CASL_DL/PredefinedSign.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington####################################################################
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## rules for DrIFT
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo "{-# OPTIONS -w #-}" > $@
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## rules for inlineAxioms
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## rule for cpp and haddock
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington -DUNI_PACKAGE -DCASLEXTENSIONS -DPROGRAMATICA -optP -P $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## compiling rules for object and interface files
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## compiling rules for dependencies
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## generate the inline file for the predefined CASL_DL sign
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington CASL_DL/PredefinedSign.inline.hs.in utils/appendHaskellPreludeString \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington utils/appendHaskellPreludeString CASL_DL/PredDatatypes.het \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo " )" >> $@
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Warning: Don't change the order of the depencies!!
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCASL_DL/PredDatatypes.het: utils/transformLibAsBasicSpec.pl \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# uses intransparently utils/outlineAxioms
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# or `date +%F`
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @echo " -> make"