Makefile revision e420b3848a0e15a9e074b08c413996cbeb5ab06d
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# This Makefile will compile the hets system and provides also
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# targets for test programs during implementation phases.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# !!! Note: This makefile is written for GNU make !!!
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# (gmake on solaris)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till MossakowskiDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
3d905881cf97e122fb28ed5b9a9b0b220c85ec33Martin KühlGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
ce8b15da31cd181b7e90593cbbca98f47eda29d6Till MossakowskiGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder -i Data.Typeable -i ATerm.Lib -i ATC.Grothendieck
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederDTD2HS_src = utils/DtdToHaskell-src/pre-1.22/
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederDTD2HS_src = utils/DtdToHaskell-src/current/
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian Maeder# list glade files
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
51d769d55d88dfa88bdf54bee78d8fa85a2deba8Christian Maeder# the list of logics that need ShATermConvertible instances
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maederlogics = CASL HasCASL Isabelle Modal Temporal CoCASL COL CspCASL CASL_DL \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder SoftFOL ConstraintCASL Propositional RelationalScheme VSE OMDoc DFOL \
c3053d57f642ca507cdf79512e604437c4546cb9Christian Maeder LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl THF \
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian MaederTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
05a62e84edac8c64de04f8349dee418598d216b9Christian Maeder ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
05a62e84edac8c64de04f8349dee418598d216b9Christian Maeder Common/ATerm/ATermDiffMain.hs Common/annos.hs \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder Common/testxupdate.hs Common/testxpath.hs \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder### list of directories to run checks in
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederTESTDIRS += Common CASL Fpl/test HasCASL test ExtModal/Tries \
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
363939beade943a02b31004cea09dec34fa8a6d9Christian MaederPFE_TOOLDIR = $(wildcard programatica/tools)
363939beade943a02b31004cea09dec34fa8a6d9Christian MaederPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
8a28707e9155465c6f2236a06eac6580a65c7025Christian Maeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
4e23d551da8fb051cc4752319740ae7858ef1044Christian Maeder base/transforms base/transforms/Deriving property \
797ccd67cb8ae127be097cd43448801b673e3b69Christian Maeder property/syntax property/AST property/transforms \
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder property/TI property/defs property/parse2 property/parse2/Parser
498aa48bdb931ab50990d3b74318a5db2312186cChristian MaederPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder## rule for appendHaskellPreludeString
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
bc8cbf12aa172bf5673b92a9e7a0151d4aa4c315Christian Maeder#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
2d130d212db7208777ca896a7ecad619a8944971Christian MaederOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
51d769d55d88dfa88bdf54bee78d8fa85a2deba8Christian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder## rule for ATC generation
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# unset this variable from var.mk because the programatica sources
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# are needed to created our sources!
dc679edd4ca027663212afdf00926ae2ce19b555Christian Maeder# end of programatica stuff
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederTESTTARGETS = $(subst .hs,,$(TESTTARGETFILES))
0be0db405c49906bd7057255069bf6df53395ac9Klaus LuettichNO_BIND_WARNING = -fno-warn-unused-do-bind -fno-warn-warnings-deprecations
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder -fwarn-unrecognised-pragmas -fno-warn-orphans $(NO_BIND_WARNING)
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder# uncomment HC_PROF for profiling (and comment out packages in var.mk)
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder# call resulting binary with a final +RTS -p to get a file <binary>.prof
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHC_OPTS += $(HC_WARN) $(HC_PROF) $(HC_DEBIAN_OPT)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# -ddump-minimal-imports
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder# uncomment the above line to generate .imports files for displayDependencyGraph
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# files generated by DriFT
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
e6d5dbbc3308f05197868806e0b860f4f53875f1Christian Maeder RelationalScheme/AS.hs ATC/Grothendieck.hs \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder ExtModal/AS_ExtModal.hs QBF/AS_BASIC_QBF.hs \
e4f4d096e5e6d60dd91c746d0e833d0ac7a29c50Christian Maeder# files to extract data types from to generate ShATermConvertible instances
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder Common/Consistency.hs Common/ProofTree.hs \
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder Static/DgUtils.hs Static/XGraph.hs Static/DevGraph.hs \
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder# files generated by genRules as input for DriFT
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederatc_der_files = $(foreach file, $(atc_files), \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# the rules to create ATC .der.hs file for DriFT
42b12fba6830ada5057949f825fc27edf5574e5fChristian MaederATC/Result.der.hs: Common/Result.hs $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian MaederATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
328a85c807f2a95c3f147d10b05927eaf862ebebChristian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
a6db617ca58eb6a0587b6366e913107dfecb71b5Heng Jiang $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
254df6f22d01eacf7c57b85729e0445747b630d9Christian MaederATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -x Logic.Prover.ProverTemplate \
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian MaederATC/DgUtils.der.hs: Static/DgUtils.hs $(GENRULES)
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/XGraph.der.hs: Static/XGraph.hs $(GENRULES)
54ea981a0503c396c2923a1c06421c6235baf27fChristian MaederATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder $(GENRULECALL2) -i ATC.XGraph -i ATC.AS_Library -o $@ $<
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maeder# ATC files for every logic
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
819e29dba060687cf391e444e0f6ff88c1908cc3Christian MaederPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian MaederCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
4561227a776bdf0ab679b19fb92f1eaaed8786f7Christian MaederCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
8c812cd83569e973f10cf69a342424ceabc07af9Christian MaederDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
8c812cd83569e973f10cf69a342424ceabc07af9Christian MaederLF_files = LF/Sign.hs LF/Morphism.hs LF/AS.hs
05a206508bc898f87fe6ab6e069814df3c29d303Dominik LueckeMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs \
0b349288edfa50fdf38fda1a14e1562d03f92574Christian MaederCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
33bdce26495121cdbce30331ef90a1969126a840Liam O'Reilly CommonLogic/Symbol.hs CommonLogic/Morphism.hs CommonLogic/Sublogic.hs
f8e1a1eca871a26a535a4ee7d51902ba94b1db1eChristian MaederTHF_files = THF/As.hs THF/Cons.hs THF/Sign.hs
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederOWL2_files = OWL2/AS.hs OWL2/Symbols.hs OWL2/Sign.hs OWL2/MS.hs \
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder OWL2/Morphism.hs OWL2/ProfilesAndSublogics.hs OWL2/Sublogic.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederRDF_files = RDF/AS.hs OWL2/AS.hs # RDF/Symbols.hs RDF/Sign.hs RDF/Morphism.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# ATC DrIFT-rule generation for logics
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederQBF/ATC_QBF.der.hs: $(QBF_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
c70ef4c3b3a62764f715510c9fd67dde3acfe454Christian Maeder $(GENRULECALL) -i OMDoc.ATerm -o $@ $(OMDoc_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
b9b960bc75e34658e70c4a0231dbc6a6e7373f2dChristian MaederMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
18a4d5cb6828f080db9c5f9551785c5151027271Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCSL/ATC_CSL.der.hs: $(CSL_files) $(GENRULES)
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
4e9e95ba35a68f3c767bc0b23ebf9e904e442517Christian MaederAdl/ATC_Adl.der.hs: $(Adl_files) $(GENRULES)
4e9e95ba35a68f3c767bc0b23ebf9e904e442517Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
4e9e95ba35a68f3c767bc0b23ebf9e904e442517Christian MaederFpl/ATC_Fpl.der.hs: $(Fpl_files) $(GENRULES)
4e9e95ba35a68f3c767bc0b23ebf9e904e442517Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
4e9e95ba35a68f3c767bc0b23ebf9e904e442517Christian MaederTHF/ATC_THF.der.hs: $(THF_files) $(GENRULES)
4e9e95ba35a68f3c767bc0b23ebf9e904e442517Christian Maeder $(GENRULECALL) -i ATC.Id -i ATC.GlobalAnnotations -o $@ $(THF_files)
4e9e95ba35a68f3c767bc0b23ebf9e904e442517Christian MaederFreeCAD/ATC_FreeCAD.der.hs: $(FreeCAD_files) $(GENRULES)
8f31d51d47da96200437dd3af1d785cd88a46f71Thiemo Wiedemeyer $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(FreeCAD_files)
4e9e95ba35a68f3c767bc0b23ebf9e904e442517Christian MaederOWL2/ATC_OWL2.der.hs: $(OWL2_files) $(GENRULES)
a6c557605b327b033d881e74cc9f3cdbe3713b47Christian Maeder $(GENRULECALL) -i ATC.Result -o $@ $(OWL2_files)
4e9e95ba35a68f3c767bc0b23ebf9e904e442517Christian MaederRDF/ATC_RDF.der.hs: $(RDF_files) $(GENRULES)
4e9e95ba35a68f3c767bc0b23ebf9e904e442517Christian Maeder $(GENRULECALL) -i ATC.Result -o $@ $(RDF_files)
2686d4438ffde954ffbb3a3f307642a893b33570Christian Maeder# all ATC .der.hs files for all logics
6f438c358f43b651266d1a8f13c695bd4a156800Christian Maederatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maedergenerated_rule_files = $(atc_der_files) $(atc_logic_files)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# a rule to create all .der.hs files
8d401657e07a01e10400265f508f75353a9fba4cChristian Maeder# the final ATC target files created by DriFT
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maedergendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
6bf24e5eb644064ad650eb3fd9774483fccbf601Christian Maeder# all sources that need to be created before ghc can be called
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederderived_sources += $(drifted_files) Driver/Version.hs $(hs_der_files)
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich####################################################################
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder check capa hacapa h2h h2hf showKP clean_genRules genRules \
6bf24e5eb644064ad650eb3fd9774483fccbf601Christian Maeder count doc fromKif derivedSources release cgi ghci build callghc
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder.SECONDARY : %.hs %.d $(generated_rule_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# dummy target to force ghc invocation
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder# Documentation via haddock
10883d13973c46cac98964b66ace7a52b2d059abChristian MaederHADDOCK_INTERFACES = $(shell find `ghc --print-libdir`/../.. -name \*.haddock)
10883d13973c46cac98964b66ace7a52b2d059abChristian MaederHAD_INTS = $(foreach file, $(HADDOCK_INTERFACES),\
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder -i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian MaederHADDOCK_OPTS = $(addprefix --optghc=, $(HC_OPTS))
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder $(HADDOCK) -o docs -h -s ../%F $(HAD_INTS) \
0c355dd0b739631ee472f9a656e266be27fa4e64Christian Maeder -t 'Hets - the Heterogeneous Tool Set' \
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder Syntax/ADoc.hs $(filter-out Scratch.hs, $(wildcard *.hs))
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT)
a883cd4d01fe39d23219cf5333425f195be24d8bChristian Maeder$(DTD2HS): $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell.hs
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich cp utils/DtdToHaskell-src/DtdToHaskell.hs /tmp/; \
c4ef79587a902327f36277c45a8d91d1e67bd6d5Klaus Luettich $(HC) --make DtdToHaskell.hs -o $(PWD)/utils/DtdToHaskell $(HC_OPTS))
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederIsabelle/IsaExport.hs: $(DTD2HS) Isabelle/IsaExport.dtd
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich ($(DTD2HS) Isabelle/IsaExport.dtd Isabelle/IsaExport.hs Isabelle.)
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maederutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder# release management
da8353f130412f98f3c942c2d02ff2bb26babd20Christian Maeder svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
96646aed2ae087b942ae23f15bbe729a8f7c43d3Christian Maederutils/genItCorrections: $(GENITCORRECTIONS_deps)
3a7788e09dd23b364a46c9488cbd1522369113dbChristian Maederpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder @echo -n "Generating pretty/LaTeX_maps.hs ... "
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
1f8a7f8343f7df719768d2b1d7e3077ee291a1caChristian Maeder @(cd pretty >/dev/null; ../utils/genItCorrections \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder gen_it_characters gen_it_words >> LaTeX_maps.hs)
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder @echo "ready"
e05fd774e0181e93963d4302303b20698603a505Christian Maeder @echo "please copy the file manually to Common"
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(RM) $(generated_rule_files) $(gendrifted_files) \
f2d9352f2999f82c36b4b65535d14a6a40ae5a82Christian Maederclean: bin_clean o_clean clean_pretty clean_javastuff
43bb71dfe7ec405f563864d57c1cacdaa8ce9a80Christian Maeder### removes all *.o, *.hi and *.p_o files in all subdirectories
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski find . -name \*.o -o -name \*.hi -o -name \*.p_o \
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder -o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder### remove binaries
c22d75ec3ea1306219d1c09a5b3e8ff04f753ad6Christian Maeder $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
c22d75ec3ea1306219d1c09a5b3e8ff04f753ad6Christian Maeder $(RM) test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty}
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder $(RM) doc/UserGuide.{log,aux,bbl,blg,out,pdf}
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder### additionally removes the library files
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### additionally removes generated files not in the repository tree
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich $(RM) $(DTD2HS) /tmp/DtdToHaskell.* /tmp/DtdToHaskell
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### interactive
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder### build only, don't link
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich### Kif parser
5f0e3e4cb7dd31033c9682cafa712d2a66b2f3bcChristian Maeder### Annos parser
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder### CASL parser
d0652648f9879c67a194f8b03baafe2700c68eb4Christian Maeder### HasCASL parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### Haskell analysis
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### Haskell to Isabelle-HOLCF translation
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus LuettichHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder### HasCASL to Haskell translation
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder### test program to check the known provers
c5e3fc166373b0d90f6e36e8aa234396a1dcd879Christian Maeder### run tests in other directories
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder## Preparing the version of Hets
e1559d046eb2c6dde0e6e272b37b6756eac0e8adChristian MaederDriver/Version.hs: Driver/Version.in version_nr
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder LANG=C $(PERL) utils/build_version.pl version_nr \
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl## two hardcoded dependencies for a correct generation of Version.hs
e284004f10a315dbdb624c8b2522f65d485eaa48Martin KühlDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder## two dependencies to avoid circular prerequisites
0b349288edfa50fdf38fda1a14e1562d03f92574Christian MaederCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder Common/annos Common/test_parser Comorphisms/test/showKP \
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder$(CASL_DEPENDENT_BINARIES): $(derived_sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## suffix rules
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski## rule for GHC
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini## rule for DrIFT
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder## compiling rules for object and interface files
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## compiling rules for dependencies
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder## Rule to generate hs files from glade files. Needed for GTK
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.hs: %.glade utils/appendHaskellPreludeString \
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian Maeder# directory for installers
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich# or `date +%F`
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# prepare installer creation
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder @echo " -> make"
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# check out java parts for OWL
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder https://owlapi.svn.sourceforge.net/svnroot/owlapi/v3/trunk \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# download dependencies for RDF Jena-api
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maeder if [ -f RDF/java/lib/arq-2.8.7.jar ]; then \
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich echo "File arq-2.8.7.jar already exists"; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder 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; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder if [ -f RDF/java/lib/icu4j-3.4.4.jar ]; then \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder echo "File icu4j-3.4.4.jar already exists"; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder 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; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder echo "File iri-0.8.jar already exists"; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder 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; \
1a6464613c59e35072b90ca296ae402cbe956144Christian Maeder if [ -f RDF/java/lib/jena-2.6.4.jar ]; then \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder echo "File jena-2.6.4.jar already exists"; \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder 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; \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder if [ -f RDF/java/lib/junit-4.5.jar ]; then \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder echo "File junit-4.5.jar already exists"; \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich curl -o RDF/java/lib/junit-4.5.jar http://repo1.maven.org/maven2/junit/junit/4.5/junit-4.5.jar; \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich if [ -f RDF/java/lib/log4j-1.2.13.jar ]; then \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich echo "File log4j-1.2.13.jar already exists"; \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich 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; \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich if [ -f RDF/java/lib/lucene-core-2.3.1.jar ]; then \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich echo "File lucene-core-2.3.1.jar already exists"; \
5818d884784339c1b8aa6c6d972bad4eafd36ccbKlaus Luettich 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; \
2e62113845a35e07cb46db05714627c95450f267Klaus Luettich if [ -f RDF/java/lib/slf4j-api-1.5.8.jar ]; then \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich echo "File slf4j-api-1.5.8.jar already exists"; \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich 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; \
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich if [ -f RDF/java/lib/slf4j-log4j12-1.5.8.jar ]; then \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder echo "File slf4j-log4j12-1.5.8.jar already exists"; \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder 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; \
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich if [ -f RDF/java/lib/stax-api-1.0.1.jar ]; then \
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder echo "File stax-api-1.0.1.jar already exists"; \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder curl -o RDF/java/lib/stax-api-1.0.1.jar http://dist.codehaus.org/stax/jars/stax-api-1.0.1.jar; \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder if [ -f RDF/java/lib/wstx-asl-3.2.9.jar ]; then \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder echo "File wstx-asl-3.2.9.jar already exists"; \
fd2c22348e5a69231f92fb44e35a9970b47c4e93Christian Maeder 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; \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder if [ -f RDF/java/lib/xercesImpl-2.7.1.jar ]; then \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder echo "File xercesImpl-2.7.1.jar already exists"; \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder 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; \
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder# download rdf4h, unpack and install