rules revision 9f85afecbd79b3df5a0bb17bd28cd0b288dc3213
a898afa0c41d5bdca1134dce14666fef3cfed666Andrew Forrest# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
a898afa0c41d5bdca1134dce14666fef3cfed666Andrew Forrest# This Makefile will compile the hets system and provides also
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# targets for test programs during implementation phases.
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# !!! Note: This makefile is written for GNU make !!!
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# (gmake on solaris)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# the 'replacing spaces' example was taken from the (GNU) Make info manual
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrestspace = $(empty) $(empty)
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestHAPPY = happy -sga
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest -i Data.Typeable -i ATerm.Lib -i ATC.Grothendieck
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestHADDOCK = haddock
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestOSBYUNAME = $(shell uname)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrestifneq ($(findstring SunOS, $(OSBYUNAME)),)
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestPATCH = gpatch
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestARCH = $(subst $(space),,$(shell uname -m))
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
5a7b89066fcba7cced4e980306cf91163ed79c3dAndrew ForrestSETUPPACKAGE = ../$(SETUP) clean; \
5a7b89066fcba7cced4e980306cf91163ed79c3dAndrew Forrest ../$(SETUP) configure -O -p $(SETUPPREFIX) --user; \
5a7b89066fcba7cced4e980306cf91163ed79c3dAndrew Forrest ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# list glade files
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrestderived_sources += $(GTK_GLADE_HSFILES)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# the list of logics that need ShATermConvertible instances
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrestlogics = CASL HasCASL Isabelle Modal Temporal CoCASL COL CspCASL CASL_DL \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest SoftFOL ConstraintCASL Propositional OWL RelationalScheme VSE OMDoc DFOL \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest LF Maude ExtModal
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest Common/ATerm/ATermDiffMain.hs Common/annos.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest### list of directories to run checks in
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestTESTDIRS += Common CASL HasCASL test
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forresths_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestPFE_TOOLDIR = $(wildcard ../programatica/tools)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrestifneq ($(strip $(PFE_TOOLDIR)),)
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest base/transforms base/transforms/Deriving property \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest property/syntax property/AST property/transforms \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest property/TI property/defs property/parse2 property/parse2/Parser
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrestpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestPFE_PATH = $(addprefix -i, $(PFE_PATHS))
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forresthappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestLEX_DIR = $(PFE_TOOLDIR)/base/parse2/Lexer
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrestprogramatica_pkg: $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest $(LEX_DIR)/HsLex.hs $(SETUP)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest @if $(HCPKG) field programatica version; then \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest echo "of programatica package found"; else \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest ($(PATCH) -usNlp0 -d $(PFE_TOOLDIR) \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest -i `pwd`/Haskell/Programatica.patch || exit 0); \
c0f53aa89d68ce3e4df7e9af73c00b292c8cbfefAndrew Forrest cp -f utils/programatica.cabal ../programatica/tools; \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest cp -f $(SETUP) ../programatica/tools; \
751a89ff3a7a62c4981ea2dad1b06c79a782a609Jaco Jooste ./Setup configure $(SETUPPREFIX); \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest ./Setup build; ./Setup install --user) fi
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest echo "{-# OPTIONS -w #-}" > $@
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest $(HC) --make -fno-monomorphism-restriction -O \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest -i$(PFE_TOOLDIR)/base/lib \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrestlogics += Haskell
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest## rule for appendHaskellPreludeString
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest $(APPENDPRELUDESTRING)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest $(APPENDPRELUDESTRING) < $< > $@
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest HsModule HsName HsLiteral HsIdent
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest base/parse2/SourceNames base/syntax/SyntaxRec \
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestHaskell_files = $(addsuffix .hs, \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest## rule for ATC generation
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forresths_der_files += $(hs_clean_files)
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestTESTDIRS += ToHaskell
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# unset this variable from var.mk because the programatica sources
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# are needed to created our sources!
5d761bd44dd209231a91b4155e640128b35d45cdGabor Melkvi# end of programatica stuff
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestTESTTARGETS = Test.o $(subst .hs,,$(TESTTARGETFILES))
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestGHCVERSION = $(shell ghc --numeric-version)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrestifneq ($(findstring 12, $(GHCVERSION)),)
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestNO_BIND_WARNING = -fno-warn-unused-do-bind
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestHC_WARN = -Wall -fno-warn-orphans $(NO_BIND_WARNING)
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestINCLUDE_PATH =
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestHC_INCLUDE = $(addprefix -i, $(INCLUDE_PATH))
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# uncomment HC_PROF for profiling (and comment out packages in var.mk)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# call resulting binary with a final +RTS -p to get a file <binary>.prof
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestHC_OPTS += $(HC_WARN) $(HC_INCLUDE) $(HC_PROF)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# -ddump-minimal-imports
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# uncomment the above line to generate .imports files for displayDependencyGraph
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# files generated by DriFT
98edafaa1060580ef39bce8710345d9fe25b5b04Jaco Jooste Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest $(gendrifted_files)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# files to extract data types from to generate ShATermConvertible instances
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrestatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest Common/Consistency.hs Common/ProofTree.hs Static/DevGraph.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# files generated by genRules as input for DriFT
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrestatc_der_files = $(foreach file, $(atc_files), \
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest ATC/$(basename $(basename $(notdir $(file)))).der.hs)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest# the rules to create ATC .der.hs file for DriFT
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest $(GENRULECALL) -o $@ $<
864e2a74d7dc5e572cd895466611cc57e3523083Andrew ForrestATC/Result.der.hs: Common/Result.hs $(GENRULES)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest $(GENRULECALL) -i ATC.Id -o $@ $<
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest $(GENRULECALL) -o $@ $<
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest $(GENRULECALL) -o $@ $<
402cd5da45d9182b81c16a13c3568faf78701827Andrew ForrestATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
402cd5da45d9182b81c16a13c3568faf78701827Andrew Forrest $(GENRULECALL) -o $@ $<
$(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
$(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
$(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
$(GENRULECALL) -x Logic.Prover.ProverTemplate \
-i ATC.AS_Structured -o $@ $<
Isabelle_files = Isabelle/IsaSign.hs
ConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
SoftFOL_files = SoftFOL/Sign.hs
VSE_files = VSE/As.hs
OMDoc_files = OMDoc/OMDocInterface.hs
CASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
$(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
RelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
$(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
Propositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
$(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
HasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
$(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
Isabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
Modal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
$(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
Temporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
$(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
ConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
$(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
CASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
$(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
CoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
$(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
COL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
$(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
CspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
$(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
SoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
$(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
OWL/ATC_OWL.der.hs: $(OWL_files) $(GENRULES)
$(GENRULECALL) -i OWL.ReadWrite -o $@ $(OWL_files)
VSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
OMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
$(GENRULECALL) -i OMDoc.ATerm -o $@ $(OMDoc_files)
DFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
$(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
LF/ATC_LF.der.hs: $(LF_files) $(GENRULES)
$(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
Maude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
$(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
ExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
$(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
# all ATC .der.hs files for all logics
atc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
# a rule to create all .der.hs files
gendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
# files to be processed by utils/InlineAxioms
gen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
derived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
$(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files)
$(SETUP): utils/Setup.hs
aterm_sources = $(wildcard atermlib/src/ATerm/*.hs)
cp -f LICENSE.txt atermlib; \
cp -f LIZENZ.txt atermlib; \
cp -f utils/Setup.hs atermlib; \
$(HC) --make -O -o hets hets.hs $(HC_OPTS)
$(MAKE) hets.cgi
ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
hets_maintainers.txt: $(sources)
doc: docs/index.html
-p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
(cd utils/GenerateRules; \
GenerateRules.hs -o ../genRules)
$(HC) --make utils/InlineAxioms/InlineAxioms.hs $(HC_WARN) $(HC_PROF) \
svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
cp Makefile Makefile.orig; \
./clean.sh; \
$(RM) clean.*; utils/replaceAllHeaders.sh)
$(TAR) cvf Hets.tar Hets
# Common/LaTeX_maps.hs generation
utils/genItCorrections: $(GENITCORRECTIONS_deps)
@echo -n "Generating pretty/LaTeX_maps.hs ... "
gen_it_characters gen_it_words >> LaTeX_maps.hs)
-o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
$(RM) hets.cgi
$(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
build: hets.hs packages
fromKif: CASL/fromKif
annos: Common/annos
capa: CASL/capa
hacapa: HasCASL/hacapa
hana: Haskell/hana
h2hf: Haskell/h2hf
Common/Lib/*.hs Comorphisms/*.hs
h2h: Haskell/h2h
showKP: Comorphisms/test/showKP
LANG=C $(PERL) utils/build_version.pl version_nr \
< Driver/Version.in > $@
## two hardcoded dependencies for a correct generation of Version.hs
%.hs: %.der.hs $(DRIFT)
%.hs: %.inline.hs $(INLINEAXIOMS)
%.hs: %.glade utils/appendHaskellPreludeString \
cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
utils/appendHaskellPreludeString $< > $@
## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
# uses intransparently utils/outlineAxioms
utils/genTransMFormFunc.pl $(INLINEAXIOMS)
$(PERL) utils/genTransMFormFunc.pl $< $@
sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \