Makefile revision 74a992bd019d3319df2f21f9d358ff06cafb5f7e
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)
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
a1ed34933c266ce85066acb0d7b20c90cb8eb213Christian MaederDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
ad270004874ce1d0697fb30d7309f180553bb315Christian MaederGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian MaederGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian MaederGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
ef9e8535c168d3f774d9e74368a2317a9eda5826Christian Maeder -i Data.Typeable -i ATerm.Lib -i ATC.Grothendieck
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroederifneq ($(strip $(HAXML_PACKAGE_COMPAT)),)
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederDTD2HS_src = utils/DtdToHaskell-src/pre-1.22/
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederDTD2HS_src = utils/DtdToHaskell-src/current/
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroederderived_sources += Isabelle/IsaExport.hs
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder# list glade files
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# the list of logics that need ShATermConvertible instances
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian Maederlogics = CASL HasCASL Isabelle Modal Temporal CoCASL COL CspCASL CASL_DL \
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maeder SoftFOL ConstraintCASL Propositional RelationalScheme VSE OMDoc DFOL \
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl THF \
6a2dad705deefd1b7a7e09b84fd2d75f2213be47Christian MaederTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian Maeder Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
014dc30f64ec25e4790cca987d4d1e6635430510Christian Maeder Common/ATerm/ATermDiffMain.hs Common/annos.hs \
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
6aea82c63ba1d2efc0329bc784a14e521469ec20Christian Maeder Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder Common/testxupdate.hs Common/testxpath.hs \
feca1d35123d8c31aee238c9ce79947b0bf65494Christian Maeder SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder### list of directories to run checks in
f5c0884429b01e74c6e658ded921fb2e16dfb478Christian MaederTESTDIRS += Common CASL Fpl/test HasCASL test ExtModal/Tries \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
23ffcc44ca8612feccbd8fda63fa5be7ab5f9dc3Christian MaederPFE_TOOLDIR = $(wildcard programatica/tools)
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/transforms base/transforms/Deriving property \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/syntax property/AST property/transforms \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/TI property/defs property/parse2 property/parse2/Parser
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder## rule for appendHaskellPreludeString
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder## rule for ATC generation
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
363939beade943a02b31004cea09dec34fa8a6d9Christian MaederTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
eb74267cf39e4e95f9eeb5c765f4c8dac33971b4Christian Maeder# unset this variable from var.mk because the programatica sources
eb74267cf39e4e95f9eeb5c765f4c8dac33971b4Christian Maeder# are needed to created our sources!
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# end of programatica stuff
8d178ae08a52d61379e6b8074f61646499bc88bbChristian MaederTESTTARGETS = $(subst .hs,,$(TESTTARGETFILES))
59138b404f12352d103eeffbeaeb3957b90e75fdChristian MaederNO_BIND_WARNING = -fno-warn-unused-do-bind -fno-warn-warnings-deprecations
7d0ee72ee91ec305408688b969c43f07b9667c80Christian Maeder -fwarn-unrecognised-pragmas -fno-warn-orphans $(NO_BIND_WARNING)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# uncomment HC_PROF for profiling (and comment out packages in var.mk)
0e5b095a19790411e5352fa7cf57cb0388e70472Christian Maeder# call resulting binary with a final +RTS -p to get a file <binary>.prof
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
14c56dc499da4bbeaeebeb558ceb755150ae341cChristian MaederHC_OPTS += $(HC_WARN) $(HC_PROF) $(HC_DEBIAN_OPT)
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder# -ddump-minimal-imports
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# uncomment the above line to generate .imports files for displayDependencyGraph
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# files generated by DriFT
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
06dd4e7c29f33f6122a910719e3bd9062256e397Andy Gimblett CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder RelationalScheme/AS.hs ATC/Grothendieck.hs \
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder ExtModal/AS_ExtModal.hs QBF/AS_BASIC_QBF.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# files to extract data types from to generate ShATermConvertible instances
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maederatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
140287998aa8592c9c403bd9e308e447ba92ae11Christian Maeder Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder Common/Consistency.hs Common/ProofTree.hs \
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder Static/DgUtils.hs Static/XGraph.hs Static/DevGraph.hs \
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# files generated by genRules as input for DriFT
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederatc_der_files = $(foreach file, $(atc_files), \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# the rules to create ATC .der.hs file for DriFT
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/Result.der.hs: Common/Result.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian MaederATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
54ea981a0503c396c2923a1c06421c6235baf27fChristian MaederATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian MaederATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian MaederATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
819e29dba060687cf391e444e0f6ff88c1908cc3Christian MaederATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
ac34194a668399bb8ef238da77c3a09e93fb253bChristian Maeder $(GENRULECALL) -x Logic.Prover.ProverTemplate \
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
c208973c890b8f993297720fd0247bc7481d4304Christian MaederATC/DgUtils.der.hs: Static/DgUtils.hs $(GENRULES)
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency -o $@ $<
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian MaederATC/XGraph.der.hs: Static/XGraph.hs $(GENRULES)
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian MaederATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder $(GENRULECALL2) -i ATC.XGraph -i ATC.AS_Library -o $@ $<
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# ATC files for every logic
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
4561227a776bdf0ab679b19fb92f1eaaed8786f7Christian MaederHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik LueckePropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai CodescuHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
31d6d9286988dc31639d105841296759aeb743e0Jonathan von Schroeder HolLight/Sublogic.hs HolLight/Term.hs
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
05a206508bc898f87fe6ab6e069814df3c29d303Dominik LueckeRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till MossakowskiConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
0b349288edfa50fdf38fda1a14e1562d03f92574Christian MaederCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
5afff1a0f62394414c33b06141175b3ab0b117a5Christian Maeder CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
1b3a2f98d1cd01fc9e0591f69507e20526727559Dominik LueckeCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
ea3bff3e547a1ac714d4db39c5efef95e02b2e7dChristian MaederDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
dd6f22b9dcff2695181b86372e4df03d5b96e92dKristina SojakovaLF_files = LF/Sign.hs LF/Morphism.hs LF/AS.hs
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
76b9b2974795a6fb31f242fd032de3ff66df6204Christian MaederExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
74a992bd019d3319df2f21f9d358ff06cafb5f7eMihaela Turcu ExtModal/MorphismExtension.hs ExtModal/Sublogic.hs
878a5ecd6acf973907e25e5be6e4a792ea19a05eEwaryst SchulzCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs \
6b75c206b317eb30a08d88a8f27e0295ffeb1546Christian MaederCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
9a4b469ca0a7f44a598e551a973c75195207db58Eugen Kuksa CommonLogic/Symbol.hs CommonLogic/Morphism.hs CommonLogic/Sublogic.hs
a604cbad8e2202147b5c6bb9f2e06ae61162d654Felix Gabriel ManceOWL2_files = OWL2/AS.hs OWL2/Symbols.hs OWL2/Sign.hs OWL2/MS.hs \
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maeder OWL2/Morphism.hs OWL2/ProfilesAndSublogics.hs OWL2/Sublogic.hs \
1f9274bb2aa44ea236327814dce99946be52e348Felix Gabriel ManceRDF_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)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederQBF/ATC_QBF.der.hs: $(QBF_files) $(GENRULES)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai CodescuHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu $(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)
456238178f89e5a3de2988ee6c8af924297d52d9Christian 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)
456238178f89e5a3de2988ee6c8af924297d52d9Christian 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)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder $(GENRULECALL) -i OMDoc.ATerm -o $@ $(OMDoc_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
48aa0645e25883048369afc02aac3f49b14a50daChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
79834070d6d3c63a098e570b12fa3405c607dc70Kristina SojakovaFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
8a78868bae2ec6838c87366c35c57e109154c51eChristian MaederExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulz $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl LucCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
01645eac73dbc789392674930adc5745c935f3a0Christian MaederAdl/ATC_Adl.der.hs: $(Adl_files) $(GENRULES)
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian MaederFpl/ATC_Fpl.der.hs: $(Fpl_files) $(GENRULES)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
fc09e0a6af734edbd944dd8082bb51985c233b43Alexis Tsogias $(GENRULECALL) -i ATC.Id -i ATC.GlobalAnnotations -o $@ $(THF_files)
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst SchulzFreeCAD/ATC_FreeCAD.der.hs: $(FreeCAD_files) $(GENRULES)
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(FreeCAD_files)
bab2d88d650448628730ed3b65c9f99c52500e8cChristian MaederOWL2/ATC_OWL2.der.hs: $(OWL2_files) $(GENRULES)
18d370f8341357f5d6a4068f4bb6981173ece70fFelix Gabriel Mance $(GENRULECALL) -i ATC.Result -o $@ $(OWL2_files)
ed1b8e97e72b2e3e92edaf2eb22a4b5373d705f1Felix Gabriel ManceRDF/ATC_RDF.der.hs: $(RDF_files) $(GENRULES)
ed1b8e97e72b2e3e92edaf2eb22a4b5373d705f1Felix Gabriel Mance $(GENRULECALL) -i ATC.Result -o $@ $(RDF_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# all ATC .der.hs files for all logics
c70ef4c3b3a62764f715510c9fd67dde3acfe454Christian Maederatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maedergenerated_rule_files = $(atc_der_files) $(atc_logic_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# a rule to create all .der.hs files
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# the final ATC target files created by DriFT
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maedergendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# all sources that need to be created before ghc can be called
cc07a598b995acc9436651e66fd18009509047efChristian Maederderived_sources += $(drifted_files) Driver/Version.hs $(hs_der_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
f443a57f2a8e0ca3daa7431b0c89a18ba52c337aChristian Maeder check capa hacapa h2h h2hf showKP clean_genRules genRules \
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder count doc fromKif derivedSources release cgi ghci build callghc
37a9d042e9f85a1d6e229eb80b48f93df810f155Christian Maeder.SECONDARY : %.hs %.d $(generated_rule_files)
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder# dummy target to force ghc invocation
a883cd4d01fe39d23219cf5333425f195be24d8bChristian Maeder ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# Documentation via haddock
0a5571c8adeddd27548445546491725beb224dddChristian MaederHADDOCK_INTERFACES = $(shell find `ghc --print-libdir`/../.. -name \*.haddock)
0a5571c8adeddd27548445546491725beb224dddChristian MaederHAD_INTS = $(foreach file, $(HADDOCK_INTERFACES),\
0a5571c8adeddd27548445546491725beb224dddChristian Maeder -i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
f38b3687c5558128515e34fb85d8b466d22dc300Christian MaederHADDOCK_OPTS = $(addprefix --optghc=, $(HC_OPTS))
e642ad0e782f9bb9ba310164358220402eec8cd8Christian Maeder $(HADDOCK) -o docs -h -s ../%F $(HAD_INTS) \
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder -t 'Hets - the Heterogeneous Tool Set' \
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
74d27713392cbbe39ecd72d0ddb0caad16e84555Christian Maeder Syntax/ADoc.hs $(filter-out Scratch.hs, $(wildcard *.hs))
e05fd774e0181e93963d4302303b20698603a505Christian Maeder (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT)
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder$(DTD2HS): $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell.hs
825a1e4ca1e768de4b4883c65a6cb1dce6aa0002Christian Maeder mkdir -p utils/DtdToHaskell-src/DtdToHaskell
825a1e4ca1e768de4b4883c65a6cb1dce6aa0002Christian Maeder cp -f $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell
825a1e4ca1e768de4b4883c65a6cb1dce6aa0002Christian Maeder utils/DtdToHaskell-src/DtdToHaskell.hs -o $@ $(HC_OPTS)
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederIsabelle/IsaExport.hs: $(DTD2HS) Isabelle/IsaExport.dtd
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder ($(DTD2HS) Isabelle/IsaExport.dtd Isabelle/IsaExport.hs Isabelle.)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
1dfba1f850f6a43094962b459998d1ea11472461Christian Maederutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# release management
fa0f3519d71f719d88577b716b1579776b4a2535Christian Maeder svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
c59d1c38ef94b4fb1c8d9fda9573bc1e1d2801e7Christian Maeder find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichutils/genItCorrections: $(GENITCORRECTIONS_deps)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @echo -n "Generating pretty/LaTeX_maps.hs ... "
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @(cd pretty >/dev/null; ../utils/genItCorrections \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich gen_it_characters gen_it_words >> LaTeX_maps.hs)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @echo "ready"
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @echo "please copy the file manually to Common"
810746aea00b81c1eec27dae84d73a43599ff056Christian Maeder $(RM) $(generated_rule_files) $(gendrifted_files) \
1365c420ef71be3d52796ebd369dc2defdedc822Christian Maederclean: bin_clean o_clean clean_pretty clean_javastuff
82e29b77f0ef4cccd7ed734692c5e1e93dbbc645Christian Maeder### removes all *.o, *.hi and *.p_o files in all subdirectories
5f0e3e4cb7dd31033c9682cafa712d2a66b2f3bcChristian Maeder find . -name \*.o -o -name \*.hi -o -name \*.p_o \
5f0e3e4cb7dd31033c9682cafa712d2a66b2f3bcChristian Maeder -o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder### remove binaries
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder $(RM) test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty}
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder $(RM) doc/UserGuide.{log,aux,bbl,blg,out,pdf}
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder### additionally removes the library files
e420b3848a0e15a9e074b08c413996cbeb5ab06dChristian Maeder### additionally removes generated files not in the repository tree
825a1e4ca1e768de4b4883c65a6cb1dce6aa0002Christian Maeder $(RM) -r utils/DtdToHaskell-src/DtdToHaskell
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### interactive
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl### build only, don't link
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder### Kif parser
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder### Annos parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### CASL parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### HasCASL parser
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski### Haskell analysis
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini### Haskell to Isabelle-HOLCF translation
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian MaederHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder### HasCASL to Haskell translation
e50e41135ece589f7202bd4ef8d6b97531c2a56eKlaus Luettich### test program to check the known provers
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### run tests in other directories
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder## Preparing the version of Hets
43b4c41fbb07705c9df321221ab9cb9832460407Christian MaederDriver/Version.hs: Driver/Version.in version_nr
d5d349836d8b1fa93ea49a59d977b106c6e9233bKlaus Luettich LANG=C $(PERL) utils/build_version.pl version_nr \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## two hardcoded dependencies for a correct generation of Version.hs
43b4c41fbb07705c9df321221ab9cb9832460407Christian MaederDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder## two dependencies to avoid circular prerequisites
e112e83352048f3db8c8f93ae104193e7338c10fChristian MaederCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich Common/annos Common/test_parser Comorphisms/test/showKP \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder$(CASL_DEPENDENT_BINARIES): $(derived_sources)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder## suffix rules
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder## rule for GHC
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder## rule for DrIFT
7767474aba4fa2dc51a6c68017d3bcef3b773001Christian Maeder ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## compiling rules for object and interface files
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## compiling rules for dependencies
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder## Rule to generate hs files from glade files. Needed for GTK
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder%.hs: %.glade utils/appendHaskellPreludeString \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# directory for installers
fd2c22348e5a69231f92fb44e35a9970b47c4e93Christian Maeder# or `date +%F`
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# prepare installer creation
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder @echo " -> make"
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# check out java parts for OWL
f9442174f64331ccf0bf08178632af7302ccfc96Christian Maeder https://owlapi.svn.sourceforge.net/svnroot/owlapi/v3/trunk \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu# download dependencies for RDF Jena-api
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu if [ -f RDF/java/lib/arq-2.8.7.jar ]; then \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu echo "File arq-2.8.7.jar already exists"; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu 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; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu if [ -f RDF/java/lib/icu4j-3.4.4.jar ]; then \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu echo "File icu4j-3.4.4.jar already exists"; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu 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; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu if [ -f RDF/java/lib/iri-0.8.jar ]; then \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu echo "File iri-0.8.jar already exists"; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu 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; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu if [ -f RDF/java/lib/jena-2.6.4.jar ]; then \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu echo "File jena-2.6.4.jar already exists"; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu 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; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu if [ -f RDF/java/lib/junit-4.5.jar ]; then \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu echo "File junit-4.5.jar already exists"; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu curl -o RDF/java/lib/junit-4.5.jar http://repo1.maven.org/maven2/junit/junit/4.5/junit-4.5.jar; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu if [ -f RDF/java/lib/log4j-1.2.13.jar ]; then \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu echo "File log4j-1.2.13.jar already exists"; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu 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; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu if [ -f RDF/java/lib/lucene-core-2.3.1.jar ]; then \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu echo "File lucene-core-2.3.1.jar already exists"; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu 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; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu if [ -f RDF/java/lib/slf4j-api-1.5.8.jar ]; then \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu echo "File slf4j-api-1.5.8.jar already exists"; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu 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; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu if [ -f RDF/java/lib/slf4j-log4j12-1.5.8.jar ]; then \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu echo "File slf4j-log4j12-1.5.8.jar already exists"; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu 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; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu if [ -f RDF/java/lib/stax-api-1.0.1.jar ]; then \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu echo "File stax-api-1.0.1.jar already exists"; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu curl -o RDF/java/lib/stax-api-1.0.1.jar http://dist.codehaus.org/stax/jars/stax-api-1.0.1.jar; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu if [ -f RDF/java/lib/wstx-asl-3.2.9.jar ]; then \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu echo "File wstx-asl-3.2.9.jar already exists"; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu 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; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu if [ -f RDF/java/lib/xercesImpl-2.7.1.jar ]; then \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu echo "File xercesImpl-2.7.1.jar already exists"; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu 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; \
3b5814dc6ac813faf8a12ecddf4b727ca7b666a8Francisc Nicolae Bungiu# download rdf4h, unpack and install