rules revision 58b96b17bf8e32c0b0d773380a5e62f992eef2bc
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# This Makefile will compile the hets system and provides also
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# targets for test programs during implementation phases.
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# !!! Note: This makefile is written for GNU make !!!
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# (gmake on solaris)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# the 'replacing spaces' example was taken from the (GNU) Make info manual
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckspace = $(empty) $(empty)
f71f7a61dec7c9089378d14493ad564a1dedf0b5neil_a_wilsonDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckDRIFT_deps = utils/DrIFT-src/*hs
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckHADDOCK = haddock
c6f28c478a1e598e638f35d0577c4442114a19f4matthewifneq ($(strip $(HAXML_PACKAGE_COMPAT)),)
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftifneq ($(strip $(HAXML_PACKAGE)),)
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftderived_sources += Isabelle/IsaExport.hs
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftDTD2HS_deps = $(DTD2HS_src)*.hs
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift# list glade files
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftderived_sources += $(GTK_GLADE_HSFILES)
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift# the list of logics that need ShATermConvertible instances
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftlogics = CASL HasCASL Isabelle Modal Temporal CoCASL COL CspCASL CASL_DL \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift SoftFOL ConstraintCASL Propositional RelationalScheme VSE OMDoc DFOL \
b12d1a3006b98a0197412cddecbe2be3c180b702ludovicp LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl THF \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift FreeCAD OWL2 RDF
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift Common/ATerm/ATermDiffMain.hs Common/annos.hs \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift### list of directories to run checks in
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftTESTDIRS += Common CASL Fpl/test HasCASL test ExtModal/Tries \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swifths_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckPFE_TOOLDIR = $(wildcard programatica/tools)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckifneq ($(strip $(PFE_TOOLDIR)),)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck base/transforms base/transforms/Deriving property \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck property/TI property/defs property/parse2 property/parse2/Parser
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbecklogics += Haskell
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckderived_sources += Haskell/PreludeString.hs
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck## rule for appendHaskellPreludeString
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck $(APPENDPRELUDESTRING)
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck $(APPENDPRELUDESTRING) < $< > $@
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck chmod 444 $@
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck HsModule HsName HsLiteral HsIdent
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckHaskell_files = $(addsuffix .hs, \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck## rule for ATC generation
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
c6f28c478a1e598e638f35d0577c4442114a19f4matthewhs_der_files += $(hs_clean_files)
c6f28c478a1e598e638f35d0577c4442114a19f4matthewifneq ($(strip $(PFE_FLAGS)),)
c6f28c478a1e598e638f35d0577c4442114a19f4matthewTESTDIRS += ToHaskell
c6f28c478a1e598e638f35d0577c4442114a19f4matthewTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
c6f28c478a1e598e638f35d0577c4442114a19f4matthew# unset this variable from var.mk because the programatica sources
c6f28c478a1e598e638f35d0577c4442114a19f4matthew# are needed to created our sources!
c6f28c478a1e598e638f35d0577c4442114a19f4matthew# end of programatica stuff
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckTESTTARGETS = $(subst .hs,,$(TESTTARGETFILES))
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckGHCVERSION = $(shell ghc --numeric-version)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckifneq ($(findstring 12, $(GHCVERSION)),)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckNO_BIND_WARNING = -fno-warn-unused-do-bind
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckifneq ($(findstring 7, $(GHCVERSION)),)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckNO_BIND_WARNING = -fno-warn-unused-do-bind
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckHC_WARN = -Wall -fwarn-tabs \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck -fwarn-unrecognised-pragmas -fno-warn-orphans $(NO_BIND_WARNING)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# uncomment HC_PROF for profiling (and comment out packages in var.mk)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# call resulting binary with a final +RTS -p to get a file <binary>.prof
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckifneq ($(findstring -O, $(CFLAGS)),)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckHC_DEBIAN_OPT=-O
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckHC_OPTS += $(HC_WARN) $(HC_PROF) $(HC_DEBIAN_OPT)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# -ddump-minimal-imports
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# uncomment the above line to generate .imports files for displayDependencyGraph
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# files generated by DriFT
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckdrifted_files = Common/AS_Annotation.hs \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(gendrifted_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# files to extract data types from to generate ShATermConvertible instances
c6f28c478a1e598e638f35d0577c4442114a19f4matthewatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck Static/DgUtils.hs Static/XGraph.hs Static/DevGraph.hs \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck# files generated by genRules as input for DriFT
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckatc_der_files = $(foreach file, $(atc_files), \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck ATC/$(basename $(basename $(notdir $(file)))).der.hs)
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck# the rules to create ATC .der.hs file for DriFT
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck $(GENRULECALL) -o $@ $<
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck $(GENRULECALL) -i ATC.Id -o $@ $<
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck $(GENRULECALL) -i ATC.Id -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
02dfa37c68e25bff17fa958b0773b88262bb1380jarnou $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL2) -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
a6af117714c0060d06c33183058bd282c2d62ce0jdemendi $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -x Logic.Prover.ProverTemplate \
269ec75864a4bff5d8c3641a65002b206931860bneil_a_wilson -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
269ec75864a4bff5d8c3641a65002b206931860bneil_a_wilson $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL2) -i ATC.DgUtils -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL2) -i ATC.XGraph -i ATC.AS_Library -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# ATC files for every logic
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckIsabelle_files = Isabelle/IsaSign.hs
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeckHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
f45e6ccdc4191af2ee6720f1abe5f752a26381admatthewTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
69f2e6de8a6fa0632291d84eae981b5534da80ffneil_a_wilsonCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
69f2e6de8a6fa0632291d84eae981b5534da80ffneil_a_wilsonCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
69f2e6de8a6fa0632291d84eae981b5534da80ffneil_a_wilson CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckSoftFOL_files = SoftFOL/Sign.hs
660a09c9e397439fff75dea86f55c704ad0a186eneil_a_wilsonDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
660a09c9e397439fff75dea86f55c704ad0a186eneil_a_wilsonFramework_files = Framework/AS.hs
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeckMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck CommonLogic/Symbol.hs CommonLogic/Morphism.hs CommonLogic/Sublogic.hs
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckTHF_files = THF/As.hs THF/Cons.hs THF/Sign.hs THF/Sublogic.hs
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckFreeCAD_files = FreeCAD/As.hs
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckOWL2_files = OWL2/AS.hs OWL2/Symbols.hs OWL2/Sign.hs OWL2/MS.hs \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck OWL2/Morphism.hs OWL2/ProfilesAndSublogics.hs OWL2/Sublogic.hs \
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckRDF_files = RDF/AS.hs OWL2/AS.hs RDF/Symbols.hs RDF/Sign.hs RDF/Morphism.hs \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# ATC DrIFT-rule generation for logics
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swiftCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
660a09c9e397439fff75dea86f55c704ad0a186eneil_a_wilson $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
660a09c9e397439fff75dea86f55c704ad0a186eneil_a_wilsonRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
660a09c9e397439fff75dea86f55c704ad0a186eneil_a_wilson $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
660a09c9e397439fff75dea86f55c704ad0a186eneil_a_wilsonPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckQBF/ATC_QBF.der.hs: $(QBF_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
db176da1ad2d1c3ac1920edd8cd4d081fdbbd262neil_a_wilsonIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
db176da1ad2d1c3ac1920edd8cd4d081fdbbd262neil_a_wilson $(GENRULECALL) -o $@ $(Isabelle_files)
db176da1ad2d1c3ac1920edd8cd4d081fdbbd262neil_a_wilsonModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
db176da1ad2d1c3ac1920edd8cd4d081fdbbd262neil_a_wilson $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
269ec75864a4bff5d8c3641a65002b206931860bneil_a_wilson $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.IRI -o $@ $(OMDoc_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckLF/ATC_LF.der.hs: $(LF_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckCSL/ATC_CSL.der.hs: $(CSL_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckAdl/ATC_Adl.der.hs: $(Adl_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckFpl/ATC_Fpl.der.hs: $(Fpl_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckTHF/ATC_THF.der.hs: $(THF_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.Id -i ATC.GlobalAnnotations -o $@ $(THF_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckFreeCAD/ATC_FreeCAD.der.hs: $(FreeCAD_files) $(GENRULES)
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(FreeCAD_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckOWL2/ATC_OWL2.der.hs: $(OWL2_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.Result -o $@ $(OWL2_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckRDF/ATC_RDF.der.hs: $(RDF_files) $(GENRULES)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(GENRULECALL) -i ATC.Result -o $@ $(RDF_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# all ATC .der.hs files for all logics
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeckgenerated_rule_files = $(atc_der_files) $(atc_logic_files)
00d13e168078d9232df3f4f42a2151abb1cab541matthew_swift# a rule to create all .der.hs files
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckgenRules: $(generated_rule_files)
00d13e168078d9232df3f4f42a2151abb1cab541matthew_swift# the final ATC target files created by DriFT
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckgendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# all sources that need to be created before ghc can be called
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckderived_sources += $(drifted_files) Driver/Version.hs $(hs_der_files)
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck####################################################################
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck real_clean bin_clean distclean annos checkversion \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck check capa hacapa h2h h2hf showKP clean_genRules genRules \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck count doc fromKif derivedSources release cgi ghci build callghc
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck.SECONDARY : %.hs %.d $(generated_rule_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# dummy target to force ghc invocation
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(MAKE) distclean
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(MAKE) derivedSources
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(MAKE) clean
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(MAKE) hets-optimized
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckhets-optimized: $(derived_sources)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(HC) --make -O -o hets hets.hs $(HC_OPTS)
287953f843fe7cf4393f51ef0f099e7fb5627f12matthew_swift $(MAKE) distclean
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(MAKE) derivedSources
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck $(MAKE) clean
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# Documentation via haddock
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckHADDOCK_INTERFACES = $(shell find `ghc --print-libdir`/../.. -name \*.haddock)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckHAD_INTS = $(foreach file, $(HADDOCK_INTERFACES),\
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck -i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckHADDOCK_OPTS = $(addprefix --optghc=, $(HC_OPTS))
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(RM) -r docs
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift $(HADDOCK) -o docs -h -s ../%F $(HAD_INTS) \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck -t 'Hets - the Heterogeneous Tool Set' \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(filter-out Scratch.hs, $(wildcard *.hs))
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckderivedSources: $(derived_sources)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck$(DRIFT): $(DRIFT_deps)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck$(DTD2HS): $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell.hs
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck cp -f $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(HC) --make -iutils/DtdToHaskell-src \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck utils/DtdToHaskell-src/DtdToHaskell.hs -o $@ $(HC_OPTS)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckIsabelle/IsaExport.hs: $(DTD2HS) Isabelle/IsaExport.dtd
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck ($(DTD2HS) Isabelle/IsaExport.dtd Isabelle/IsaExport.hs Isabelle.)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck$(GENRULES): $(DRIFT) $(GENERATERULES_deps)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck GenerateRules.hs -o ../genRules)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(HC) --make -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# release management
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(RM) -r Hets
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck cp Makefile Makefile.orig; \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck cp ReleaseMakefile Makefile; \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(TAR) cvf Hets.tar Hets
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckutils/genItCorrections: $(GENITCORRECTIONS_deps)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(HC) --make -o $@ $<
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
00d13e168078d9232df3f4f42a2151abb1cab541matthew_swift pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
00d13e168078d9232df3f4f42a2151abb1cab541matthew_swift @echo -n "Generating pretty/LaTeX_maps.hs ... "
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
00d13e168078d9232df3f4f42a2151abb1cab541matthew_swift @(cd pretty >/dev/null; ../utils/genItCorrections \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck gen_it_characters gen_it_words >> LaTeX_maps.hs)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck @echo "ready"
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck @echo "please copy the file manually to Common"
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### clean up
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckclean_genRules:
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(RM) $(generated_rule_files) $(gendrifted_files) \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(hs_clean_files)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckclean: bin_clean o_clean clean_pretty clean_javastuff
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### removes all *.o, *.hi and *.p_o files in all subdirectories
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck find . -name \*.o -o -name \*.hi -o -name \*.p_o \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck -o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### remove binaries
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(RM) $(TESTTARGETS)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckclean_pretty:
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(RM) test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty}
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(RM) test/*/log
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(RM) ToHaskell/test/*.{out,output}
991c5eaea7ef914acc33ee0ed6c906da5f8ddc1bcoulbeck $(RM) doc/UserGuide.{log,aux,bbl,blg,out,pdf}
00d13e168078d9232df3f4f42a2151abb1cab541matthew_swiftclean_javastuff:
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(RM) OWL2/*.jar OWL2/java/lib/*.jar
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### additionally removes the library files
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckreal_clean: clean
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### additionally removes generated files not in the repository tree
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckdistclean: clean clean_genRules
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(RM) $(derived_sources)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(RM) $(DTD2HS)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(RM) -r docs
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### interactive
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckghci: $(derived_sources)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck ghci $(HC_OPTS)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### build only, don't link
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift $(HC) --make -c $< $(HC_OPTS)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### Kif parser
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### Annos parser
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### CASL parser
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### HasCASL parser
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### Haskell analysis
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### Haskell to Isabelle-HOLCF translation
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift Common/Lib/*.hs Comorphisms/*.hs
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(HC) -O --make -o $@ $< $(HC_OPTS)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### HasCASL to Haskell translation
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck### test program to check the known provers
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck### run tests in other directories
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckcheck: $(TESTTARGETS)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck## Preparing the version of Hets
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckDriver/Version.hs: Driver/Version.in version_nr checkversion
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck echo " ++ \"$(shell cat version_nr), $(shell date +"%d %b %Y")\"" >> $@
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck chmod 444 $@
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck## two dependencies to avoid circular prerequisites
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck Common/annos Common/test_parser Comorphisms/test/showKP \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck$(CASL_DEPENDENT_BINARIES): $(derived_sources)
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck## suffix rules
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck## rule for GHC
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck%: %.hs callghc
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck $(HC) --make -o $@ $< $(HC_OPTS)
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift## rule for DrIFT
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck%.hs: %.der.hs $(DRIFT)
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck chmod 444 $@
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck## compiling rules for object and interface files
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck%.o %.hi: %.hs
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck $(HC) -c $< $(HC_OPTS)
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck%.o %.hi: %.lhs
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(HC) -c $< $(HC_OPTS)
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck## compiling rules for dependencies
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck## Rule to generate hs files from glade files. Needed for GTK
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck b=`basename $< .glade`; \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# directory for installers
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckINSTALLER_DIR = ../installers
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckifeq ($(strip $(HETS_VERSION)),)
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckHETS_VERSION := `cat version_nr`
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# or `date +%F`
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# prepare installer creation
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeckinitialize_installer:
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck mkdir -p $(INSTALLER_DIR)
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck > $(INSTALLER_DIR)/Makefile
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck @echo Please do
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck @echo " -> cd $(INSTALLER_DIR)"
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck @echo " -> make"
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck @echo and wait until it is finished
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# check out java parts for OWL
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck svn export \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck https://owlapi.svn.sourceforge.net/svnroot/owlapi/v3/trunk \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeckinitialize_java: owl_java
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck ant -q init
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck ant -q java-libs
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck ant -q java-files
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck ant -q java-clean
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck# download dependencies for RDF Jena-api
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck if [ -f RDF/java/lib/arq-2.8.7.jar ]; then \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck echo "File arq-2.8.7.jar already exists"; \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck curl -o RDF/java/lib/arq-2.8.7.jar http://repo1.maven.org/maven2/com/hp/hpl/jena/arq/2.8.7/arq-2.8.7.jar; \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck if [ -f RDF/java/lib/icu4j-3.4.4.jar ]; then \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck echo "File icu4j-3.4.4.jar already exists"; \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift curl -o RDF/java/lib/icu4j-3.4.4.jar http://repo1.maven.org/maven2/com/ibm/icu/icu4j/3.4.4/icu4j-3.4.4.jar; \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck if [ -f RDF/java/lib/iri-0.8.jar ]; then \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck echo "File iri-0.8.jar already exists"; \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck curl -o RDF/java/lib/iri-0.8.jar http://repo1.maven.org/maven2/com/hp/hpl/jena/iri/0.8/iri-0.8.jar; \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck if [ -f RDF/java/lib/jena-2.6.4.jar ]; then \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck echo "File jena-2.6.4.jar already exists"; \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck curl -o RDF/java/lib/jena-2.6.4.jar http://repo1.maven.org/maven2/com/hp/hpl/jena/jena/2.6.4/jena-2.6.4.jar; \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck if [ -f RDF/java/lib/junit-4.5.jar ]; then \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck echo "File junit-4.5.jar already exists"; \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck curl -o RDF/java/lib/junit-4.5.jar http://repo1.maven.org/maven2/junit/junit/4.5/junit-4.5.jar; \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck echo "File log4j-1.2.13.jar already exists"; \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck curl -o RDF/java/lib/log4j-1.2.13.jar http://repo1.maven.org/maven2/log4j/log4j/1.2.13/log4j-1.2.13.jar; \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck if [ -f RDF/java/lib/lucene-core-2.3.1.jar ]; then \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck echo "File lucene-core-2.3.1.jar already exists"; \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift curl -o RDF/java/lib/lucene-core-2.3.1.jar http://repo1.maven.org/maven2/org/apache/lucene/lucene-core/2.3.1/lucene-core-2.3.1.jar; \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck echo "File slf4j-api-1.5.8.jar already exists"; \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck curl -o RDF/java/lib/slf4j-api-1.5.8.jar http://repo2.maven.org/maven2/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.jar; \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck if [ -f RDF/java/lib/slf4j-log4j12-1.5.8.jar ]; then \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck echo "File slf4j-log4j12-1.5.8.jar already exists"; \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck curl -o RDF/java/lib/slf4j-log4j12-1.5.8.jar http://repo2.maven.org/maven2/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8.jar; \
fea47427cf5a3b2242a7a78d0b376788b231e47acoulbeck echo "File stax-api-1.0.1.jar already exists"; \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck curl -o RDF/java/lib/stax-api-1.0.1.jar http://dist.codehaus.org/stax/jars/stax-api-1.0.1.jar; \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck echo "File wstx-asl-3.2.9.jar already exists"; \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck curl -o RDF/java/lib/wstx-asl-3.2.9.jar http://repo1.maven.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.9/wstx-asl-3.2.9.jar; \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift if [ -f RDF/java/lib/xercesImpl-2.7.1.jar ]; then \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck echo "File xercesImpl-2.7.1.jar already exists"; \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck curl -o RDF/java/lib/xercesImpl-2.7.1.jar http://mirrors.ibiblio.org/pub/mirrors/maven2/xerces/xercesImpl/2.7.1/xercesImpl-2.7.1.jar; \
a3786999e7f703d40365d2022c55e03a57bc4ab3coulbeck# download rdf4h, unpack and install