Makefile revision 6a2dad705deefd1b7a7e09b84fd2d75f2213be47
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# This Makefile will compile the hets system and provides also
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# targets for test programs during implementation phases.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# !!! Note: This makefile is written for GNU make !!!
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# (gmake on solaris)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# the 'replacing spaces' example was taken from the (GNU) Make info manual
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
c1fad183c9a0deeb49586645ec9baa8f3c1bc8beDaniel BeauregardGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
f885d00f4e3c96a769ce0228a732da31ad9d0b78Daniel Beauregard Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -i Data.Typeable -i ATerm.Lib -i ATC.Grothendieck
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ../$(SETUP) configure -O -p $(SETUPPREFIX) --user; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# list glade files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# the list of logics that need ShATermConvertible instances
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelogics = CASL HasCASL Isabelle Modal Temporal CoCASL COL CspCASL CASL_DL \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte SoftFOL ConstraintCASL Propositional OWL RelationalScheme VSE OMDoc DFOL \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### list of directories to run checks in
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortehs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte base/transforms base/transforms/Deriving property \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte property/syntax property/AST property/transforms \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte property/TI property/defs property/parse2 property/parse2/Parser
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortehappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteprogramatica_pkg: $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte echo "of programatica package found"; else \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -i `pwd`/Haskell/Programatica.patch || exit 0); \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte echo "{-# OPTIONS -w #-}" > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for appendHaskellPreludeString
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for ATC generation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# unset this variable from var.mk because the programatica sources
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# are needed to created our sources!
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# end of programatica stuff
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNO_BIND_WARNING = -fno-warn-unused-do-bind -fno-warn-warnings-deprecations
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHC_WARN = -Wall -fno-warn-orphans $(NO_BIND_WARNING)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# uncomment HC_PROF for profiling (and comment out packages in var.mk)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# call resulting binary with a final +RTS -p to get a file <binary>.prof
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHC_OPTS += $(HC_WARN) $(HC_INCLUDE) $(HC_PROF) $(HC_DEBIAN_OPT)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# -ddump-minimal-imports
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# uncomment the above line to generate .imports files for displayDependencyGraph
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# files generated by DriFT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# files to extract data types from to generate ShATermConvertible instances
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/Consistency.hs Common/ProofTree.hs Static/DevGraph.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# files generated by genRules as input for DriFT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ATC/$(basename $(basename $(notdir $(file)))).der.hs)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# the rules to create ATC .der.hs file for DriFT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
16dd44c265271a75647fb0bb41109bb7c585a526Daniel BeauregardATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
16dd44c265271a75647fb0bb41109bb7c585a526Daniel BeauregardATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# ATC files for every logic
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
f885d00f4e3c96a769ce0228a732da31ad9d0b78Daniel BeauregardCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
f885d00f4e3c96a769ce0228a732da31ad9d0b78Daniel BeauregardCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
f885d00f4e3c96a769ce0228a732da31ad9d0b78Daniel BeauregardCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOWL_files = OWL/Sign.hs OWL/Sublogic.hs OWL/Morphism.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# ATC DrIFT-rule generation for logics
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i OWL.ReadWrite -o $@ $(OWL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i OMDoc.ATerm -o $@ $(OMDoc_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# all ATC .der.hs files for all logics
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortegenerated_rule_files = $(atc_der_files) $(atc_logic_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# a rule to create all .der.hs files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# the final ATC target files created by DriFT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortegendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# files to be processed by utils/InlineAxioms
eb82ff87b34e625264561b2d267577cf9821dab0Daniel Beauregardinline_axiom_files = Comorphisms/Modal2CASL.hs CASL_DL/PredefinedSign.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortegen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# all sources that need to be created before ghc can be called
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortederived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte####################################################################
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte real_clean bin_clean package_clean distclean packages \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte programatica_pkg aterm_pkg maintainer-clean annos \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte check capa hacapa h2h h2hf showKP clean_genRules genRules \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte count doc fromKif derivedSources release cgi ghci build
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Documentation via haddock
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HADDOCK) --ignore-all-exports -o docs -h -s ../%F \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -t 'Hets - the Heterogeneous Tool Set' \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Syntax/ADoc.hs $(filter-out Test.hs, $(wildcard *.hs)) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# "-package hssource" for ghc-5.04.2
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) $(PARSEC_FLAG) --make utils/InlineAxioms/InlineAxioms.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# release management
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo -n "Generating pretty/LaTeX_maps.hs ... "
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @(cd pretty >/dev/null; ../utils/genItCorrections \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "ready"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "please copy the file manually to Common"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $(generated_rule_files) $(gendrifted_files) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### removes all *.o, *.hi and *.p_o files in all subdirectories
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte find . -name \*.o -o -name \*.hi -o -name \*.p_o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### remove binaries
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### additionally removes the library files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### clean user packages
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HCPKG) unregister programatica --user || exit 0
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### additionally removes generated files not in the CVS tree
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) Modal/GeneratePatterns.inline.hs utils/appendHaskellPreludeString
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) CASL_DL/PredefinedSign.inline.hs CASL_DL/PredDatatypes.het
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) -r $(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### interactive
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### build only, don't link
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### Kif parser
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### Annos parser
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### CASL parser
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### HasCASL parser
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### Haskell analysis
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### Haskell to Isabelle-HOLCF translation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### HasCASL to Haskell translation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### test program to check the known provers
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### run tests in other directories
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## Preparing the version of Hets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte LANG=C $(PERL) utils/build_version.pl version_nr \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## two hardcoded dependencies for a correct generation of Version.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## two dependencies to avoid circular prerequisites
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/annos Common/test_parser Comorphisms/test/showKP \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## suffix rules
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for GHC
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for HAPPY
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte echo "{-# OPTIONS -w #-}" > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for DrIFT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for inlineAxioms
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for cpp and haddock
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -DUNI_PACKAGE -DCASLEXTENSIONS -DPROGRAMATICA -optP -P $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## compiling rules for object and interface files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## compiling rules for dependencies
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## Rule to generate hs files from glade files. Needed for GTK
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## generate the inline file for the predefined CASL_DL sign
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CASL_DL/PredefinedSign.inline.hs.in utils/appendHaskellPreludeString \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte utils/appendHaskellPreludeString CASL_DL/PredDatatypes.het \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte echo " )" >> $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Warning: Don't change the order of the depencies!!
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCASL_DL/PredDatatypes.het: utils/transformLibAsBasicSpec.pl \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# uses intransparently utils/outlineAxioms
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# directory for installers
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or `date +%F`
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# prepare installer creation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo " -> make"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# check out java parts for OWL