Makefile revision 191d19822f8bb1baf216599aead47c278c165a2b
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# This Makefile will compile the hets system and provides also
ea206aebcafe1ed5d470dd99daab9a1cedc81c7cMark Andrews# targets for test programs during implementation phases.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# !!! Note: This makefile is written for GNU make !!!
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# (gmake on solaris)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# the 'replacing spaces' example was taken from the (GNU) Make info manual
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews -i Data.Typeable -i ATerm.Lib -i ATC.Grothendieck
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# list glade files
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# the list of logics that need ShATermConvertible instances
26a77b80bb7ee886c6fa704348d5e80a011d8811Mark Andrewslogics = CASL HasCASL Isabelle Modal Hybrid TopHybrid Temporal \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews SoftFOL ConstraintCASL Propositional RelationalScheme VSE OMDoc DFOL \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl THF \
eaccf5e805405de257b5a4840256c580fefe00e3Mark AndrewsTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews Common/ATerm/ATermDiffMain.hs Common/annos.hs \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson Common/testxupdate.hs Common/testxpath.hs \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson### list of directories to run checks in
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonTESTDIRS += Common CASL Fpl/test HasCASL test ExtModal/Tries \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonPFE_TOOLDIR = $(wildcard programatica/tools)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
c25080dc50542213058c240226c9f342186e6285Mark Andrews base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews base/transforms base/transforms/Deriving property \
413988c8166976498250c0ebb2e3a645d0366bd3Mark Andrews property/syntax property/AST property/transforms \
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews property/TI property/defs property/parse2 property/parse2/Parser
c25080dc50542213058c240226c9f342186e6285Mark AndrewsPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews## rule for appendHaskellPreludeString
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
642e0716c8b4ab82ebc8e60f94c9e897ee89f19aMark Andrews HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
c25080dc50542213058c240226c9f342186e6285Mark Andrews base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
413988c8166976498250c0ebb2e3a645d0366bd3Mark Andrews base/parse2/SourceNames base/syntax/SyntaxRec \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews## rule for ATC generation
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# unset this variable from var.mk because the programatica sources
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# are needed to created our sources!
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrews# end of programatica stuff
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews -fwarn-unrecognised-pragmas -fno-warn-orphans $(NO_BIND_WARNING)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# uncomment HC_PROF for profiling (and comment out packages in var.mk)
ea206aebcafe1ed5d470dd99daab9a1cedc81c7cMark Andrews# call resulting binary with a final +RTS -p to get a file <binary>.prof
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsHC_OPTS += $(HC_WARN) $(HC_PROF) $(HC_DEBIAN_OPT)
eaccf5e805405de257b5a4840256c580fefe00e3Mark Andrews# -ddump-minimal-imports
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# uncomment the above line to generate .imports files for displayDependencyGraph
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# files generated by DriFT
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs Hybrid/AS_Hybrid.hs TopHybrid/AS_TopHybrid.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# files to extract data types from to generate ShATermConvertible instances
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
e076d0c88be69de7c190ab924d095e69d2e11f7aAndreas Gustafsson Common/Consistency.hs Common/ProofTree.hs \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews Static/DgUtils.hs Static/XGraph.hs Static/DevGraph.hs \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# files generated by genRules as input for DriFT
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonatc_der_files = $(foreach file, $(atc_files), \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ATC/$(basename $(basename $(notdir $(file)))).der.hs)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# the rules to create ATC .der.hs file for DriFT
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -x Logic.Prover.ProverTemplate \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/DgUtils.der.hs: Static/DgUtils.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/XGraph.der.hs: Static/XGraph.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL2) -i ATC.XGraph -i ATC.AS_Library -o $@ $<
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# ATC files for every logic
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
eaccf5e805405de257b5a4840256c580fefe00e3Mark AndrewsPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsHybrid_files = Hybrid/AS_Hybrid.hs Hybrid/HybridSign.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonTopHybrid_files = TopHybrid/AS_TopHybrid.hs TopHybrid/TopHybridSign.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ExtModal/MorphismExtension.hs ExtModal/Sublogic.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington CommonLogic/Symbol.hs CommonLogic/Morphism.hs CommonLogic/Sublogic.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonTHF_files = THF/As.hs THF/Cons.hs THF/Sign.hs THF/Sublogic.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonOWL2_files = OWL2/AS.hs OWL2/Symbols.hs OWL2/Sign.hs OWL2/MS.hs \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington OWL2/Morphism.hs OWL2/ProfilesAndSublogics.hs OWL2/Sublogic.hs \
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsRDF_files = RDF/AS.hs OWL2/AS.hs RDF/Symbols.hs RDF/Sign.hs RDF/Morphism.hs \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# ATC DrIFT-rule generation for logics
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(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 WellingtonQBF/ATC_QBF.der.hs: $(QBF_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_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 WellingtonHybrid/ATC_Hybrid.der.hs: $(Hybrid_files) $(GENRULES)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Hybrid_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonTopHybrid/ATC_TopHybrid.der.hs: $(TopHybrid_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(TopHybrid_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.IRI -o $@ $(OMDoc_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCSL/ATC_CSL.der.hs: $(CSL_files) $(GENRULES)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
eaccf5e805405de257b5a4840256c580fefe00e3Mark Andrews $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
eaccf5e805405de257b5a4840256c580fefe00e3Mark Andrews $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonTHF/ATC_THF.der.hs: $(THF_files) $(GENRULES)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews $(GENRULECALL) -i ATC.Id -i ATC.GlobalAnnotations -o $@ $(THF_files)
eaccf5e805405de257b5a4840256c580fefe00e3Mark AndrewsFreeCAD/ATC_FreeCAD.der.hs: $(FreeCAD_files) $(GENRULES)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(FreeCAD_files)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews $(GENRULECALL) -i ATC.Result -o $@ $(OWL2_files)
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonRDF/ATC_RDF.der.hs: $(RDF_files) $(GENRULES)
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington $(GENRULECALL) -i ATC.Result -o $@ $(RDF_files)
83a810eba60ae87341a2d177ff60d834e26d7a90Mark AndrewsCSMOF/ATC_CSMOF.der.hs: $(CSMOF_files) $(GENRULES)
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(CSMOF_files)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#QVTR/ATC_QVTR.der.hs: $(QVTR_files) $(GENRULES)
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews# $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(QVTR_files)
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews# all ATC .der.hs files for all logics
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrewsatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrewsgenerated_rule_files = $(atc_der_files) $(atc_logic_files)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# a rule to create all .der.hs files
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# the final ATC target files created by DriFT
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrewsgendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# all sources that need to be created before ghc can be called
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrewsderived_sources += $(drifted_files) Driver/Version.hs $(hs_der_files)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews####################################################################
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
01bf5871f8861eb805dd8ca79bdb9b0b9e4e6a5eMark Andrews real_clean bin_clean distclean annos checkversion \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington check capa hacapa h2h h2hf showKP clean_genRules genRules \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews count doc fromKif derivedSources release cgi ghci build callghc
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# dummy target to force ghc invocation
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews# Documentation via haddock
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark AndrewsHADDOCK_INTERFACES = $(shell find `ghc --print-libdir`/../.. -name \*.haddock)
48b492d73ae5328c5efef4b9e0f22063e0ab058aMark AndrewsHAD_INTS = $(foreach file, $(HADDOCK_INTERFACES),\
48b492d73ae5328c5efef4b9e0f22063e0ab058aMark Andrews -i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsHADDOCK_OPTS = $(addprefix --optghc=, $(HC_OPTS))
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews -t 'Hets - the Heterogeneous Tool Set' \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews$(DTD2HS): $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell.hs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington mkdir -p utils/DtdToHaskell-src/DtdToHaskell
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews cp -f $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews utils/DtdToHaskell-src/DtdToHaskell.hs -o $@ $(HC_OPTS)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsIsabelle/IsaExport.hs: $(DTD2HS) Isabelle/IsaExport.dtd
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews ($(DTD2HS) Isabelle/IsaExport.dtd Isabelle/IsaExport.hs Isabelle.)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrewsutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# release management
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewsutils/genItCorrections: $(GENITCORRECTIONS_deps)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewspretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews @echo -n "Generating pretty/LaTeX_maps.hs ... "
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews @(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"
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews @echo "please copy the file manually to Common"
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews $(RM) $(generated_rule_files) $(gendrifted_files) \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewsclean: bin_clean o_clean clean_pretty clean_javastuff
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### removes all *.o, *.hi and *.p_o files in all subdirectories
7a6ad11e0185a73984410f3252f3c49c3a301dbdBrian Wellington find . -name \*.o -o -name \*.hi -o -name \*.p_o \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews -o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews### remove binaries
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(RM) test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty}
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews### additionally removes the library files
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews### additionally removes generated files not in the repository tree
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
e076d0c88be69de7c190ab924d095e69d2e11f7aAndreas Gustafsson### interactive
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews### build only, don't link
01bf5871f8861eb805dd8ca79bdb9b0b9e4e6a5eMark Andrews### Kif parser
01bf5871f8861eb805dd8ca79bdb9b0b9e4e6a5eMark Andrews### Annos parser
01bf5871f8861eb805dd8ca79bdb9b0b9e4e6a5eMark Andrews### CASL parser
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews### HasCASL parser
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews### Haskell analysis
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews### Haskell to Isabelle-HOLCF translation
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews### HasCASL to Haskell translation
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington### test program to check the known provers
49ef9cb60f37eb190986b750db57a194c8f7321cMark Andrews### run tests in other directories
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews## Preparing the version of Hets
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsDriver/Version.hs: Driver/Version.in version_nr rev.txt
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo " ++ \"$(shell cat version_nr), $(shell cat rev.txt)\"" >> $@
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews echo $(shell git log -1 --format=%ci) >> $@
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## two dependencies to avoid circular prerequisites
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews Common/annos Common/test_parser Comorphisms/test/showKP \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
53aed64e0f8553762fc0c380ee41cb42f514c7d5Brian Wellington Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
53aed64e0f8553762fc0c380ee41cb42f514c7d5Brian Wellington$(CASL_DEPENDENT_BINARIES): $(derived_sources)
53aed64e0f8553762fc0c380ee41cb42f514c7d5Brian Wellington## suffix rules
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews## rule for GHC
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews## rule for DrIFT
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews## compiling rules for object and interface files
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington## compiling rules for dependencies
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews## Rule to generate hs files from glade files. Needed for GTK
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews%.hs: %.glade utils/appendHaskellPreludeString \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# directory for installers
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# or `date +%F`
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# prepare installer creation
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews @echo " -> make"
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# check out java parts for OWL
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington https://github.com/owlcs/owlapi/tags/owlapi-parent-3.4.8 \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# download dependencies for RDF Jena-api
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo "File arq-2.8.7.jar already exists"; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington 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; \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews echo "File icu4j-3.4.4.jar already exists"; \
8227257b1c0224a7991e04bb79dc5059d5062dfbAndreas Gustafsson 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; \
8227257b1c0224a7991e04bb79dc5059d5062dfbAndreas Gustafsson echo "File iri-0.8.jar already exists"; \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews 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; \
8227257b1c0224a7991e04bb79dc5059d5062dfbAndreas Gustafsson echo "File jena-2.6.4.jar already exists"; \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews 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; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo "File junit-4.5.jar already exists"; \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews curl -o RDF/java/lib/junit-4.5.jar http://repo1.maven.org/maven2/junit/junit/4.5/junit-4.5.jar; \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews if [ -f RDF/java/lib/log4j-1.2.13.jar ]; then \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews echo "File log4j-1.2.13.jar already exists"; \
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews 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; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington if [ -f RDF/java/lib/lucene-core-2.3.1.jar ]; then \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews echo "File lucene-core-2.3.1.jar already exists"; \
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews 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; \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews if [ -f RDF/java/lib/slf4j-api-1.5.8.jar ]; then \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews echo "File slf4j-api-1.5.8.jar already exists"; \
99f467f016d9354c7548b7d24b65ac986b118a52Andreas Gustafsson 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; \
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews if [ -f RDF/java/lib/slf4j-log4j12-1.5.8.jar ]; then \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews echo "File slf4j-log4j12-1.5.8.jar already exists"; \
83a810eba60ae87341a2d177ff60d834e26d7a90Mark Andrews 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; \
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews if [ -f RDF/java/lib/stax-api-1.0.1.jar ]; then \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews echo "File stax-api-1.0.1.jar already exists"; \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews curl -o RDF/java/lib/stax-api-1.0.1.jar http://dist.codehaus.org/stax/jars/stax-api-1.0.1.jar; \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews if [ -f RDF/java/lib/wstx-asl-3.2.9.jar ]; then \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews echo "File wstx-asl-3.2.9.jar already exists"; \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews 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; \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews if [ -f RDF/java/lib/xercesImpl-2.7.1.jar ]; then \
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews echo "File xercesImpl-2.7.1.jar already exists"; \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews 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; \
832cebe0cbc843785897f1c124ae54958028c4e7Mark Andrews# download rdf4h, unpack and install
832cebe0cbc843785897f1c124ae54958028c4e7Mark Andrews cabal install http://protempore.net/rdf4h/rdf4h-0.6.1.tar.gz
832cebe0cbc843785897f1c124ae54958028c4e7Mark Andrews# DO NOT DELETE: Beginning of Haskell dependencies
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# DO NOT DELETE: End of Haskell dependencies