rules revision d23ecf32e56cce69bc42eb5c96dddf7909c623ab
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Authors: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Jens Elkner, Uni Magdeburg 2016
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# This GNU Makefile will compile the hets system and provides also
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# targets for test programs during implementation phases.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# If the following environment variables are set, their values get passed to
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# the corresponding tool as is: GHC_PKG_FLAGS (ghc-pkg), GHC_FLAGS (ghc).
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt -fwarn-unrecognised-pragmas -fno-warn-orphans $(NO_BIND_WARNING)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# uncomment HC_PROF for profiling (and comment out packages in var.mk)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# call resulting binary with a final +RTS -p to get a file <binary>.prof
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#HC_PROF := -prof -auto-all -osuf p_o +RTS -K100m -RTS
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# -ddump-minimal-imports
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# uncomment the above line to generate .imports files for displayDependencyGraph
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# *.bin variants here to let them survive a 'make clean'
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Documentation (no haddock stuff, i.e. "docs/index.html", since developer can
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# generated it on demand by themselves and other users dont't need it). Other
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# papers (doc/*.pdf) are already pre-generated.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Upgrade haskell-stack
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Create the build environment
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(STACK) build --install-ghc --only-dependencies $(STACK_DEPENDENCIES_FLAGS)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(STACK) build --install-ghc --only-dependencies $(STACK_DEPENDENCIES_FLAGS)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntSED := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'gsed' || printf 'sed')
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntTAR := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'gtar' || printf 'tar')
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntINSTALL := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'ginstall' || printf 'install')
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt -e '/^hetsVersionNumeric =/ { s/.*"\([^"]*\)".*/\1/; p; q; }' \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# indicate, whether working on an exported repo
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# the 'replacing spaces' example was taken from the (GNU) Make info manual
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# list glade files
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# the list of logics that need ShATermConvertible instances
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntlogics = CASL HasCASL Isabelle Modal Hybrid TopHybrid Temporal \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt SoftFOL ConstraintCASL Propositional RelationalScheme VSE OMDoc DFOL \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl THF \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### list of directories to run checks in
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntTESTDIRS += Common CASL Fpl/test HasCASL test ExtModal/Tries \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunths_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntPFE_DIRS := base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt base/transforms base/transforms/Deriving property \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt property/syntax property/AST property/transforms \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt property/TI property/defs property/parse2 property/parse2/Parser
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntPFE_PATHS := $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntDRIFT_ENV := DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt## rule for appendHaskellPreludeString
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntOther_PFE_files := property/AST/HsPropStruct base/defs/PNT \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt## rule for ATC generation
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -r Typeable -i Data.Typeable -i Haskell.BaseATC \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# end of programatica stuff (PFE_FLAGS)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# files generated by DriFT
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs Hybrid/AS_Hybrid.hs TopHybrid/AS_TopHybrid.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# files to extract data types from to generate ShATermConvertible instances
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt Static/DgUtils.hs Static/XGraph.hs Static/DevGraph.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# files generated by genRules as input for DriFT
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt ATC/$(basename $(basename $(notdir $(file)))).der.hs)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# the rules to create ATC .der.hs file for DriFT
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency -o $@ $<
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL2) -i ATC.XGraph -i ATC.AS_Library -o $@ $<
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# ATC files for every logic
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntHybrid_files = Hybrid/AS_Hybrid.hs Hybrid/HybridSign.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntTopHybrid_files = TopHybrid/AS_TopHybrid.hs TopHybrid/TopHybridSign.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt ExtModal/MorphismExtension.hs ExtModal/Sublogic.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt CommonLogic/Symbol.hs CommonLogic/Morphism.hs CommonLogic/Sublogic.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntTHF_files = THF/As.hs THF/Cons.hs THF/Sign.hs THF/Sublogic.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntOWL2_files = OWL2/AS.hs OWL2/Symbols.hs OWL2/Sign.hs OWL2/MS.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt OWL2/Morphism.hs OWL2/ProfilesAndSublogics.hs OWL2/Sublogic.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntRDF_files = RDF/AS.hs OWL2/AS.hs RDF/Symbols.hs RDF/Sign.hs RDF/Morphism.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntTPTP_files = TPTP/AS.hs TPTP/Sign.hs TPTP/Sublogic.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# ATC DrIFT-rule generation for logics
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntHybrid/ATC_Hybrid.der.hs: $(Hybrid_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Hybrid_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntTopHybrid/ATC_TopHybrid.der.hs: $(TopHybrid_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(TopHybrid_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.Id -i ATC.GlobalAnnotations -o $@ $(THF_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntFreeCAD/ATC_FreeCAD.der.hs: $(FreeCAD_files) $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(FreeCAD_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(CSMOF_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntQVTR/ATC_QVTR.der.hs: $(QVTR_files) CSMOF/ATC_CSMOF.hs $(GENRULES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i CSMOF.ATC_CSMOF -i Common.ATerm.ConvInstances \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(TPTP_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# all ATC .der.hs files for all logics
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntgenerated_rule_files = $(atc_der_files) $(atc_logic_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# a rule to create all .der.hs files
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# the final ATC target files created by DriFT
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntgendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# all sources that need to be created before ghc can be called
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntderived_sources += $(drifted_files) $(hs_der_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt####################################################################
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# BUILD related targets
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt####################################################################
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt.PHONY: all hets-opt hets-optimized hets_server-opt docs jars \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt clean o_clean clean_pretty bin_clean java_clean realclean distclean \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt annos check test capa hacapa h2h h2hf showKP clean_genRules genRules \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt count fromKif release cgi ghci build-hets callghc \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt get-programatica check_desktop check_server check_cgi \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt install install-common install-owl-tools archive \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt build-indep build-arch build binary-indep binary-arch binary
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# dummy target to force ghc invocation
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# some trickery to trigger a full clean if the main target (hets, hets_server)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# changed since last call
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt -@[ -e .hets_server -o -e .hets_cgi -o -e .hets_oow ] && $(MAKE) clean
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt -@[ -e .hets_desktop -o -e .hets_cgi -o -e .hets_oow ] && $(MAKE) clean
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt -@[ -e .hets_desktop -o -e .hets_server -o -e .hets_oow ] && $(MAKE) clean
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# the variant without GUI
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunthets_server hets_server-opt: check_server $(derived_sources)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# deprecated target name
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunthets_cgi hets_cgi-opt: check_cgi GUI/hets_cgi.hs $(derived_sources)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(HC) --make $(HC_OPTS) -o hets.cgi GUI/hets_cgi.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntTEX_FILES := $(wildcard doc/*.tex doc/*.png doc/*.dot doc/*.sty doc/*.eps)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt if [ -n "$$X" ]; then \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt -pdflatex="pdflatex -interaction=nonstopmode" UserGuide.tex ; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt printf '\nMissing "latexmk" - unable to create doc/UserGuide.pdf!\n\n';\
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# replace '$Header$' in all *.hs with the filename of the containing file
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# call it from time to time
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt @find . -name '*.hs' -exec fgrep -l '$$Header$$' {} + | xargs -I@ \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntGHC_LIBDIR := $(shell $(STACK_EXEC) ghc --print-libdir)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntGHC_BASEDIR := $(shell cd $(GHC_LIBDIR)/../.. && printf "$${PWD}")
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# scanning the "whole" NFS server isn't so smart, so restrict to wellknown dirs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntHADDOCK_INTERFACES = $(shell find $(GHC_BASEDIR)/share/doc/ghc \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(GHC_BASEDIR)/lib/ghc-doc/haddock -name '*.haddock' 2>/dev/null)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt -i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt -t 'Hets - the Heterogeneous Tool Set' \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt cd utils/DrIFT-src; $(HC) --make -o ../DrIFT DrIFT.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt$(DTD2HS): $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt @cp -f $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(HC) --make $(HC_OPTS) -iutils/DtdToHaskell-src -o $@ \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntIsabelle/IsaExport.hs: $(DTD2HS) Isabelle/IsaExport.dtd
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(DTD2HS) Isabelle/IsaExport.dtd Isabelle/IsaExport.hs Isabelle.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(info $(EOL)Generating pretty/LaTeX_maps.hs ...$(EOL))
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt ../utils/genItCorrections gen_it_characters gen_it_words >> LaTeX_maps.hs
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(info $(EOL)Done.$(EOL)Please copy the file manually to Common$(EOL))
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt @$(RM) $(generated_rule_files) $(gendrifted_files) $(hs_clean_files)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### removes all *.o, *.hi and *.p_o files in all subdirectories except for
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### .stack-work, where the compiled dependencies reside
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt -o \( -name '*.o' -o -name '*.hi' -o -name '*.p_o' \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt -o -name '*.dyn_hi' -o -name '*.dyn_o' \) -exec rm -f {} +
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### remove binaries
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# do not delete on exported archive, because latexmk might not be available
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntUSER_GUIDE := $(shell [ -n "$(EXPORTED)" ] || printf 'doc/UserGuide.pdf')
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Ubuntu/Debian dash crap really hurts
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt @ksh -c "rm -rf pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty} \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt test/*/log */test/temp* ToHaskell/test/*.{out,output} \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt ExtModal/Tries/*.{pp.het,th} Fpl/test/*.{pp.het,th} \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt CommonLogic/TestData/*.{pp.het,th} Common/testxmldiff \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt doc/UserGuide.{log,aux,bbl,blg,out,fdb_latexmk,fls} doc/hs2isa.ps \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt debian/{root,files,hets-*,tmp} \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt @$(RM) -rf OWL2/*.jar OWL2/java/build OWL2/java/tmp OWL2/lib
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### additionally removes generated files not in the repository tree
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### interactive
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### build only, don't link. Target was formerly known as 'build'.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### Kif parser
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### Annos parser
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### CASL parser
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### HasCASL parser
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### Haskell analysis
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### Haskell to Isabelle-HOLCF translation
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### HasCASL to Haskell translation
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### test program to check the known provers
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt### run tests in other directories
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt## two dependencies to avoid circular prerequisites
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt Common/annos Common/test_parser Comorphisms/test/showKP \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt## suffix rules
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt## rule for GHC
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt## rule for DrIFT
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt## compiling rules for object and interface files
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt## compiling rules for dependencies
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt## Rule to generate hs files from glade files. Needed for GTK
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# just build all required jar files
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt @if [ -z $(PROGRAMATICA_SRC_FILE) -o ! -e $(PROGRAMATICA_SRC_FILE) ] && \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt 'neither PROGRAMATICA_SRC_FILE nor PROGRAMATICA_SRC_FILE' \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt 'environment variable is set/exist.' ; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt @if [ -e $(PFE_BASE) ]; then \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt -@HWD=$${PWD} ; X=`echo $(PFE_BASE)| cut -f1 -d/`; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt if [ -n $(PROGRAMATICA_SRC_FILE) -a -e $(PROGRAMATICA_SRC_FILE) ]; then \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt printf 'Extracting $(PROGRAMATICA_SRC_FILE) ...\n' ; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt mv programatica-*/* $${PFEDIR}/ && rmdir programatica-* ; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt if [ -n "$(PROGRAMATICA_SRC_URL)" -a ! -e $${HWD}/$(PFE_SETUP_FILE) ]; then\
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt printf 'Fetching $(PROGRAMATICA_SRC_URL) ...\n' ; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt if wget --no-verbose -O x.tgz "$(PROGRAMATICA_SRC_URL)" ; then \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt mv programatica-*/* $${PFEDIR}/ && rmdir programatica-* ; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt @if [ -e $(PFE_SETUP_FILE) ]; then \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt printf 'Programatica support available.\nYou probably need to %s\n\n' \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt '"make distclean" and make the desired target again.' ; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt printf 'Failed! No programatica support available!\n' ; exit 4 ; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# remove trailing .txz or .tar.xz
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt $(patsubst %.txz,%, $(patsubst %.tar.xz,%,$(notdir $(ARC_NAME))))
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt printf '\nThis source tree is already exported.\n' && exit 1 ; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt git archive --format=tar --prefix=$(ARC_BNAME)/ HEAD | \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt if [ -e $(USER_GUIDE) ]; then \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt cp $(USER_GUIDE) tmp/$(ARC_BNAME)/$(USER_GUIDE) ; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt printf '\nWARNING: No $(USER_GUIDE) is unavailable\n!' ; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt printf 'Removing unused/non-distributed files ...\n' ; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt rm -rf HolLight/OcamlTools/*/*dmtcp OWL2/java/lib/native \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt rm -rf GMP mini .gitignore utils/{nightly,debian,macports,ubuntu} ; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt zip -d OWL2/java/lib/owlapi-osgidistribution-3.5.2.jar \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt cd .. ; $(TAR) cJf $(ARC_BNAME).tar.xz $(ARC_BNAME) || exit 4 ; \
DEFAULT_DESTDIR := \
SUBDIR_common := \
SUBDIR_hets := \
SUBDIR_hets_server := \
# see OWL2/ProveFact.hs - it doesn't use OSGi so we need to extract JNI libs
X=`ls ../lib/uk.ac.manchester.cs.owl.factplusplus*.jar` ; \
%.bin:
# *.debian.tar.xz, for local packages we generate it on demand.
-l$(CHANGELOG)
-l$(CHANGELOG)
-l$(CHANGELOG)