Makefile revision 812375f0965c289e1cd10182e1240a9a3a85f9a0
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# Year: 2004
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# This Makefile will compile the new hets system and provides also
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# targets for test programs during implementation phases.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# !!! Note: This makefile is written for GNU make !!!
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# (gmake on solaris)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi####################################################################
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi## Some varibles, which control the compilation
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi CspCASL ATC Proofs Comorphisms Isabelle Driver Modifications \
c40d7343efa60b18ad1ceb316eb337caeea79046cindi# the 'replacing spaces' example was taken from the (GNU) Make info manual
c40d7343efa60b18ad1ceb316eb337caeea79046cindiDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
c40d7343efa60b18ad1ceb316eb337caeea79046cindi# override on commandline for other architectures
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrockGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
c40d7343efa60b18ad1ceb316eb337caeea79046cindiGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
c40d7343efa60b18ad1ceb316eb337caeea79046cindi ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
c40d7343efa60b18ad1ceb316eb337caeea79046cindi# remove -fno-warn-orphans for older ghcs and add -ifgl
c40d7343efa60b18ad1ceb316eb337caeea79046cindi $(HC_WARN) -fglasgow-exts -fallow-overlapping-instances \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# -ddump-minimal-imports
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# uncomment to above line to generate .imports files for displayDependencyGraph
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiHC_OPTS_MAC := $(if $(findstring Darwin,$(shell uname -s)), \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi -optl-F$(HOME)/Library/Frameworks -optl-framework -optlGNUreadline,)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindilogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SoftFOL \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi Common/ATerm/ATermDiffMain.hs Common/annos.hs Common/test_parser.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi SoftFOL/tests/soapTest.hs Comorphisms/test/sublogicGraph.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# some modules from uni for haddock
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# if uni/server is included also HaXml sources are needed
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiuni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Taxonomy/taxonomyTool.hs SoftFOL/tests/CMDL_tests.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi### list of directories to run checks in
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindihs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi property/TI property/defs property/parse2 property/parse2/Parser
0eb822a1c0c2bea495647510b75f77f0e57633ebcindipfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
0eb822a1c0c2bea495647510b75f77f0e57633ebcindihappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiprogramatica_pkg: $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi echo "of programatica package found"; else \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi cp -f utils/programatica.cabal ../programatica/tools; \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi echo "{-# OPTIONS -w #-}" > $@
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiderived_sources += Haskell/PreludeString.hs $(LEX_DIR)/HsLex.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi## rule for appendHaskellPreludeString
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi## rule for ATC generation
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi### Profiling (only for debugging)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi### Attention every module must be compiled with profiling or the linker
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi### cannot link the various .o files properly. So after switching on
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi### Profiling, do an 'gmake real_clean; gmake'
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi### Comment in the following line for switching on profiling.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# HC_PROF = -prof -auto-all -fignore-asserts -osuf p_o +RTS -K100m -RTS
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiHC_OPTS = $(HC_FLAGS) $(HC_INCLUDE) $(HC_PACKAGE) $(PFE_FLAGS) $(HC_PROF) \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi####################################################################
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi## sources for hets
0eb822a1c0c2bea495647510b75f77f0e57633ebcindinon_sources = Common/LaTeX_maps.svmono.hs Common/CaslLanguage.hs ./Test.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi CoCASL/AS_CoCASL.hs COL/AS_COL.hs ConstraintCASL/AS_ConstraintCASL.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Grothendieck -o $@ $<
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(GENRULECALL) -i ATC.AS_Library -i ATC.Grothendieck -o $@ $<
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian FrostCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindigenerated_rule_files = $(atc_der_files) $(atc_logic_files)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindigendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Comorphisms/Modal2CASL.hs Comorphisms/CASL2TopSort.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindigen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiderived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# sources that have {-# OPTIONS -cpp #-}
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi SoftFOL/Logic_SoftFOL.hs GUI/Utils.hs Driver/WriteFn.hs \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost# unused, remove when header files are gone
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frostgenrule_header_files = $(wildcard ATC/*.header.hs)
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frostnondoc_sources = $(wildcard utils/DrIFT-src/*.hs) \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost $(cpp_sources) $(pfe_sources) $(gen_inline_axiom_files) \
c4df5970043cca1fec9f8b7ea0e15ffd831189e2Adrian Frost $(genrule_header_files) $(generated_rule_files) \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hspp \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost Haskell/PreludeString.append.hs Haskell/ProgramaticaPrelude.hs \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frosthspp_sources = $(patsubst %.hs, %.hspp, $(cpp_sources))
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost# this variable holds the modules that should be documented
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frostdoc_sources = $(filter-out $(nondoc_sources), $(sources) $(hspp_sources))
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frosttax_sources = Taxonomy/AbstractGraphView.hs Taxonomy/MMiSSOntology.hs \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost Taxonomy/MMiSSOntologyGraph.hs Taxonomy/OntoParser.hs
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frosttax_objects = $(patsubst %.hs, %.o, $(tax_sources))
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost####################################################################
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost real_clean bin_clean package_clean distclean packages \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost http_pkg syb_pkg shellac_pkg shread_pkg hxt_pkg haifa_pkg \
c4df5970043cca1fec9f8b7ea0e15ffd831189e2Adrian Frost check capa hacapa h2h h2hf showKP clean_genRules genRules \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindipackages: http_pkg syb_pkg shellac_pkg shread_pkg hxt_pkg haifa_pkg \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi echo "of HTTP package found"; else \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi echo "of syb-generics package found"; else \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi echo "of shellac package found"; else \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi echo "of shellac-readline package found"; else \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi echo "of hxt package found"; else \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi echo "of HAIFA package found"; else \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo 'File : Maintainer' > $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo " done"
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi###############################
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### count lines of code
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi###############################
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### Documentation via haddock
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# generate haddock documentation with links to sources
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# the interface treatment is stolen from uni/mk/suffix.mk
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi -t 'Hets - the Heterogeneous Tool Set' \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# sources are not copied here
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi###############################
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### release management
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT && \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# "-package hssource" for ghc-5.04.2
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(HC) --make utils/InlineAxioms/InlineAxioms.hs $(HC_WARN) $(HC_PROF) \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi -i../.. -o $(INLINEAXIOMS)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi if [ -d ../programatica ] ; then \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi ln -s ../../programatica/tools programatica/tools ; fi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi cp -p hets $(INSTALLDIR)/versions/hets-`cat version_nr`
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi ln -s versions/hets-`cat version_nr` hets; $(RM) version_nr)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindipack/install-%.jar: pack/install-%.xml pack/UserInputSpec-%.xml hets.in hets
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi ## TODO: add more dependencies and use hets-opt
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# compile $< -b . -k web -o $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi###################################
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### Common/LaTeX_maps.hs generation
0eb822a1c0c2bea495647510b75f77f0e57633ebcindipretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo -n "Generating pretty/LaTeX_maps.hs ... "
9dd0f810214fdc8e1af881a9a5c4b6927629ff9ecindi @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo "ready"
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo "please copy the file manually to Common"
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi#############################
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### ATC DrIFT-rule generation
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyPropositional/ATC_Propositional.der.hs: $(Propositional_files) \
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ \
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Isabelle_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbySoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(RM) $(generated_rule_files) $(gendrifted_files) $(hspp_sources) \
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby###############
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby### removes all *.o, *.hi and *.p_o files in all subdirectories
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby find . -name \*.o -o -name \*.hi -o -name \*.p_o | xargs $(RM) -f
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby### remove binaries
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby### additionally removes the library files
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby### clean user packages
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(HCPKG) unregister programatica --user || exit 0
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### additionally removes generated files not in the CVS tree
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) Modal/GeneratePatterns.inline.hs utils/appendHaskellPreludeString
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) -r $(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi####################################################################
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### test targets
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi####################################################################
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### interactive
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### christian's target
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### CASL parser
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### Annos parser
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### CASL parser
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### HasCASL parser
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi### Haskell analysis
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### Haskell to Isabelle-HOLCF translation
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### HasCASL to Haskell translation
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### test program to check the known provers
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### run tests in other directories
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robj####################################################################
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock## Preparing the version of Hets
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock## two hardcoded dependencies for a correct generation of Version.hs
81d9f076db88c1f40c85831ce1ebb444a209c5a8Robert JohnstonDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock## two dependencies for avoidence of circular prerequisites
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric SchrockCASL_DEPENDENT_BINARIES= hets CASL/capa CASL/fromKif \
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock Common/annos Common/test_parser Comorphisms/test/showKP \
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robj$(CASL_DEPENDENT_BINARIES): $(sources) $(derived_sources)
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robj####################################################################
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock## rules for DrIFT
c93c462eec9d46f84d567abf52eb29a27c2e134bCheng Sean Ye echo "{-# OPTIONS -w #-}" > $@
738c43b514a3570e657652233a5a19291a328a28Eric Schrock ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
738c43b514a3570e657652233a5a19291a328a28Eric Schrock## rules for inlineAxioms
738c43b514a3570e657652233a5a19291a328a28Eric Schrock## rule for cpp and haddock
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi -DUNI_PACKAGE -DCASLEXTENSIONS -DPROGRAMATICA -optP -P $<
c93c462eec9d46f84d567abf52eb29a27c2e134bCheng Sean Ye## compiling rules for object and interface files
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi## compiling rules for dependencies
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi## generate the inline file for the predefined CASL_DL sign
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi CASL_DL/PredefinedSign.inline.hs.in utils/appendHaskellPreludeString \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi utils/appendHaskellPreludeString CASL_DL/PredDatatypes.het \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi echo " )" >> $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# Warning: Don't change the order of the depencies!!
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiCASL_DL/PredDatatypes.het: utils/transformLibAsBasicSpec.pl \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# uses intransparently utils/outlineAxioms
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye @if [ -d $(INSTALLER_DIR) ] ; then \
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye @sed "s/^\(HETS_VERSION=\).*/\1`cat version_nr`/" Makefile.installer > Makefile.inst ;\
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye sed "s/^\(SPASS_DIR_MAC=\).*/\1`ls utils/SPASS-ppc-mac/ | grep SPASS`/" Makefile.inst > Makefile.inst2 ;\
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye mv Makefile.inst2 $(INSTALLER_DIR)/Makefile ;\
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye cp -r utils/getAllHets.sh utils/SPASS-intel-mac utils/SPASS-ppc-mac $(INSTALLER_DIR)/
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye @echo =========================================================================
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo If you have not logged in \'cvs.haskell.org\' and \'cvs-agbkb.informatik.uni-bremen.de\'
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo "then please first login:"
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo " cvs -d :pserver:anoncvs@cvs.haskell.org:/cvs login"
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo " the password is cvs"
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye @echo " cvs -d :pserver:cvsread@cvs-agbkb.informatik.uni-bremen.de:/repository login "
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo " the password is "
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo =========================================================================
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye @echo " -> make"