Makefile revision 812375f0965c289e1cd10182e1240a9a3a85f9a0
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# Makefile
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# $Id$
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# Year: 2004
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# This Makefile will compile the new hets system and provides also
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# targets for test programs during implementation phases.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# !!! Note: This makefile is written for GNU make !!!
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# (gmake on solaris)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiall: hets
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi####################################################################
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi## Some varibles, which control the compilation
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiINCLUDE_PATH =
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 Text/XML/Serializer
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiSOURCE_PATHS = . utils/itcor \
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 \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi Taxonomy CASL_DL SoftFOL OWL OMDoc PGIP Propositional
c40d7343efa60b18ad1ceb316eb337caeea79046cindi
c40d7343efa60b18ad1ceb316eb337caeea79046cindi# the 'replacing spaces' example was taken from the (GNU) Make info manual
c40d7343efa60b18ad1ceb316eb337caeea79046cindiempty =
c40d7343efa60b18ad1ceb316eb337caeea79046cindispace = $(empty) $(empty)
c40d7343efa60b18ad1ceb316eb337caeea79046cindi
c40d7343efa60b18ad1ceb316eb337caeea79046cindiDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
c40d7343efa60b18ad1ceb316eb337caeea79046cindi
c40d7343efa60b18ad1ceb316eb337caeea79046cindi# override on commandline for other architectures
c40d7343efa60b18ad1ceb316eb337caeea79046cindiINSTALLDIR = \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiDRIFT_deps = utils/DrIFT-src/*hs
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrockGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiHC = ghc
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrockHCPKG = ghc-pkg
c40d7343efa60b18ad1ceb316eb337caeea79046cindiPERL = perl
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiHAPPY = happy -sga
c40d7343efa60b18ad1ceb316eb337caeea79046cindiGENRULES = utils/genRules
c40d7343efa60b18ad1ceb316eb337caeea79046cindiGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
c40d7343efa60b18ad1ceb316eb337caeea79046cindi -i Data.Typeable -i Common.ATerm.Lib
c40d7343efa60b18ad1ceb316eb337caeea79046cindiDRIFT = utils/DrIFT
c40d7343efa60b18ad1ceb316eb337caeea79046cindiINLINEAXIOMS = utils/outlineAxioms
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiHADDOCK = haddock
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiOSBYUNAME = $(shell uname)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiifneq ($(findstring SunOS, $(OSBYUNAME)),)
c40d7343efa60b18ad1ceb316eb337caeea79046cindiTAR = gtar
c40d7343efa60b18ad1ceb316eb337caeea79046cindielse
c40d7343efa60b18ad1ceb316eb337caeea79046cindiTAR = tar
c40d7343efa60b18ad1ceb316eb337caeea79046cindiendif
c40d7343efa60b18ad1ceb316eb337caeea79046cindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiARCH = $(subst $(space),,$(shell uname -m))
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiSETUP = utils/Setup
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
c40d7343efa60b18ad1ceb316eb337caeea79046cindiSETUPPACKAGE = ../$(SETUP) clean; \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi ../$(SETUP) configure -p $(SETUPPREFIX) --user; \
c40d7343efa60b18ad1ceb316eb337caeea79046cindi ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
c40d7343efa60b18ad1ceb316eb337caeea79046cindi
c40d7343efa60b18ad1ceb316eb337caeea79046cindiHAXMLVERSION = $(shell $(HCPKG) field HaXml version)
c40d7343efa60b18ad1ceb316eb337caeea79046cindiifneq ($(findstring 1.13.2, $(HAXMLVERSION)),)
c40d7343efa60b18ad1ceb316eb337caeea79046cindiHAXML_PACKAGE = -package HaXml -DHAXML_PACKAGE
c40d7343efa60b18ad1ceb316eb337caeea79046cindiendif
c40d7343efa60b18ad1ceb316eb337caeea79046cindi
c40d7343efa60b18ad1ceb316eb337caeea79046cindi# remove -fno-warn-orphans for older ghcs and add -ifgl
c40d7343efa60b18ad1ceb316eb337caeea79046cindiHC_WARN = -Wall -fno-warn-orphans
c40d7343efa60b18ad1ceb316eb337caeea79046cindiHC_FLAGS = $(HAXML_PACKAGE) \
c40d7343efa60b18ad1ceb316eb337caeea79046cindi $(HC_WARN) -fglasgow-exts -fallow-overlapping-instances \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# -ddump-minimal-imports
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# uncomment to above line to generate .imports files for displayDependencyGraph
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiHC_OPTS_MAC := $(if $(findstring Darwin,$(shell uname -s)), \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi -optl-F$(HOME)/Library/Frameworks -optl-framework -optlGNUreadline,)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiHC_INCLUDE = $(addprefix -i, $(INCLUDE_PATH))
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindilogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SoftFOL \
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye ConstraintCASL Propositional OWL
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.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 \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi SoftFOL/dfg.hs
9dd0f810214fdc8e1af881a9a5c4b6927629ff9ecindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiifneq ($(strip $(UNI_PACKAGE_CONF)),)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi -package uni-server -DUNI_PACKAGE
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
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 \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi ../uni/reactor ../uni/util ../uni/posixutil
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(wildcard ../uni/htk/haddock/*/*.hs)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiTESTTARGETFILES += OWL/OWL11Parser.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Taxonomy/taxonomyTool.hs SoftFOL/tests/CMDL_tests.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Static/test/TestDGTrans.hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiendif
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi### list of directories to run checks in
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiTESTDIRS += Common CASL HasCASL test
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindihs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiPFE_TOOLDIR = $(wildcard ../programatica/tools)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiifneq ($(strip $(PFE_TOOLDIR)),)
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 \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi base/transforms base/transforms/Deriving property \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi property/syntax property/AST property/transforms \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi property/TI property/defs property/parse2 property/parse2/Parser
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
0eb822a1c0c2bea495647510b75f77f0e57633ebcindipfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiPFE_PATH = $(addprefix -i, $(PFE_PATHS))
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiPFE_FLAGS = -package programatica -DPROGRAMATICA
0eb822a1c0c2bea495647510b75f77f0e57633ebcindihappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiLEX_DIR = $(PFE_TOOLDIR)/base/parse2/Lexer
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiprogramatica_pkg: $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(LEX_DIR)/HsLex.hs $(SETUP)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi @if $(HCPKG) field programatica version; then \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi echo "of programatica package found"; else \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi (patch -usNlp0 -d $(PFE_TOOLDIR) \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi -i `pwd`/Haskell/Programatica.patch || exit 0); \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi cp -f utils/programatica.cabal ../programatica/tools; \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi cp -f $(SETUP) ../programatica/tools; \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi (cd ../programatica/tools; \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi ./Setup configure $(SETUPPREFIX); \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi ./Setup build; ./Setup install --user) fi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi$(LEX_DIR)/HsLex.hs: $(LEX_DIR)Gen/HsLexerGen
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi echo "{-# OPTIONS -w #-}" > $@
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $< >> $@
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(LEX_DIR)/HsTokens.hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(HC) --make -fno-monomorphism-restriction -O \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi -i$(PFE_TOOLDIR)/base/tests/HbcLibraries \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi -i$(PFE_TOOLDIR)/base/lib \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $@.hs -o $@
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi strip $@
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindilogics += Haskell
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiderived_sources += Haskell/PreludeString.hs $(LEX_DIR)/HsLex.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(LEX_DIR)Gen/HsLexerGen
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(HC) --make -o $@ $<
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi Haskell/ProgramaticaPrelude.hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi## rule for appendHaskellPreludeString
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(APPENDPRELUDESTRING)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(RM) $@
c40d7343efa60b18ad1ceb316eb337caeea79046cindi $(APPENDPRELUDESTRING) < $< > $@
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi chmod 444 $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi HsModule HsName HsLiteral HsIdent
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#files in base/TI/
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi base/parse2/SourceNames base/syntax/SyntaxRec \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi property/syntax/PropSyntaxStruct
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiHaskell_files = $(addsuffix .hs, \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi## rule for ATC generation
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindihs_der_files += $(hs_clean_files)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiTESTDIRS += ToHaskell
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiendif
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiTESTTARGETS = Test.o $(subst .hs,,$(TESTTARGETFILES))
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
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
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiHC_OPTS = $(HC_FLAGS) $(HC_INCLUDE) $(HC_PACKAGE) $(PFE_FLAGS) $(HC_PROF) \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi -DCASLEXTENSIONS $(HC_OPTS_MAC)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi####################################################################
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi## sources for hets
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindinon_sources = Common/LaTeX_maps.svmono.hs Common/CaslLanguage.hs ./Test.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(SETUP).hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindisources = hets.hs $(filter-out $(non_sources), \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(wildcard $(addsuffix /[A-Z]*hs, $(SOURCE_PATHS))))
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiobjects = $(sources:%.hs=%.o)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindidrifted_files = Common/AS_Annotation.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi Propositional/AS_BASIC_Propositional.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi CoCASL/AS_CoCASL.hs COL/AS_COL.hs ConstraintCASL/AS_ConstraintCASL.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi CASL_DL/AS_CASL_DL.hs OWL/ReadWrite.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(gendrifted_files)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
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 \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi Logic/Prover.hs Common/ExtSign.hs Static/DevGraph.hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiatc_der_files = $(foreach file, $(atc_files), \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi ATC/$(basename $(basename $(notdir $(file)))).der.hs)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiATC/Id.der.hs: Common/Id.hs $(GENRULES)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(GENRULECALL) -o $@ $<
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiATC/Result.der.hs: Common/Result.hs $(GENRULES)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(GENRULECALL) -o $@ $<
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(GENRULECALL) -o $@ $<
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(GENRULECALL) -o $@ $<
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(GENRULECALL) -o $@ $<
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Grothendieck -o $@ $<
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(GENRULECALL) -i ATC.AS_Structured -o $@ $<
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(GENRULECALL) -i ATC.AS_Architecture -o $@ $<
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(GENRULECALL) -i ATC.AS_Annotation -o $@ $<
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
4557a2a1868181b517f5dfe61ba6eeba58edf4c0robj $(GENRULECALL) -x Logic.Prover.ProverTemplate \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi -i ATC.AS_Annotation -o $@ $<
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(GENRULECALL) -i ATC.AS_Library -i ATC.Grothendieck -o $@ $<
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi CASL/AS_Basic_CASL.der.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiIsabelle_files = Isabelle/IsaSign.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Propositional/Sublogic.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian FrostCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiCOL_files = COL/AS_COL.hs COL/COLSign.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi CspCASL/SignCSP.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiSoftFOL_files = SoftFOL/Sign.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiOWL_files = OWL/Sign.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
24db46411fd54f70c35b94bb952eb7ba040e43b4eschrock
0eb822a1c0c2bea495647510b75f77f0e57633ebcindigenerated_rule_files = $(atc_der_files) $(atc_logic_files)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindigendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
12cc75c814f0c017004a9bbc96429911e008601bcindi
12cc75c814f0c017004a9bbc96429911e008601bcindiinline_axiom_files = Comorphisms/CASL2PCFOL.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Comorphisms/Modal2CASL.hs Comorphisms/CASL2TopSort.hs \
12cc75c814f0c017004a9bbc96429911e008601bcindi Comorphisms/CASL2SubCFOL.hs CASL_DL/PredefinedSign.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindigen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiderived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# sources that have {-# OPTIONS -cpp #-}
0eb822a1c0c2bea495647510b75f77f0e57633ebcindicpp_sources = \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Isabelle/CreateTheories.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi SoftFOL/Logic_SoftFOL.hs GUI/Utils.hs Driver/WriteFn.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Propositional/Logic_Propositional.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Comorphisms/LogicList.hs Comorphisms/LogicGraph.hs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi Comorphisms/KnownProvers.hs hets.hs $(happy_files) \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi PGIP/InfoCommands.hs PGIP/ProveCommands.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost# unused, remove when header files are gone
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frostgenrule_header_files = $(wildcard ATC/*.header.hs)
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frostnondoc_sources = $(wildcard utils/DrIFT-src/*.hs) \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost $(wildcard utils/DrIFT-src/*.lhs) \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost $(wildcard utils/GenerateRules/*.hs) \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost $(wildcard utils/InlineAxioms/*.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 Modal/GeneratePatterns.inline.hs \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost Haskell/PreludeString.append.hs Haskell/ProgramaticaPrelude.hs \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost SoftFOL/MathServCommunication.hs \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost $(patsubst %.hs, %.der.hs, $(drifted_files))
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frosthspp_sources = $(patsubst %.hs, %.hspp, $(cpp_sources))
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost# this variable holds the modules that should be documented
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frostdoc_sources = $(filter-out $(nondoc_sources), $(sources) $(hspp_sources))
c4df5970043cca1fec9f8b7ea0e15ffd831189e2Adrian Frost
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frosttax_sources = Taxonomy/AbstractGraphView.hs Taxonomy/MMiSSOntology.hs \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost Taxonomy/MMiSSOntologyGraph.hs Taxonomy/OntoParser.hs
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frosttax_objects = $(patsubst %.hs, %.o, $(tax_sources))
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost####################################################################
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost### targets
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 \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost count doc apache_doc post_doc4apache fromKif \
e3d60c9bd991a9826cbfa63b10595d44e123b9c4Adrian Frost programatica_pkg maintainer-clean annos \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi derivedSources install_hets install release cgi ghci
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi$(SETUP): utils/Setup.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(HC) --make -O -o $@ $<
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindipackages: http_pkg syb_pkg shellac_pkg shread_pkg hxt_pkg haifa_pkg \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi programatica_pkg
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindihttp_pkg: utils/http.tgz $(SETUP)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @if $(HCPKG) field HTTP version; then \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi echo "of HTTP package found"; else \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) -r http; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(TAR) zxf utils/http.tgz; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi (cd http; $(SETUPPACKAGE)) fi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindisyb_pkg: $(SETUP)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @if $(HCPKG) field syb-generics version; then \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi echo "of syb-generics package found"; else \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi (cd syb-generics; $(SETUPPACKAGE)) fi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindishellac_pkg: utils/shellac.tgz $(SETUP)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @if $(HCPKG) field Shellac version; then \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi echo "of shellac package found"; else \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) -r shellac; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(TAR) zxf utils/shellac.tgz; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi (cd shellac; $(SETUPPACKAGE)) fi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindishread_pkg: utils/shread.tgz $(SETUP) shellac_pkg
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @if $(HCPKG) field Shellac-readline version; then \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi echo "of shellac-readline package found"; else \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) -rf shread; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(TAR) zxf utils/shread.tgz; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi (cd shread; $(SETUPPACKAGE)) fi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindihxt_pkg: $(SETUP) http_pkg
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @if $(HCPKG) field hxt version; then \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi echo "of hxt package found"; else \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) -rf hxt; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(TAR) zxf utils/hxt.tgz; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi (cd hxt; $(SETUPPACKAGE)) fi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindihaifa_pkg: $(SETUP) hxt_pkg syb_pkg
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @if $(HCPKG) field HAIFA version; then \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi echo "of HAIFA package found"; else \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi (cd haifa-lite; $(SETUPPACKAGE)) fi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiprogramatica_pkg:
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindihets-opt:
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(MAKE) distclean
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(MAKE) derivedSources
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(MAKE) clean
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(MAKE) hets-optimized
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindihets-optimized: $(derived_sources)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(HC) --make -O -o hets hets.hs $(HC_OPTS)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi strip hets
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindihets-old: $(objects)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(HC) -o hets $(HC_OPTS) $(objects)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindicgi:
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(MAKE) distclean
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(MAKE) derivedSources
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(MAKE) real_clean
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(MAKE) hets.cgi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindihets.cgi: $(sources) GUI/hets_cgi.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi strip hets.cgi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindihets_maintainers.txt: $(sources)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo 'File : Maintainer' > $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo -n Generating $@ " "
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @egrep -m 1 "Maintainer" $(sources) | \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi sed -e 's/: *Maintainer *: */ : /' >> $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo " done"
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi###############################
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### count lines of code
0eb822a1c0c2bea495647510b75f77f0e57633ebcindicount: $(sources)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi wc -l $(sources)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi###############################
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### Documentation via haddock
0eb822a1c0c2bea495647510b75f77f0e57633ebcindidoc: docs/index.html
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# generate haddock documentation with links to sources
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# the interface treatment is stolen from uni/mk/suffix.mk
0eb822a1c0c2bea495647510b75f77f0e57633ebcindidocs/index.html: $(doc_sources)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) -r docs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi mkdir docs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi cp -r -L ../uni/www docs/www || mkdir docs/www
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi HINTERFACES0=`find -L docs/www -name '*.haddock' \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi -printf "--read-interface=www/%P,%p "` ; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi HINTERFACES=`echo $$HINTERFACES0 | \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(PERL) -pe 's+/[^/]*.haddock,+,+g'` ; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(HADDOCK) -o docs -h -v -s ../%F $$HINTERFACES \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi -t 'Hets - the Heterogeneous Tool Set' \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi -p Hets-Haddock-Prologue.txt $(doc_sources)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# sources are not copied here
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiapache_doc:
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) -r docs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi cvs up -d ; echo "CVS exited with: " $$?
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(MAKE) hets-opt
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(MAKE) doc
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(MAKE) post_doc4apache
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(MAKE) o_clean
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(MAKE) hets.cgi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindipost_doc4apache:
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) -r a-docs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi cp -r docs a-docs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(PERL) utils/post_process_docs.pl a-docs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi 'Common.Lib.Map.html:Common.Lib._Map.html'
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(PERL) utils/post_process_docs.pl a-docs \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi 'Data.Map.html:Data._Map.html'
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi###############################
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### release management
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiderivedSources: $(derived_sources) $(hspp_sources)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi$(DRIFT): $(DRIFT_deps)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT && \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi strip ../DrIFT)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi$(GENRULES): $(DRIFT) $(GENERATERULES_deps)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi (cd utils/GenerateRules; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi GenerateRules.hs -o ../genRules && strip ../genRules)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# "-package hssource" for ghc-5.04.2
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi$(INLINEAXIOMS): $(INLINEAXIOMS_deps)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(HC) --make utils/InlineAxioms/InlineAxioms.hs $(HC_WARN) $(HC_PROF) \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi -i../.. -o $(INLINEAXIOMS)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi strip $(INLINEAXIOMS)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiREV = trunk
0eb822a1c0c2bea495647510b75f77f0e57633ebcindirelease:
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) -r Hets
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) -r uni
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi if [ -d ../uni ] ; then ln -s ../uni uni ; fi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) -r programatica
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi if [ -d ../programatica ] ; then \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi mkdir programatica; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi ln -s ../../programatica/tools programatica/tools ; fi
9dd0f810214fdc8e1af881a9a5c4b6927629ff9ecindi (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
9dd0f810214fdc8e1af881a9a5c4b6927629ff9ecindi cp Makefile Makefile.orig; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi cp ReleaseMakefile Makefile; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi ./clean.sh; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) clean.*; utils/replaceAllHeaders.sh)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(TAR) cvf Hets.tar Hets
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiinstall-hets:
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi chmod g+w hets
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi cp -p hets $(INSTALLDIR)/versions/hets-`cat version_nr`
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi cp -p version_nr $(INSTALLDIR)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi (cd $(INSTALLDIR); $(RM) hets; \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi ln -s versions/hets-`cat version_nr` hets; $(RM) version_nr)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiinstall: hets-opt install-hets
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
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 standard -o $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# compile $< -b . -k web -o $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi###################################
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### Common/LaTeX_maps.hs generation
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiutils/genItCorrections: $(GENITCORRECTIONS_deps)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(HC) --make -o $@ $<
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi strip $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
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)
9dd0f810214fdc8e1af881a9a5c4b6927629ff9ecindi @(cd pretty >/dev/null; ../utils/genItCorrections \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi gen_it_characters gen_it_words >> LaTeX_maps.hs)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo "ready"
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo "please copy the file manually to Common"
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi#############################
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### ATC DrIFT-rule generation
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindigenRules: $(generated_rule_files)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyPropositional/ATC_Propositional.der.hs: $(Propositional_files) \
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ \
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(Propositional_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Isabelle_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbySoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltbyclean_genRules:
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(RM) $(generated_rule_files) $(gendrifted_files) $(hspp_sources) \
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(hs_clean_files)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby###############
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby### clean up
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltbyclean: bin_clean o_clean clean_pretty
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby### removes all *.o, *.hi and *.p_o files in all subdirectories
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltbyo_clean:
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby find . -name \*.o -o -name \*.hi -o -name \*.p_o | xargs $(RM) -f
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby### remove binaries
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltbybin_clean:
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(RM) hets
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(RM) hets.cgi
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(RM) $(SETUP)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(RM) $(TESTTARGETS)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltbyclean_pretty:
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby pretty/generated_words.tex
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby### additionally removes the library files
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltbyreal_clean: clean
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby### clean user packages
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltbypackage_clean:
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(HCPKG) unregister HAIFA --user || exit 0
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(HCPKG) unregister programatica --user || exit 0
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby $(HCPKG) unregister hxt --user || exit 0
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(HCPKG) unregister Shellac-readline --user || exit 0
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(HCPKG) unregister HTTP --user || exit 0
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(HCPKG) unregister syb-generics --user || exit 0
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(HCPKG) unregister Shellac --user || exit 0
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### additionally removes generated files not in the CVS tree
0eb822a1c0c2bea495647510b75f77f0e57633ebcindidistclean: clean clean_genRules
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) $(derived_sources)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) Modal/GeneratePatterns.inline.hs utils/appendHaskellPreludeString
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindimaintainer-clean: distclean package_clean
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) -r $(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi####################################################################
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### test targets
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi####################################################################
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### interactive
0eb822a1c0c2bea495647510b75f77f0e57633ebcindighci: $(derived_sources)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(HC)i $(HC_OPTS)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### christian's target
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### CASL parser
0eb822a1c0c2bea495647510b75f77f0e57633ebcindifromKif: CASL/fromKif
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### Annos parser
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiannos: Common/annos
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### CASL parser
0eb822a1c0c2bea495647510b75f77f0e57633ebcindicapa: CASL/capa
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### HasCASL parser
0eb822a1c0c2bea495647510b75f77f0e57633ebcindihacapa: HasCASL/hacapa
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi### Haskell analysis
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindihana: Haskell/hana
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### Haskell to Isabelle-HOLCF translation
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindih2hf: Haskell/h2hf
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi Common/Lib/*.hs Comorphisms/*.hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(HC) -O --make -o $@ $< $(HC_FLAGS) $(PFE_FLAGS)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### HasCASL to Haskell translation
0eb822a1c0c2bea495647510b75f77f0e57633ebcindih2h: Haskell/h2h
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### test program to check the known provers
0eb822a1c0c2bea495647510b75f77f0e57633ebcindishowKP: Comorphisms/test/showKP
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi### run tests in other directories
0eb822a1c0c2bea495647510b75f77f0e57633ebcindicheck: $(TESTTARGETS)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robj####################################################################
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock## Preparing the version of Hets
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robjDriver/Version.hs: Driver/Version.in version_nr
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robj $(RM) $@
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robj LANG=C $(PERL) utils/build_version.pl version_nr \
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robj < Driver/Version.in > $@
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robj chmod 444 $@
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock
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
81d9f076db88c1f40c85831ce1ebb444a209c5a8Robert Johnstonhets.hs: Driver/Version.hs
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robj
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robjATC/DevGraph.hs: Static/DevGraph.hs
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robj
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 Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robj$(CASL_DEPENDENT_BINARIES): $(sources) $(derived_sources)
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robj# CASL_DL/Logic.hs: CASL_DL/PredefinedSign.hs
2eeaed14a5e2ed9bd811643ad5bffc3510ca0310robj####################################################################
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock## rules for DrIFT
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock.SUFFIXES:
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock%: %.hs packages
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock $(HC) --make -o $@ $< $(HC_OPTS)
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock%.hs: %.y
0b1b4412cfd6c4ac5467dbe6f4088dcec4f55fe8Eric Schrock $(HAPPY) -o $@.tmp $<
c93c462eec9d46f84d567abf52eb29a27c2e134bCheng Sean Ye echo "{-# OPTIONS -w #-}" > $@
c93c462eec9d46f84d567abf52eb29a27c2e134bCheng Sean Ye cat $@.tmp >> $@
c93c462eec9d46f84d567abf52eb29a27c2e134bCheng Sean Ye $(RM) $@.tmp
c93c462eec9d46f84d567abf52eb29a27c2e134bCheng Sean Ye
c93c462eec9d46f84d567abf52eb29a27c2e134bCheng Sean Ye%.hs: %.der.hs $(DRIFT)
c93c462eec9d46f84d567abf52eb29a27c2e134bCheng Sean Ye $(RM) $@
738c43b514a3570e657652233a5a19291a328a28Eric Schrock ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
738c43b514a3570e657652233a5a19291a328a28Eric Schrock chmod 444 $@
738c43b514a3570e657652233a5a19291a328a28Eric Schrock
738c43b514a3570e657652233a5a19291a328a28Eric Schrock## rules for inlineAxioms
738c43b514a3570e657652233a5a19291a328a28Eric Schrock%.hs: %.inline.hs $(INLINEAXIOMS)
738c43b514a3570e657652233a5a19291a328a28Eric Schrock $(RM) $@
738c43b514a3570e657652233a5a19291a328a28Eric Schrock $(INLINEAXIOMS) $< > $@
738c43b514a3570e657652233a5a19291a328a28Eric Schrock chmod 444 $@
738c43b514a3570e657652233a5a19291a328a28Eric Schrock
738c43b514a3570e657652233a5a19291a328a28Eric Schrock## rule for cpp and haddock
738c43b514a3570e657652233a5a19291a328a28Eric Schrock%.hspp: %.hs
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(HC) -E -cpp -D__HADDOCK__ \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi -DUNI_PACKAGE -DCASLEXTENSIONS -DPROGRAMATICA -optP -P $<
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
c93c462eec9d46f84d567abf52eb29a27c2e134bCheng Sean Ye## compiling rules for object and interface files
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi%.o %.hi: %.hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(HC) -c $< $(HC_OPTS)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi%.o %.hi: %.lhs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(HC) -c $< $(HC_OPTS)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi## compiling rules for dependencies
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi%.d : %.hs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi%.d : %.lhs
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi## generate the inline file for the predefined CASL_DL sign
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiCASL_DL/PredefinedSign.inline.hs: \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi CASL_DL/PredefinedSign.inline.hs.in utils/appendHaskellPreludeString \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi CASL_DL/PredDatatypes.het
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi utils/appendHaskellPreludeString CASL_DL/PredDatatypes.het \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi < CASL_DL/PredefinedSign.inline.hs.in > $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi echo " )" >> $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi chmod 444 $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# Warning: Don't change the order of the depencies!!
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiCASL_DL/PredDatatypes.het: utils/transformLibAsBasicSpec.pl \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi CASL_DL/Datatypes.het
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(PERL) $+ > $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi chmod 444 $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# uses intransparently utils/outlineAxioms
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi utils/genTransMFormFunc.pl $(INLINEAXIOMS)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(RM) $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(PERL) utils/genTransMFormFunc.pl $< $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi chmod 444 $@
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Yeinitialize_installer:
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye @if [ -d $(INSTALLER_DIR) ] ; then \
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye echo "copy file to $(INSTALLER_DIR)" ; \
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye else \
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye echo "create $(INSTALLER_DIR)" ;\
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye mkdir -p $(INSTALLER_DIR) ; \
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye fi
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 rm Makefile.inst ;\
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 Ready to create installers for Hets
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi @echo Please do
738c43b514a3570e657652233a5a19291a328a28Eric Schrock @echo " -> cd $(INSTALLER_DIR)"
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye @echo " -> make"
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye @echo and wait until it is finished
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye
9c94f155585ea35e938fea603bc227c685223abdCheng Sean Ye
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi