Makefile revision 81c15526a787941b48b02ae8786782f9fb578801
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Makefile
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# $Id$
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# Year: 2004
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# This Makefile will compile the new hets system and provides also
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# targets for test programs during implementation phases.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# !!! Note: This makefile is written for GNU make !!!
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# (gmake on solaris)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederall: hets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder## Some varibles, which control the compilation
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederINCLUDE_PATH =
ce8b15da31cd181b7e90593cbbca98f47eda29d6Till MossakowskiHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
760ae19a92dde8249679a674f93f58d26a7c5f6bChristian Maeder Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
760ae19a92dde8249679a674f93f58d26a7c5f6bChristian Maeder Text/XML/Serializer
88c800932dd7053322501ea2039d9f234be6866cKlaus Luettich
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederSOURCE_PATHS = . utils/itcor \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder CspCASL ATC Proofs Comorphisms Isabelle Driver Modifications \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder Taxonomy CASL_DL SoftFOL OWL OMDoc PGIP Propositional
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
8410667510a76409aca9bb24ff0eda0420088274Christian Maederempty =
8410667510a76409aca9bb24ff0eda0420088274Christian Maederspace = $(empty) $(empty)
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich# override on commandline for other architectures
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederINSTALLDIR = \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederDRIFT_deps = utils/DrIFT-src/*hs
e593b89bfd4952698dc37feced21cefe869d87a2Christian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus LuettichINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
c6fcd42c6d6d9dae8c7835c24fcb7ce8531a9050Christian Maeder
c6fcd42c6d6d9dae8c7835c24fcb7ce8531a9050Christian MaederHC = ghc
31c49f2fa23d4ac089f35145d80a224deb6ea7e4Till MossakowskiHCPKG = ghc-pkg
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus LuettichPERL = perl
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHAPPY = happy -sga
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian MaederGENRULES = utils/genRules
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus LuettichGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder -i Data.Typeable -i Common.ATerm.Lib
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederDRIFT = utils/DrIFT
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederINLINEAXIOMS = utils/outlineAxioms
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederHADDOCK = haddock
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederOSBYUNAME = $(shell uname)
c0c2380bced8159ff0297ece14eba948bd236471Christian Maederifneq ($(findstring SunOS, $(OSBYUNAME)),)
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederTAR = gtar
c0c2380bced8159ff0297ece14eba948bd236471Christian Maederelse
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederTAR = tar
c0c2380bced8159ff0297ece14eba948bd236471Christian Maederendif
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederARCH = $(subst $(space),,$(shell uname -m))
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederSETUP = utils/Setup
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus LuettichSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederSETUPPACKAGE = ../$(SETUP) clean; \
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich ../$(SETUP) configure -p $(SETUPPREFIX) --user; \
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus LuettichHAXMLVERSION = $(shell $(HCPKG) field HaXml version)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederifneq ($(findstring 1.13.2, $(HAXMLVERSION)),)
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederHAXML_PACKAGE = -package HaXml -DHAXML_PACKAGE
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederendif
77a65251ee036c6aaf09c2775315a4ee24259fbdJorina Freya Gerken
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# remove -fno-warn-orphans for older ghcs and add -ifgl
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHC_WARN = -Wall -fno-warn-orphans
4d7d7f9a423490731c73403c7806bd66967da946Christian MaederHC_FLAGS = $(HAXML_PACKAGE) \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC_WARN) -fglasgow-exts -fallow-overlapping-instances \
97812b7ce9860bf514a8822a63503451795dbc65Klaus Luettich# -ddump-minimal-imports
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# uncomment to above line to generate .imports files for displayDependencyGraph
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHC_OPTS_MAC := $(if $(findstring Darwin,$(shell uname -s)), \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder -optl-F$(HOME)/Library/Frameworks -optl-framework -optlGNUreadline,)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHC_INCLUDE = $(addprefix -i, $(INCLUDE_PATH))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckerslogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SoftFOL \
4e7050bcbcf0f372a5bad32ecd0282bccabf0983Klaus Luettich ConstraintCASL Propositional OWL
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder Common/ATerm/ATermDiffMain.hs Common/annos.hs Common/test_parser.hs \
ce50fe187cdae64e75e510daafb78156280bdb91Christian Maeder SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
ebe517300051f765f2ed856a789dd5613d681ab0Klaus Luettich SoftFOL/tests/soapTest.hs Comorphisms/test/sublogicGraph.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers SoftFOL/dfg.hs
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich
6ae5607d2def114f998fd49bac4eef12a2620fafChristian MaederUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maederifneq ($(strip $(UNI_PACKAGE_CONF)),)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder -package uni-server -DUNI_PACKAGE
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# some modules from uni for haddock
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# if uni/server is included also HaXml sources are needed
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederuni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
ebe517300051f765f2ed856a789dd5613d681ab0Klaus Luettich ../uni/reactor ../uni/util ../uni/posixutil
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckersuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich $(wildcard ../uni/htk/haddock/*/*.hs)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederTESTTARGETFILES += OWL/OWL11Parser.hs \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder Taxonomy/taxonomyTool.hs SoftFOL/tests/CMDL_tests.hs \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder Static/test/TestDGTrans.hs
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maederendif
ce50fe187cdae64e75e510daafb78156280bdb91Christian Maeder
4e7050bcbcf0f372a5bad32ecd0282bccabf0983Klaus Luettich### list of directories to run checks in
6ae5607d2def114f998fd49bac4eef12a2620fafChristian MaederTESTDIRS += Common CASL HasCASL test
e593b89bfd4952698dc37feced21cefe869d87a2Christian Maeder
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederPFE_TOOLDIR = $(wildcard ../programatica/tools)
9df11f85fd7f8c4745d64464876e84ec4e263692Christian Maederifneq ($(strip $(PFE_TOOLDIR)),)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix ReckersPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
9df11f85fd7f8c4745d64464876e84ec4e263692Christian Maeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers base/transforms base/transforms/Deriving property \
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettich property/syntax property/AST property/transforms \
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettich property/TI property/defs property/parse2 property/parse2/Parser
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder
c432483b64662e8db604a58758cd18ea7fa65659Christian MaederPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maederpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian MaederPFE_PATH = $(addprefix -i, $(PFE_PATHS))
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian MaederPFE_FLAGS = -package programatica -DPROGRAMATICA
e8d782e6e650b71a2b0ee8461fd8d9fa31525591Christian Maederhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
0310dabcd02da51f78f84e7a73d4c7b2dd3e8507Christian Maeder
c5e10ba19c9854112e5d29f491759e8e89f83652Christian MaederLEX_DIR = $(PFE_TOOLDIR)/base/parse2/Lexer
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder
88c66e48620750c42b94db9feb01b42ae23dba97Till Mossakowskiprogramatica_pkg: $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
ce8b15da31cd181b7e90593cbbca98f47eda29d6Till Mossakowski $(LEX_DIR)/HsLex.hs $(SETUP)
b3dca469a9e267d6d71acfdeca7bf284d0581dc7Till Mossakowski @if $(HCPKG) field programatica version; then \
8659594bb40eb5f3da5439692f0908300947191eSonja Gröning echo "of programatica package found"; else \
8c692d0cc44e7df93f58a3eed0d9774ba5908339Jorina Freya Gerken (patch -usNlp0 -d $(PFE_TOOLDIR) \
eeb419aa20c97b4af973e97ee6ae77a8eed29e15Till Mossakowski -i `pwd`/Haskell/Programatica.patch || exit 0); \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers cp -f utils/programatica.cabal ../programatica/tools; \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder cp -f $(SETUP) ../programatica/tools; \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers (cd ../programatica/tools; \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder ./Setup configure $(SETUPPREFIX); \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder ./Setup build; ./Setup install --user) fi
8c692d0cc44e7df93f58a3eed0d9774ba5908339Jorina Freya Gerken
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder$(LEX_DIR)/HsLex.hs: $(LEX_DIR)Gen/HsLexerGen
7d09621f989f5e6dfbf603b36b2fccbacf639a3cTill Mossakowski echo "{-# OPTIONS -w #-}" > $@
ce8b15da31cd181b7e90593cbbca98f47eda29d6Till Mossakowski $< >> $@
ce8b15da31cd181b7e90593cbbca98f47eda29d6Till Mossakowski
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(LEX_DIR)/HsTokens.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -fno-monomorphism-restriction -O \
51e836611726885f6d2719d959ed1b51f8fd06f4Klaus Luettich -i$(PFE_TOOLDIR)/base/tests/HbcLibraries \
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski -i$(PFE_TOOLDIR)/base/lib \
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
327a9b9bf44b6e33f71fee7526dc1c0035251591Christian Maeder $@.hs -o $@
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder strip $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederlogics += Haskell
a348b2eb46eb51f376c910d6dd4415fdab6713bdChristian Maederderived_sources += Haskell/PreludeString.hs $(LEX_DIR)/HsLex.hs \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder $(LEX_DIR)Gen/HsLexerGen
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
40a2368e1fa061488d0be6886368ab1c8391b97fChristian Maeder $(HC) --make -o $@ $<
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder Haskell/ProgramaticaPrelude.hs
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder## rule for appendHaskellPreludeString
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder $(APPENDPRELUDESTRING)
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder $(RM) $@
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder $(APPENDPRELUDESTRING) < $< > $@
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder chmod 444 $@
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke HsModule HsName HsLiteral HsIdent
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke#files in base/TI/
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder property/syntax/PropSyntaxStruct
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHaskell_files = $(addsuffix .hs, \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder
88c800932dd7053322501ea2039d9f234be6866cKlaus Luettich## rule for ATC generation
ed9207cf24e96b0d6f59985822054ae28cb69b2eChristian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maederhs_der_files += $(hs_clean_files)
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder
b10267ae0a6523b73113fc2dee9ea628266fce60Christian MaederTESTDIRS += ToHaskell
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian MaederTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maederendif
621799f077b3a1ed0f5a35382cfad0602c255b20Klaus Luettich
05a8b581f98b928baca6dab60cd20277659ac760Christian MaederTESTTARGETS = Test.o $(subst .hs,,$(TESTTARGETFILES))
ed9207cf24e96b0d6f59985822054ae28cb69b2eChristian Maeder
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder### Profiling (only for debugging)
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder### Attention every module must be compiled with profiling or the linker
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### cannot link the various .o files properly. So after switching on
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder### Profiling, do an 'gmake real_clean; gmake'
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### Comment in the following line for switching on profiling.
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich# HC_PROF = -prof -auto-all -fignore-asserts -osuf p_o +RTS -K100m -RTS
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich
b905126bab9454b89041f92b3c50bb9efc85e427Klaus LuettichHC_OPTS = $(HC_FLAGS) $(HC_INCLUDE) $(HC_PACKAGE) $(PFE_FLAGS) $(HC_PROF) \
51e836611726885f6d2719d959ed1b51f8fd06f4Klaus Luettich -DCASLEXTENSIONS $(HC_OPTS_MAC)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
f29371d8bd5a232c974e736b06d0d8a655d320fbKlaus Luettich####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## sources for hets
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maedernon_sources = Common/LaTeX_maps.svmono.hs Common/CaslLanguage.hs ./Test.hs \
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke $(SETUP).hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedersources = hets.hs $(filter-out $(non_sources), \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(wildcard $(addsuffix /[A-Z]*hs, $(SOURCE_PATHS))))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederobjects = $(sources:%.hs=%.o)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederdrifted_files = Common/AS_Annotation.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Propositional/AS_BASIC_Propositional.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder CoCASL/AS_CoCASL.hs COL/AS_COL.hs ConstraintCASL/AS_ConstraintCASL.hs \
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich CASL_DL/AS_CASL_DL.hs OWL/ReadWrite.hs \
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich $(gendrifted_files)
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettichatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Logic/Prover.hs Common/ExtSign.hs Static/DevGraph.hs
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederatc_der_files = $(foreach file, $(atc_files), \
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder
ef67402074be14deb95e4ff564737d5593144130Klaus LuettichATC/Id.der.hs: Common/Id.hs $(GENRULES)
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich $(GENRULECALL) -o $@ $<
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder
ef67402074be14deb95e4ff564737d5593144130Klaus LuettichATC/Result.der.hs: Common/Result.hs $(GENRULES)
5958fabb264ec3f5b2125ac5602121bd34814a79Klaus Luettich $(GENRULECALL) -o $@ $<
5958fabb264ec3f5b2125ac5602121bd34814a79Klaus Luettich
e7e1ab2ac3f1fded8611bb92ae00e8f3b8c693fbKlaus LuettichATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich $(GENRULECALL) -o $@ $<
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus LuettichATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich $(GENRULECALL) -o $@ $<
725a68ec81cba9b8aa8647bebfb5baa449803e7eKlaus Luettich
d579f5b263e6c73d466c265f2fbfd45b0e69ca64Klaus LuettichATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder $(GENRULECALL) -o $@ $<
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Grothendieck -o $@ $<
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
438f9bd974c8e668203e636b0f2bc80c589af043Klaus LuettichATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(GENRULECALL) -i ATC.AS_Structured -o $@ $<
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
4e7050bcbcf0f372a5bad32ecd0282bccabf0983Klaus Luettich $(GENRULECALL) -i ATC.AS_Architecture -o $@ $<
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $<
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich
4e7050bcbcf0f372a5bad32ecd0282bccabf0983Klaus LuettichATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(GENRULECALL) -x Logic.Prover.ProverTemplate \
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder -i ATC.AS_Annotation -o $@ $<
e593b89bfd4952698dc37feced21cefe869d87a2Christian Maeder
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian MaederATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder $(GENRULECALL) -i ATC.AS_Library -i ATC.Grothendieck -o $@ $<
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder CASL/AS_Basic_CASL.der.hs
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederIsabelle_files = Isabelle/IsaSign.hs
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder
94d3aa05411444596b44ede4531f05dd7ac20fdfChristian MaederPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
dc929508a3bd3c666e9b0182d56898fcafb5d66fChristian Maeder Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
dc929508a3bd3c666e9b0182d56898fcafb5d66fChristian Maeder Propositional/Sublogic.hs
94d3aa05411444596b44ede4531f05dd7ac20fdfChristian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
8410667510a76409aca9bb24ff0eda0420088274Christian MaederConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian MaederCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian MaederCOL_files = COL/AS_COL.hs COL/COLSign.hs
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian MaederCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder CspCASL/SignCSP.hs
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder
8410667510a76409aca9bb24ff0eda0420088274Christian MaederCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs
8410667510a76409aca9bb24ff0eda0420088274Christian MaederSoftFOL_files = SoftFOL/Sign.hs
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus LuettichOWL_files = OWL/Sign.hs
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus Luettich
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckersatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckersgenerated_rule_files = $(atc_der_files) $(atc_logic_files)
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
ba0ec5e897ef99d420c8c14c2374e0f32b7043dbKlaus Luettichgendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maederinline_axiom_files = Comorphisms/CASL2PCFOL.hs \
d17834302eaa101395b4b806cd73670fd864445fChristian Maeder Comorphisms/Modal2CASL.hs Comorphisms/CASL2TopSort.hs \
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder Comorphisms/CASL2SubCFOL.hs CASL_DL/PredefinedSign.hs
88c66e48620750c42b94db9feb01b42ae23dba97Till Mossakowski
ce8b15da31cd181b7e90593cbbca98f47eda29d6Till Mossakowskigen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckersderived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus Luettich# sources that have {-# OPTIONS -cpp #-}
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckerscpp_sources = \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers Isabelle/CreateTheories.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers SoftFOL/Logic_SoftFOL.hs GUI/Utils.hs Driver/WriteFn.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers Propositional/Logic_Propositional.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers Comorphisms/LogicList.hs Comorphisms/LogicGraph.hs \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder Comorphisms/KnownProvers.hs hets.hs $(happy_files) \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers PGIP/InfoCommands.hs PGIP/ProveCommands.hs
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder# unused, remove when header files are gone
88c66e48620750c42b94db9feb01b42ae23dba97Till Mossakowskigenrule_header_files = $(wildcard ATC/*.header.hs)
ce8b15da31cd181b7e90593cbbca98f47eda29d6Till Mossakowski
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckersnondoc_sources = $(wildcard utils/DrIFT-src/*.hs) \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder $(wildcard utils/DrIFT-src/*.lhs) \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(wildcard utils/GenerateRules/*.hs) \
ba0ec5e897ef99d420c8c14c2374e0f32b7043dbKlaus Luettich $(wildcard utils/InlineAxioms/*.hs) \
ba0ec5e897ef99d420c8c14c2374e0f32b7043dbKlaus Luettich $(cpp_sources) $(pfe_sources) $(gen_inline_axiom_files) \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(genrule_header_files) $(generated_rule_files) \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hspp \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Modal/GeneratePatterns.inline.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Haskell/PreludeString.append.hs Haskell/ProgramaticaPrelude.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder SoftFOL/MathServCommunication.hs \
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder $(patsubst %.hs, %.der.hs, $(drifted_files))
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettichhspp_sources = $(patsubst %.hs, %.hspp, $(cpp_sources))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder# this variable holds the modules that should be documented
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maederdoc_sources = $(filter-out $(nondoc_sources), $(sources) $(hspp_sources))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckerstax_sources = Taxonomy/AbstractGraphView.hs Taxonomy/MMiSSOntology.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Taxonomy/MMiSSOntologyGraph.hs Taxonomy/OntoParser.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maedertax_objects = $(patsubst %.hs, %.o, $(tax_sources))
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maeder####################################################################
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder### targets
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder real_clean bin_clean package_clean distclean packages \
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder http_pkg syb_pkg shellac_pkg shread_pkg hxt_pkg haifa_pkg \
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder check capa hacapa h2h h2hf showKP clean_genRules genRules \
6ae5607d2def114f998fd49bac4eef12a2620fafChristian Maeder count doc apache_doc post_doc4apache fromKif \
6ae5607d2def114f998fd49bac4eef12a2620fafChristian Maeder programatica_pkg maintainer-clean annos \
6ae5607d2def114f998fd49bac4eef12a2620fafChristian Maeder derivedSources install_hets install release cgi ghci
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder$(SETUP): utils/Setup.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -O -o $@ $<
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederpackages: http_pkg syb_pkg shellac_pkg shread_pkg hxt_pkg haifa_pkg \
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder programatica_pkg
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhttp_pkg: utils/http.tgz $(SETUP)
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder @if $(HCPKG) field HTTP version; then \
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder echo "of HTTP package found"; else \
75cda7e5b890d050d560d970af244a183f28328fKlaus Luettich $(RM) -r http; \
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder $(TAR) zxf utils/http.tgz; \
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder (cd http; $(SETUPPACKAGE)) fi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maedersyb_pkg: $(SETUP)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @if $(HCPKG) field syb-generics version; then \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder echo "of syb-generics package found"; else \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder (cd syb-generics; $(SETUPPACKAGE)) fi
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedershellac_pkg: utils/shellac.tgz $(SETUP)
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder @if $(HCPKG) field Shellac version; then \
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder echo "of shellac package found"; else \
ebde431fb3ce536c8bc397fcfc610ac6f92e3be4Christian Maeder $(RM) -r shellac; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(TAR) zxf utils/shellac.tgz; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder (cd shellac; $(SETUPPACKAGE)) fi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedershread_pkg: utils/shread.tgz $(SETUP) shellac_pkg
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @if $(HCPKG) field Shellac-readline version; then \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder echo "of shellac-readline package found"; else \
470ca7a2797069ae4b27c34c1b71419f67be1f84Christian Maeder $(RM) -rf shread; \
470ca7a2797069ae4b27c34c1b71419f67be1f84Christian Maeder $(TAR) zxf utils/shread.tgz; \
470ca7a2797069ae4b27c34c1b71419f67be1f84Christian Maeder (cd shread; $(SETUPPACKAGE)) fi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhxt_pkg: $(SETUP) http_pkg
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @if $(HCPKG) field hxt version; then \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder echo "of hxt package found"; else \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) -rf hxt; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(TAR) zxf utils/hxt.tgz; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder (cd hxt; $(SETUPPACKAGE)) fi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhaifa_pkg: $(SETUP) hxt_pkg syb_pkg
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @if $(HCPKG) field HAIFA version; then \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder echo "of HAIFA package found"; else \
481d4fe351800ab00fd323db8974559431227305Christian Maeder (cd haifa-lite; $(SETUPPACKAGE)) fi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederprogramatica_pkg:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhets-opt:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) distclean
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) derivedSources
481d4fe351800ab00fd323db8974559431227305Christian Maeder $(MAKE) clean
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) hets-optimized
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhets-optimized: $(derived_sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -O -o hets hets.hs $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder strip hets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
327a9b9bf44b6e33f71fee7526dc1c0035251591Christian Maederhets-old: $(objects)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) -o hets $(HC_OPTS) $(objects)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowskicgi:
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski $(MAKE) distclean
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski $(MAKE) derivedSources
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski $(MAKE) real_clean
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski $(MAKE) hets.cgi
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowskihets.cgi: $(sources) GUI/hets_cgi.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder strip hets.cgi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhets_maintainers.txt: $(sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @echo 'File : Maintainer' > $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @echo -n Generating $@ " "
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder @egrep -m 1 "Maintainer" $(sources) | \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder sed -e 's/: *Maintainer *: */ : /' >> $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @echo " done"
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers###############################
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers### count lines of code
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckerscount: $(sources)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers wc -l $(sources)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers###############################
6ae5607d2def114f998fd49bac4eef12a2620fafChristian Maeder### Documentation via haddock
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettichdoc: docs/index.html
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich# generate haddock documentation with links to sources
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettich# the interface treatment is stolen from uni/mk/suffix.mk
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettichdocs/index.html: $(doc_sources)
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettich $(RM) -r docs
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettich mkdir docs
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers cp -r -L ../uni/www docs/www || mkdir docs/www
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder HINTERFACES0=`find -L docs/www -name '*.haddock' \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder -printf "--read-interface=www/%P,%p "` ; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder HINTERFACES=`echo $$HINTERFACES0 | \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(PERL) -pe 's+/[^/]*.haddock,+,+g'` ; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HADDOCK) -o docs -h -v -s ../%F $$HINTERFACES \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder -t 'Hets - the Heterogeneous Tool Set' \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder -p Hets-Haddock-Prologue.txt $(doc_sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# sources are not copied here
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederapache_doc:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) -r docs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder cvs up -d ; echo "CVS exited with: " $$?
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) hets-opt
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) doc
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) post_doc4apache
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) o_clean
ba0ec5e897ef99d420c8c14c2374e0f32b7043dbKlaus Luettich $(MAKE) hets.cgi
efa8f9db01f64e2c719c201e4037743caefae045Klaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederpost_doc4apache:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) -r a-docs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder cp -r docs a-docs
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder $(PERL) utils/post_process_docs.pl a-docs \
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maeder 'Common.Lib.Map.html:Common.Lib._Map.html'
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maeder $(PERL) utils/post_process_docs.pl a-docs \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder 'Data.Map.html:Data._Map.html'
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder###############################
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski### release management
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder
bf76f4fcf07abaebea587df8135de8356c26a363Till MossakowskiderivedSources: $(derived_sources) $(hspp_sources)
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich$(DRIFT): $(DRIFT_deps)
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT && \
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich strip ../DrIFT)
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder$(GENRULES): $(DRIFT) $(GENERATERULES_deps)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder (cd utils/GenerateRules; \
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder GenerateRules.hs -o ../genRules && strip ../genRules)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich# "-package hssource" for ghc-5.04.2
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder$(INLINEAXIOMS): $(INLINEAXIOMS_deps)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make utils/InlineAxioms/InlineAxioms.hs $(HC_WARN) $(HC_PROF) \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder -i../.. -o $(INLINEAXIOMS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder strip $(INLINEAXIOMS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederREV = trunk
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederrelease:
1a6464613c59e35072b90ca296ae402cbe956144Christian Maeder $(RM) -r Hets
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich $(RM) -r uni
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich if [ -d ../uni ] ; then ln -s ../uni uni ; fi
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich $(RM) -r programatica
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich if [ -d ../programatica ] ; then \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder mkdir programatica; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder ln -s ../../programatica/tools programatica/tools ; fi
1a6464613c59e35072b90ca296ae402cbe956144Christian Maeder (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder cp Makefile Makefile.orig; \
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder cp ReleaseMakefile Makefile; \
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder ./clean.sh; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) clean.*; utils/replaceAllHeaders.sh)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(TAR) cvf Hets.tar Hets
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
4e7050bcbcf0f372a5bad32ecd0282bccabf0983Klaus Luettichinstall-hets:
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder chmod g+w hets
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder cp -p hets $(INSTALLDIR)/versions/hets-`cat version_nr`
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers cp -p version_nr $(INSTALLDIR)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers (cd $(INSTALLDIR); $(RM) hets; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder ln -s versions/hets-`cat version_nr` hets; $(RM) version_nr)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckersinstall: hets-opt install-hets
1a6464613c59e35072b90ca296ae402cbe956144Christian Maeder
f29371d8bd5a232c974e736b06d0d8a655d320fbKlaus Luettichpack/install-%.jar: pack/install-%.xml pack/UserInputSpec-%.xml hets.in hets
f29371d8bd5a232c974e736b06d0d8a655d320fbKlaus Luettich ## TODO: add more dependencies and use hets-opt
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder compile $< -b . -k standard -o $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# compile $< -b . -k web -o $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder###################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### Common/LaTeX_maps.hs generation
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
88c800932dd7053322501ea2039d9f234be6866cKlaus Luettichutils/genItCorrections: $(GENITCORRECTIONS_deps)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(HC) --make -o $@ $<
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder strip $@
c0cefaa0e46c95bfb1afee0efd6dd13631cf1affChristian Maeder
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maederpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
@echo -n "Generating pretty/LaTeX_maps.hs ... "
@(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
@(cd pretty >/dev/null; ../utils/genItCorrections \
gen_it_characters gen_it_words >> LaTeX_maps.hs)
@echo "ready"
@echo "please copy the file manually to Common"
#############################
### ATC DrIFT-rule generation
genRules: $(generated_rule_files)
CASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
$(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_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)
$(GENRULECALL) -o $@ $(Isabelle_files)
Modal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
$(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_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)
clean_genRules:
$(RM) $(generated_rule_files) $(gendrifted_files) $(hspp_sources) \
$(hs_clean_files)
###############
### clean up
clean: bin_clean o_clean clean_pretty
### removes all *.o, *.hi and *.p_o files in all subdirectories
o_clean:
find . -name \*.o -o -name \*.hi -o -name \*.p_o | xargs $(RM) -f
### remove binaries
bin_clean:
$(RM) hets
$(RM) hets.cgi
$(RM) $(SETUP)
$(RM) $(TESTTARGETS)
clean_pretty:
$(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
pretty/generated_words.tex
### additionally removes the library files
real_clean: clean
### clean user packages
package_clean:
$(HCPKG) unregister HAIFA --user || exit 0
$(HCPKG) unregister programatica --user || exit 0
$(HCPKG) unregister hxt --user || exit 0
$(HCPKG) unregister Shellac-readline --user || exit 0
$(HCPKG) unregister HTTP --user || exit 0
$(HCPKG) unregister syb-generics --user || exit 0
$(HCPKG) unregister Shellac --user || exit 0
### additionally removes generated files not in the CVS tree
distclean: clean clean_genRules
$(RM) $(derived_sources)
$(RM) Modal/GeneratePatterns.inline.hs utils/appendHaskellPreludeString
$(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
$(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
maintainer-clean: distclean package_clean
$(RM) -r $(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
####################################################################
### test targets
####################################################################
### interactive
ghci: $(derived_sources)
$(HC)i $(HC_OPTS)
### christian's target
### CASL parser
fromKif: CASL/fromKif
### Annos parser
annos: Common/annos
### CASL parser
capa: CASL/capa
### HasCASL parser
hacapa: HasCASL/hacapa
### Haskell analysis
hana: Haskell/hana
### Haskell to Isabelle-HOLCF translation
h2hf: Haskell/h2hf
Haskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
Common/Lib/*.hs Comorphisms/*.hs
$(HC) -O --make -o $@ $< $(HC_FLAGS) $(PFE_FLAGS)
### HasCASL to Haskell translation
h2h: Haskell/h2h
### test program to check the known provers
showKP: Comorphisms/test/showKP
### run tests in other directories
check: $(TESTTARGETS)
for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
####################################################################
## Preparing the version of Hets
Driver/Version.hs: Driver/Version.in version_nr
$(RM) $@
LANG=C $(PERL) utils/build_version.pl version_nr \
< Driver/Version.in > $@
chmod 444 $@
## two hardcoded dependencies for a correct generation of Version.hs
Driver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
hets.hs: Driver/Version.hs
ATC/DevGraph.hs: Static/DevGraph.hs
## two dependencies for avoidence of circular prerequisites
CASL_DEPENDENT_BINARIES= hets CASL/capa CASL/fromKif \
Common/annos Common/test_parser Comorphisms/test/showKP \
CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
$(CASL_DEPENDENT_BINARIES): $(sources) $(derived_sources)
# CASL_DL/Logic.hs: CASL_DL/PredefinedSign.hs
####################################################################
## rules for DrIFT
.SUFFIXES:
%: %.hs packages
$(HC) --make -o $@ $< $(HC_OPTS)
%.hs: %.y
$(HAPPY) -o $@.tmp $<
echo "{-# OPTIONS -w #-}" > $@
cat $@.tmp >> $@
$(RM) $@.tmp
%.hs: %.der.hs $(DRIFT)
$(RM) $@
($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
chmod 444 $@
## rules for inlineAxioms
%.hs: %.inline.hs $(INLINEAXIOMS)
$(RM) $@
$(INLINEAXIOMS) $< > $@
chmod 444 $@
## rule for cpp and haddock
%.hspp: %.hs
$(HC) -E -cpp -D__HADDOCK__ \
-DUNI_PACKAGE -DCASLEXTENSIONS -DPROGRAMATICA -optP -P $<
## compiling rules for object and interface files
%.o %.hi: %.hs
$(HC) -c $< $(HC_OPTS)
%.o %.hi: %.lhs
$(HC) -c $< $(HC_OPTS)
## compiling rules for dependencies
%.d : %.hs
$(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
%.d : %.lhs
$(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
## generate the inline file for the predefined CASL_DL sign
CASL_DL/PredefinedSign.inline.hs: \
CASL_DL/PredefinedSign.inline.hs.in utils/appendHaskellPreludeString \
CASL_DL/PredDatatypes.het
$(RM) $@
utils/appendHaskellPreludeString CASL_DL/PredDatatypes.het \
< CASL_DL/PredefinedSign.inline.hs.in > $@
echo " )" >> $@
chmod 444 $@
# Warning: Don't change the order of the depencies!!
CASL_DL/PredDatatypes.het: utils/transformLibAsBasicSpec.pl \
CASL_DL/Datatypes.het
$(RM) $@
$(PERL) $+ > $@
chmod 444 $@
## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
# uses intransparently utils/outlineAxioms
Modal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
utils/genTransMFormFunc.pl $(INLINEAXIOMS)
$(RM) $@
$(PERL) utils/genTransMFormFunc.pl $< $@
chmod 444 $@
initialize_installer:
@if [ -d $(INSTALLER_DIR) ] ; then \
echo "copy file to $(INSTALLER_DIR)" ; \
else \
echo "create $(INSTALLER_DIR)" ;\
mkdir -p $(INSTALLER_DIR) ; \
fi
@sed "s/^\(HETS_VERSION=\).*/\1`cat version_nr`/" Makefile.installer > Makefile.inst ;\
sed "s/^\(SPASS_DIR_MAC=\).*/\1`ls utils/SPASS-ppc-mac/ | grep SPASS`/" Makefile.inst > Makefile.inst2 ;\
rm Makefile.inst ;\
mv Makefile.inst2 $(INSTALLER_DIR)/Makefile ;\
cp -r utils/getAllHets.sh utils/SPASS-intel-mac utils/SPASS-ppc-mac $(INSTALLER_DIR)/
@echo =========================================================================
@echo If you have not logged in \'cvs.haskell.org\' and \'cvs-agbkb.informatik.uni-bremen.de\'
@echo "then please first login:"
@echo " cvs -d :pserver:anoncvs@cvs.haskell.org:/cvs login"
@echo " the password is cvs"
@echo " cvs -d :pserver:cvsread@cvs-agbkb.informatik.uni-bremen.de:/repository login "
@echo " the password is "
@echo =========================================================================
@echo Ready to create installers for Hets
@echo Please do
@echo " -> cd $(INSTALLER_DIR)"
@echo " -> make"
@echo and wait until it is finished