Makefile revision b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbb
94ba4820927b906b333e39445c1508a29387c3aaTimo Sirainen# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
94ba4820927b906b333e39445c1508a29387c3aaTimo Sirainen# This Makefile will compile the new hets system and provides also
94ba4820927b906b333e39445c1508a29387c3aaTimo Sirainen# targets for test programs during implementation phases.
94ba4820927b906b333e39445c1508a29387c3aaTimo Sirainen# !!! Note: This makefile is written for GNU make !!!
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen# (gmake on solaris)
94ba4820927b906b333e39445c1508a29387c3aaTimo Sirainen####################################################################
5c2d695acf9f95ae0dcdda89c4d2391ceda4d672Timo Sirainen## Some varibles, which control the compilation
8732bdd21579472feb40da8ffc99b8fd3b341417Timo SirainenINCLUDE_PATH = hxt syb-generics haifa-lite/src hcl/src
8732bdd21579472feb40da8ffc99b8fd3b341417Timo SirainenHXT_PATHS = Data Data/Tree Data/Tree/NTree Data/Digest Text Text/XML \
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainen Text/XML/HXT Text/XML/HXT/IO Text/XML/HXT/DOM Text/XML/HXT/Arrow \
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainen Text/XML/HXT/XPath Text/XML/HXT/Validator Text/XML/HXT/Parser \
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainen Text/XML/HXT/RelaxNG Text/XML/HXT/ProtocolHandler Codec Codec/ASN1 \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Codec/Binary Codec/Encryption Codec/Encryption/RSA System Control \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainen Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen CspCASL ATC Proofs Comorphisms Isabelle Driver \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Taxonomy CASL_DL SPASS OWL_DL OMDoc $(PFE_PATHS) \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen hcl/src/Data syb-generics/Data syb-generics/Data/Generics2 \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen# the 'replacing spaces' example was taken from the (GNU) Make info manual
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen## set ghc imports properly for your system
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen# import directories for ghc-5.04.2
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenGHC5 = $(GHC_IMPORTS)/base:$(GHC_IMPORTS)/haskell98
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen DERIVEPATH=.:$(GHC_IMPORTS):$(GHC5):$(subst $(space),:,$(PFE_PATHS))
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen# override on commandline for other architectures
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs Common/Utils.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen# remove -fno-warn-orphans for older ghcs and add -ifgl
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen $(HC_WARN) -fglasgow-exts -fno-monomorphism-restriction \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen -fallow-overlapping-instances -fallow-undecidable-instances
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen# -ddump-minimal-imports
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen# flags also come in via ../uni/uni-package.conf
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen# but added it here in case of compilation without uni
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainenlogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SPASS \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Common/ATerm/ATermDiffMain.hs Common/annos.hs Common/test_parser.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen# some modules from uni for haddock
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen# if uni/server is included also HaXml sources are needed
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainenuni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainenuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenTESTTARGETFILES += OWL_DL/ToHaskellAS.hs Taxonomy/taxonomyTool.hs
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen### list of directories to run checks in
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenPFE_TOOLDIR = $(wildcard ../programatica/tools)
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen base/transforms base/transforms/Deriving property \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen property/syntax property/AST property/transforms \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen property/TI property/defs property/parse2 property/parse2/Parser
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainenpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenPFE_FLAGS = -package data -package text $(PFE_PATH) -DPROGRAMATICA
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainenhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen patch -usNlp0 -d $(PFE_TOOLDIR) -i `pwd`/$< || exit 0
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen echo "{-# OPTIONS -w #-}" > $@
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainenderived_sources += Haskell/PreludeString.hs $(LEX_DIR)/HsLex.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainenutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen## rule for appendHaskellPreludeString
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen base/parse2/SourceNames base/syntax/SyntaxRec \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen## rule for ATC generation
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainenhs_der_files += Haskell/TiATC.hs Haskell/TiDecorateATC.hs Haskell/TiPropATC.hs
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenTESTTARGETS = Test.o $(subst .hs,,$(TESTTARGETFILES))
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen### Profiling (only for debugging)
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen### Attention every module must be compiled with profiling or the linker
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen### cannot link the various .o files properly. So after switching on
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen### Profiling, do an 'gmake real_clean; gmake'
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen### Comment in the following line for switching on profiling.
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen#HC_PROF = -prof -auto-all -fignore-asserts
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenHC_OPTS = $(HC_FLAGS) $(HC_INCLUDE) $(HC_PACKAGE) $(PFE_FLAGS) $(HC_PROF) \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen####################################################################
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen## sources for hets
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainennon_sources = Common/LaTeX_maps.svmono.hs CspCASL/Main.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Common/CaslLanguage.hs ./Test.hs Static/LogicStructured.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen $(wildcard syb-generics/Data/Generics2/*.hs) \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen $(wildcard haifa-lite/src/Org/W3/N2001/*.hs) \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen $(wildcard haifa-lite/src/Org/Xmlsoap/Schemas/Soap/*.hs) \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainensources = hets.hs $(filter-out $(non_sources), \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen $(wildcard $(addsuffix /[A-Z]*hs, $(SOURCE_PATHS))))
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainendrifted_files = Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs Syntax/AS_Structured.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Modal/AS_Modal.hs CoCASL/AS_CoCASL.hs COL/AS_COL.hs CASL_DL/AS_CASL_DL.hs\
94ba4820927b906b333e39445c1508a29387c3aaTimo Sirainenatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
5c2d695acf9f95ae0dcdda89c4d2391ceda4d672Timo Sirainen Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
94ba4820927b906b333e39445c1508a29387c3aaTimo Sirainen Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
94ba4820927b906b333e39445c1508a29387c3aaTimo Sirainen Logic/Prover.hs #Common/Id.hs Common/Result.hs OWL_DL/AS.hs
5c2d695acf9f95ae0dcdda89c4d2391ceda4d672Timo Sirainenatc_der_files = $(foreach file, $(atc_files), \
5c2d695acf9f95ae0dcdda89c4d2391ceda4d672Timo Sirainen ATC/$(basename $(basename $(notdir $(file)))).der.hs)
94ba4820927b906b333e39445c1508a29387c3aaTimo SirainenATC/Result.der.hs: Common/Result.hs $(GENRULES)
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Grothendieck -o $@ $<
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen $(GENRULECALL) -i ATC.AS_Architecture -o $@ $<
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen $(GENRULECALL) -x ProverTemplate -i ATC.AS_Annotation -o $@ $<
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo SirainenModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
8732bdd21579472feb40da8ffc99b8fd3b341417Timo SirainenConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
8732bdd21579472feb40da8ffc99b8fd3b341417Timo SirainenCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
8732bdd21579472feb40da8ffc99b8fd3b341417Timo SirainenCspCASL_files = CspCASL/AS_CSP_CASL.hs CspCASL/SignCSP.hs
94ba4820927b906b333e39445c1508a29387c3aaTimo SirainenCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainenatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainengenerated_rule_files = $(atc_der_files) $(atc_logic_files)
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainengendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Siraineninline_axiom_files = Comorphisms/CASL2PCFOL.hs Comorphisms/PCFOL2CFOL.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Comorphisms/Modal2CASL.hs Comorphisms/CASL2TopSort.hs \
94ba4820927b906b333e39445c1508a29387c3aaTimo Sirainen Comorphisms/CASL2SubCFOL.hs CASL_DL/PredefinedSign.hs
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainengen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainenderived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files) \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen OWL_DL/ReadWrite.hs ConstraintCASL/AS_ConstraintCASL.hs
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen# sources that have {-# OPTIONS -cpp #-}
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Common/Lib/Set.hs Common/Lib/Map.hs ATC/Set.hs\
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen SPASS/Logic_SPASS.hs GUI/Utils.hs Driver/WriteFn.hs \
94ba4820927b906b333e39445c1508a29387c3aaTimo Sirainen Comorphisms/LogicList.hs Comorphisms/LogicGraph.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen Comorphisms/KnownProvers.hs hets.hs $(happy_files) \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen hxt/Text/XML/HXT/ProtocolHandler/ProtocolHandler.hs \
94ba4820927b906b333e39445c1508a29387c3aaTimo Sirainen# unused, remove when header files are gone
94ba4820927b906b333e39445c1508a29387c3aaTimo Sirainengenrule_header_files = $(wildcard ATC/*.header.hs)
94ba4820927b906b333e39445c1508a29387c3aaTimo Sirainennondoc_sources = $(wildcard utils/DrIFT-src/*.hs) \
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainen $(cpp_sources) $(pfe_sources) $(gen_inline_axiom_files) \
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainen $(genrule_header_files) $(generated_rule_files) \
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainen $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hspp \
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainen Haskell/PreludeString.append.hs Haskell/ProgramaticaPrelude.hs \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainenhspp_sources = $(patsubst %.hs, %.hspp, $(cpp_sources))
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainen# this variable holds the modules that should be documented
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainendoc_sources = $(filter-out $(nondoc_sources), $(sources) $(hspp_sources))
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainentax_sources = Taxonomy/AbstractGraphView.hs Taxonomy/MMiSSOntology.hs \
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainen Taxonomy/MMiSSOntologyGraph.hs Taxonomy/OntoParser.hs
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainentax_objects = $(patsubst %.hs, %.o, $(tax_sources))
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen####################################################################
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainen check capa hacapa h2h h2hf clean_genRules genRules \
8732bdd21579472feb40da8ffc99b8fd3b341417Timo Sirainen count doc apache_doc post_doc4apache fromKif \
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen derivedSources install_hets install release cgi patch ghci
cdf294e5cceee81d58c8477c7c28d9ad6b55c36aTimo Sirainen.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
# "HetCATS/hetcats.TAGS"
@$(PERL) -e \
$(sources) >> $@
(cd utils/GenerateRules; \
GenerateRules.hs -o ../genRules && strip ../genRules)
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
%.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) $@