Makefile revision 4c7cb5671b356d873d67829ec8062a5083c1ee0e
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder#!/usr/bin/make -f
c63ebf815c8a874525cf18670ad74847f7fc7b26Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# Makefile
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder#
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# Authors: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Jens Elkner, Uni Magdeburg 2016
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# This GNU Makefile will compile the hets system and provides also
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# targets for test programs during implementation phases.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maederinclude var.mk
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian MaederHETS_VERSION ?= $(shell printf `cat version_nr`)
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# We assume ghc 7+
e7757995211bd395dc79d26fe017d99375f7d2a6Christian MaederGHCVERSION := $(shell $(HC) --numeric-version)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederGHC_PARALLEL_FEATURE := $(shell expr $(shell $(HC) --numeric-version | cut -d '.' -f 1) \>= 8)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederNO_BIND_WARNING := -fno-warn-unused-do-bind
a1ed34933c266ce85066acb0d7b20c90cb8eb213Christian MaederHC_WARN := -Wall -fwarn-tabs \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder -fwarn-unrecognised-pragmas -fno-warn-orphans $(NO_BIND_WARNING)
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich# uncomment HC_PROF for profiling (and comment out packages in var.mk)
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# call resulting binary with a final +RTS -p to get a file <binary>.prof
ad270004874ce1d0697fb30d7309f180553bb315Christian Maeder#HC_PROF := -prof -auto-all -osuf p_o +RTS -K100m -RTS
4d56f2fa72e4aec20eb827c11ed49c8cbb7014bdChristian MaederHC_OPTS += $(HC_WARN) $(HC_PROF)
4cb215739e9ab13447fa21162482ebe485b47455Christian Maederifeq "$(GHC_PARALLEL_FEATURE)" "1"
8ef75f1cc0437656bf622cec5ac9e8ea221da8f2Christian Maeder HC_OPTS += -j
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettichendif
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# -ddump-minimal-imports
74eed04be26f549d2f7ca35c370e1c03879b28b1Christian Maeder# uncomment the above line to generate .imports files for displayDependencyGraph
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder.DEFAULT_GOAL := hets
ef9e8535c168d3f774d9e74368a2317a9eda5826Christian Maeder
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder.NOTPARALLEL:
ef9e8535c168d3f774d9e74368a2317a9eda5826Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# *.bin variants here to let them survive a 'make clean'
e593b89bfd4952698dc37feced21cefe869d87a2Christian Maederall: hets.bin hets_server.bin
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Documentation (no haddock stuff, i.e. "docs/index.html", since developer can
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian Maeder# generated it on demand by themselves and other users dont't need it). Other
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder# papers (doc/*.pdf) are already pre-generated.
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maederdocs: doc/UserGuide.pdf
51d769d55d88dfa88bdf54bee78d8fa85a2deba8Christian Maeder
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian MaederSED := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'gsed' || printf 'sed')
51d769d55d88dfa88bdf54bee78d8fa85a2deba8Christian MaederTAR := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'gtar' || printf 'tar')
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederINSTALL := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'ginstall' || printf 'install')
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
c3053d57f642ca507cdf79512e604437c4546cb9Christian Maederdefine EOL
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maederendef
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder
05a62e84edac8c64de04f8349dee418598d216b9Christian Maeder# indicate, whether working on an exported repo
1cd4f6541984962658add5cfaa9f28a93879881bChristian MaederGIT_TIMESTAMP := $(shell [ -d .git ] && git log -1 --format=%ct )
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederEXPORTED := $(shell [ -n "$(GIT_TIMESTAMP)" ] || printf 1)
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maederempty =
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maederspace = $(empty) $(empty)
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederDRIFT_deps = utils/DrIFT-src/*hs
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulz
8cacad2a09782249243b80985f28e9387019fe40Christian MaederPERL = perl
363939beade943a02b31004cea09dec34fa8a6d9Christian MaederGENRULES = utils/genRules
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian MaederGENRULECALL = $(GENRULES) -r ShATermConvertible \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder -i ATerm.Lib
014dc30f64ec25e4790cca987d4d1e6635430510Christian Maeder
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus LuettichGENRULECALL2 = $(GENRULES) -r ShATermLG \
6aea82c63ba1d2efc0329bc784a14e521469ec20Christian Maeder -i ATerm.Lib -i ATC.Grothendieck
6aea82c63ba1d2efc0329bc784a14e521469ec20Christian MaederDRIFT = utils/DrIFT
431d34c7007a787331c4e5ec997badb0f8190fc7Christian MaederHADDOCK = haddock
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
498aa48bdb931ab50990d3b74318a5db2312186cChristian MaederDTD2HS = utils/DtdToHaskell
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maederifneq ($(strip $(HAXML_PACKAGE_COMPAT)),)
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian MaederDTD2HS_src = utils/DtdToHaskell-src/pre-1.22/
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maederelse
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian MaederDTD2HS_src = utils/DtdToHaskell-src/current/
23ffcc44ca8612feccbd8fda63fa5be7ab5f9dc3Christian Maederendif
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
c0c2380bced8159ff0297ece14eba948bd236471Christian Maederifneq ($(strip $(HAXML_PACKAGE)),)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederderived_sources += Isabelle/IsaExport.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederendif
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederDTD2HS_deps = $(DTD2HS_src)*.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# list glade files
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederderived_sources += $(GTK_GLADE_HSFILES)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# the list of logics that need ShATermConvertible instances
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederlogics = CASL HasCASL Isabelle Modal Hybrid TopHybrid Temporal \
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian Maeder CoCASL COL CspCASL CASL_DL \
bc8cbf12aa172bf5673b92a9e7a0151d4aa4c315Christian Maeder SoftFOL ConstraintCASL Propositional RelationalScheme VSE OMDoc DFOL \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl THF \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder FreeCAD OWL2 RDF CSMOF QVTR
51d769d55d88dfa88bdf54bee78d8fa85a2deba8Christian Maeder
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian MaederTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian Maeder Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian Maeder ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian Maeder Common/ATerm/ATermDiffMain.hs Common/annos.hs \
1cd4f6541984962658add5cfaa9f28a93879881bChristian Maeder SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
1cd4f6541984962658add5cfaa9f28a93879881bChristian Maeder Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder Common/testxupdate.hs Common/testxpath.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder### list of directories to run checks in
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederTESTDIRS += Common CASL Fpl/test HasCASL test ExtModal/Tries \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder CommonLogic/TestData
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder
a9b59eb2ce961014974276cdae0e9df4419bd212Christian Maederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederifneq ($(PFE_FLAGS),)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederPFE_TOOLDIR := $(wildcard $(dir $(PFE_SETUP)))
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian MaederPFE_DIRS := base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
dc679edd4ca027663212afdf00926ae2ce19b555Christian Maeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder base/transforms base/transforms/Deriving property \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/syntax property/AST property/transforms \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder property/TI property/defs property/parse2 property/parse2/Parser
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederPFE_PATHS := $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
4017ebc0f692820736d796af3110c3b3018c108aChristian MaederDRIFT_ENV := DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
b568982efd0997d877286faa592d81b03c8c67b8Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederlogics += Haskell
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettichderived_sources += Haskell/PreludeString.hs
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Haskell/ProgramaticaPrelude.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder## rule for appendHaskellPreludeString
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder $(APPENDPRELUDESTRING)
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder $(APPENDPRELUDESTRING) < $< > $@
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder HsModule HsName HsLiteral HsIdent
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder#files in base/TI/
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederOther_PFE_files := property/AST/HsPropStruct base/defs/PNT \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder property/syntax/PropSyntaxStruct
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian MaederHaskell_files := $(addsuffix .hs, \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
e6d5dbbc3308f05197868806e0b860f4f53875f1Christian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder
e4f4d096e5e6d60dd91c746d0e833d0ac7a29c50Christian Maeder## rule for ATC generation
eb74267cf39e4e95f9eeb5c765f4c8dac33971b4Christian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
eb74267cf39e4e95f9eeb5c765f4c8dac33971b4Christian Maeder $(GENRULECALL) -r Typeable -i Data.Typeable -i Haskell.BaseATC \
e4f4d096e5e6d60dd91c746d0e833d0ac7a29c50Christian Maeder -o $@ $(Haskell_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederhs_der_files += $(hs_clean_files)
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian MaederTESTDIRS += ToHaskell
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maederelse
6cd33d6101fb1b93baa6d86fac158af18a115108Christian MaederDRIFT_ENV := DERIVEPATH=
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maederendif
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder# end of programatica stuff (PFE_FLAGS)
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder
6cd33d6101fb1b93baa6d86fac158af18a115108Christian MaederTESTTARGETS := $(subst .hs,,$(TESTTARGETFILES))
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# files generated by DriFT
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederdrifted_files = Common/AS_Annotation.hs \
0e5b095a19790411e5352fa7cf57cb0388e70472Christian Maeder CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs Hybrid/AS_Hybrid.hs TopHybrid/AS_TopHybrid.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Propositional/AS_BASIC_Propositional.hs \
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder CASL_DL/AS_CASL_DL.hs THF/As.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder RelationalScheme/AS.hs ATC/Grothendieck.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder ExtModal/AS_ExtModal.hs QBF/AS_BASIC_QBF.hs \
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder CommonLogic/AS_CommonLogic.hs Fpl/As.hs \
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder $(gendrifted_files)
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder# files to extract data types from to generate ShATermConvertible instances
328a85c807f2a95c3f147d10b05927eaf862ebebChristian Maederatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
a6db617ca58eb6a0587b6366e913107dfecb71b5Heng Jiang Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
06dd4e7c29f33f6122a910719e3bd9062256e397Andy Gimblett Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder Common/Consistency.hs Common/ProofTree.hs \
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder Static/DgUtils.hs Static/XGraph.hs Static/DevGraph.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder Common/Lib/Graph.hs Common/IRI.hs
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# files generated by genRules as input for DriFT
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederatc_der_files = $(foreach file, $(atc_files), \
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder# the rules to create ATC .der.hs file for DriFT
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian MaederATC/Id.der.hs: Common/Id.hs $(GENRULES)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(GENRULECALL) -o $@ $<
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederATC/IRI.der.hs: Common/IRI.hs $(GENRULES)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(GENRULECALL) -i ATC.Id -o $@ $<
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederATC/Result.der.hs: Common/Result.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -i ATC.Id -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian MaederATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder
54ea981a0503c396c2923a1c06421c6235baf27fChristian MaederATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian MaederATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder $(GENRULECALL) -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder $(GENRULECALL2) -o $@ $<
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder
819e29dba060687cf391e444e0f6ff88c1908cc3Christian MaederATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -x Logic.Prover.ProverTemplate \
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder -x Logic.Prover.ConsChecker \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
ac34194a668399bb8ef238da77c3a09e93fb253bChristian MaederATC/DgUtils.der.hs: Static/DgUtils.hs $(GENRULES)
4fc9de0da898448f1d3597ebbd8c04a066464c21Christian Maeder $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/XGraph.der.hs: Static/XGraph.hs $(GENRULES)
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maeder $(GENRULECALL2) -i ATC.DgUtils -o $@ $<
4fc9de0da898448f1d3597ebbd8c04a066464c21Christian Maeder
4fc9de0da898448f1d3597ebbd8c04a066464c21Christian MaederATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maeder $(GENRULECALL2) -i ATC.XGraph -i ATC.AS_Library -o $@ $<
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# ATC files for every logic
986d3f255182539098a97ac86da9eeee5b7a72e3Christian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder CASL/AS_Basic_CASL.der.hs
4561227a776bdf0ab679b19fb92f1eaaed8786f7Christian Maeder
01e278bdd7dce13b9303ed3d79683d83c89d09f9Liam O'ReillyHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederIsabelle_files = Isabelle/IsaSign.hs
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik Luecke
8c812cd83569e973f10cf69a342424ceabc07af9Christian MaederPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder Propositional/Sublogic.hs
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder HolLight/Sublogic.hs HolLight/Term.hs
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
05a206508bc898f87fe6ab6e069814df3c29d303Dominik LueckeQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
05a206508bc898f87fe6ab6e069814df3c29d303Dominik Luecke QBF/AS_BASIC_QBF.hs QBF/Symbol.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder QBF/Sublogic.hs
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian Maeder
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian Maeder
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till MossakowskiModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederHybrid_files = Hybrid/AS_Hybrid.hs Hybrid/HybridSign.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederTopHybrid_files = TopHybrid/AS_TopHybrid.hs TopHybrid/TopHybridSign.hs
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder
0b349288edfa50fdf38fda1a14e1562d03f92574Christian MaederTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
33bdce26495121cdbce30331ef90a1969126a840Liam O'Reilly Temporal/Symbol.hs Temporal/Morphism.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
1b3a2f98d1cd01fc9e0591f69507e20526727559Dominik LueckeConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus LuettichCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
247cc88aa55d0a7b6831767cd593ea885c6747a0Christian MaederCOL_files = COL/AS_COL.hs COL/COLSign.hs
e39a1626bee36d6ad13a2c0014a80ef179a65bcbChristian Maeder
f8e1a1eca871a26a535a4ee7d51902ba94b1db1eChristian MaederCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
ea3bff3e547a1ac714d4db39c5efef95e02b2e7dChristian Maeder CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
dd6f22b9dcff2695181b86372e4df03d5b96e92dKristina Sojakova CspCASL/Morphism.hs
005e0f0c6b0cc898003b03801158c208f3071fc5Kristina Sojakova
abf2487c3aece95c371ea89ac64319370dcb6483Klaus LuettichCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederSoftFOL_files = SoftFOL/Sign.hs
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederVSE_files = VSE/As.hs
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederOMDoc_files = OMDoc/OMDocInterface.hs
76b9b2974795a6fb31f242fd032de3ff66df6204Christian MaederDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
76b9b2974795a6fb31f242fd032de3ff66df6204Christian MaederLF_files = LF/Sign.hs LF/Morphism.hs LF/AS.hs
8a78868bae2ec6838c87366c35c57e109154c51eChristian MaederFramework_files = Framework/AS.hs
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulz
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik DietrichMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
5724300b30738b6298ac5dc162f41e33c40f9c12Karl Luc Maude/Symbol.hs Maude/AS_Maude.hs
48aa0645e25883048369afc02aac3f49b14a50daChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder ExtModal/MorphismExtension.hs ExtModal/Sublogic.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder CSL/TreePO.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder CommonLogic/Symbol.hs CommonLogic/Morphism.hs CommonLogic/Sublogic.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederAdl_files = Adl/As.hs Adl/Sign.hs
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederFpl_files = Fpl/As.hs Fpl/Sign.hs
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederTHF_files = THF/As.hs THF/Cons.hs THF/Sign.hs THF/Sublogic.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederFreeCAD_files = FreeCAD/As.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederOWL2_files = OWL2/AS.hs OWL2/Symbols.hs OWL2/Sign.hs OWL2/MS.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder OWL2/Morphism.hs OWL2/ProfilesAndSublogics.hs OWL2/Sublogic.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder OWL2/Profiles.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederRDF_files = RDF/AS.hs OWL2/AS.hs RDF/Symbols.hs RDF/Sign.hs RDF/Morphism.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder RDF/Sublogic.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCSMOF_files = CSMOF/As.hs CSMOF/Sign.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederQVTR_files = QVTR/As.hs QVTR/Sign.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# ATC DrIFT-rule generation for logics
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederQBF/ATC_QBF.der.hs: $(QBF_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -o $@ $(Isabelle_files)
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHybrid/ATC_Hybrid.der.hs: $(Hybrid_files) $(GENRULES)
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina Sojakova $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Hybrid_files)
48aa0645e25883048369afc02aac3f49b14a50daChristian Maeder
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina SojakovaTopHybrid/ATC_TopHybrid.der.hs: $(TopHybrid_files) $(GENRULES)
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(TopHybrid_files)
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova
79834070d6d3c63a098e570b12fa3405c607dc70Kristina SojakovaTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder
8a78868bae2ec6838c87366c35c57e109154c51eChristian MaederCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulz $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulz
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik DietrichCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl LucCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
c70ef4c3b3a62764f715510c9fd67dde3acfe454Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
2b33802ca26124644f4311db4319376ecffdc8d2Christian Maeder $(GENRULECALL) -i ATC.IRI -o $@ $(OMDoc_files)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
43b4c41fbb07705c9df321221ab9cb9832460407Christian MaederLF/ATC_LF.der.hs: $(LF_files) $(GENRULES)
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus LuettichMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder
f443a57f2a8e0ca3daa7431b0c89a18ba52c337aChristian MaederExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till MossakowskiCSL/ATC_CSL.der.hs: $(CSL_files) $(GENRULES)
7c99e334446bb97120e30e967baeeddfdd1278deKlaus Luettich $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian MaederCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder
27785f379d6810811b4e6d23feab18845fde9a98Christian MaederAdl/ATC_Adl.der.hs: $(Adl_files) $(GENRULES)
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder
10883d13973c46cac98964b66ace7a52b2d059abChristian MaederFpl/ATC_Fpl.der.hs: $(Fpl_files) $(GENRULES)
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder
10883d13973c46cac98964b66ace7a52b2d059abChristian MaederTHF/ATC_THF.der.hs: $(THF_files) $(GENRULES)
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder $(GENRULECALL) -i ATC.Id -i ATC.GlobalAnnotations -o $@ $(THF_files)
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder
10883d13973c46cac98964b66ace7a52b2d059abChristian MaederFreeCAD/ATC_FreeCAD.der.hs: $(FreeCAD_files) $(GENRULES)
bf25e8c286cda74ef89a9cbc3c2143557e0d49c3Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(FreeCAD_files)
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder
05a62e84edac8c64de04f8349dee418598d216b9Christian MaederOWL2/ATC_OWL2.der.hs: $(OWL2_files) $(GENRULES)
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder $(GENRULECALL) -i ATC.Result -o $@ $(OWL2_files)
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederRDF/ATC_RDF.der.hs: $(RDF_files) $(GENRULES)
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder $(GENRULECALL) -i ATC.Result -o $@ $(RDF_files)
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian MaederCSMOF/ATC_CSMOF.der.hs: $(CSMOF_files) $(GENRULES)
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(CSMOF_files)
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
0c355dd0b739631ee472f9a656e266be27fa4e64Christian MaederQVTR/ATC_QVTR.der.hs: $(QVTR_files) CSMOF/ATC_CSMOF.hs $(GENRULES)
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder $(GENRULECALL) -i CSMOF.ATC_CSMOF -i Common.ATerm.ConvInstances \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder -o $@ $(QVTR_files)
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich# all ATC .der.hs files for all logics
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettichgenerated_rule_files = $(atc_der_files) $(atc_logic_files)
810746aea00b81c1eec27dae84d73a43599ff056Christian Maeder
a883cd4d01fe39d23219cf5333425f195be24d8bChristian Maeder# a rule to create all .der.hs files
b905126bab9454b89041f92b3c50bb9efc85e427Klaus LuettichgenRules: $(generated_rule_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder# the final ATC target files created by DriFT
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedergendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder# all sources that need to be created before ghc can be called
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maederderived_sources += $(drifted_files) Driver/Version.hs $(hs_der_files)
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder
7a0f6c31623d40c8035150a24f75855abc9c7ed9Christian Maeder
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder####################################################################
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder# BUILD related targets
a545f813d2f8006ef79617e4fedc841d89195e2dChristian Maeder####################################################################
a545f813d2f8006ef79617e4fedc841d89195e2dChristian Maeder.PHONY: all hets-opt hets-optimized hets_server-opt docs jars \
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich clean o_clean clean_pretty bin_clean java_clean realclean distclean \
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder annos check test capa hacapa h2h h2hf showKP clean_genRules genRules \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder count fromKif release cgi ghci build-hets callghc \
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder get-programatica check_desktop check_server check_cgi \
e05fd774e0181e93963d4302303b20698603a505Christian Maeder install install-common install-owl-tools archive \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder build-indep build-arch build binary-indep binary-arch binary rev.txt \
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder stack-setup stack-install-dependencies
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder.SECONDARY: $(generated_rule_files)
e05fd774e0181e93963d4302303b20698603a505Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder.PRECIOUS: %.bin
f2d9352f2999f82c36b4b65535d14a6a40ae5a82Christian Maeder
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder# dummy target to force ghc invocation
43bb71dfe7ec405f563864d57c1cacdaa8ce9a80Christian Maedercallghc:
f2d9352f2999f82c36b4b65535d14a6a40ae5a82Christian Maeder
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski# some trickery to trigger a full clean if the main target (hets, hets_server)
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder# changed since last call
1dfba1f850f6a43094962b459998d1ea11472461Christian Maedercheck_desktop:
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder -@[ -e .hets_server -o -e .hets_cgi -o -e .hets_oow ] && $(MAKE) clean
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
fa0f3519d71f719d88577b716b1579776b4a2535Christian Maedercheck_server:
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder -@[ -e .hets_desktop -o -e .hets_cgi -o -e .hets_oow ] && $(MAKE) clean
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder
fa0f3519d71f719d88577b716b1579776b4a2535Christian Maedercheck_cgi:
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder -@[ -e .hets_desktop -o -e .hets_server -o -e .hets_oow ] && $(MAKE) clean
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder%-opt: HC_OPTS += -O
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder
c59d1c38ef94b4fb1c8d9fda9573bc1e1d2801e7Christian Maeder# the variant without GUI
cd36bffee51c77cdadcb9f916b34fa512e311946Christian Maederhets_server hets_server-opt: HASKELINE_PACKAGE :=
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maederhets_server hets_server-opt: GLADE_PACKAGE :=
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maederhets_server hets_server-opt: UNI_PACKAGE :=
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederhets_server hets_server-opt: check_server $(derived_sources)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @touch .hets_server
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(HC) --make $(HC_OPTS) -o hets_server hets.hs
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @ln -f hets_server hets_server.bin
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichhets-opt: check_desktop $(derived_sources)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @touch .hets_desktop
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich $(HC) --make $(HC_OPTS) -o hets hets.hs
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @ln -f hets hets.bin
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich# deprecated target name
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichhets-optimized: hets-opt
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederhets_cgi hets_cgi-opt: check_cgi GUI/hets_cgi.hs $(derived_sources)
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder @touch .hets_cgi
810746aea00b81c1eec27dae84d73a43599ff056Christian Maeder $(HC) --make $(HC_OPTS) -o hets.cgi GUI/hets_cgi.hs
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder @ln -f hets.cgi hets_cgi.bin
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus LuettichderivedSources: $(derived_sources)
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich
82e29b77f0ef4cccd7ed734692c5e1e93dbbc645Christian MaederTEX_FILES := $(wildcard doc/*.tex doc/*.png doc/*.dot doc/*.sty doc/*.eps)
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettichdoc/UserGuide.pdf: $(TEX_FILES)
5f0e3e4cb7dd31033c9682cafa712d2a66b2f3bcChristian Maeder @X=`which latexmk 2>/dev/null` ; \
5f0e3e4cb7dd31033c9682cafa712d2a66b2f3bcChristian Maeder if [ -n "$$X" ]; then \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder cd doc ; latexmk -silent -pdf -use-make \
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder -pdflatex="pdflatex -interaction=nonstopmode" UserGuide.tex ; \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder else \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder printf '\nMissing "latexmk" - unable to create doc/UserGuide.pdf!\n\n';\
d0652648f9879c67a194f8b03baafe2700c68eb4Christian Maeder fi
210aa1071465039588fa9e38c10e343631c34655Christian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder# replace '$Header$' in all *.hs with the filename of the containing file
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# call it from time to time
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederupdateHeaders: $(derived_sources)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @find . -name '*.hs' -exec fgrep -l '$$Header$$' {} + | xargs -I@ \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich ${SED} -i -e 's|\$$Header\$$|@|g' @
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
83394c6b6e6de128e71b67c9251ed7a84485d082Christian MaederGHC_LIBDIR := $(shell $(HC) --print-libdir)
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus LuettichGHC_BASEDIR := $(shell cd $(GHC_LIBDIR)/../.. && printf "$${PWD}")
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder# scanning the "whole" NFS server isn't so smart, so restrict to wellknown dirs
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederHADDOCK_INTERFACES = $(shell find $(GHC_BASEDIR)/share/doc/ghc \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder $(GHC_BASEDIR)/lib/ghc-doc/haddock -name '*.haddock' 2>/dev/null)
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederHAD_INTS = $(foreach file, $(HADDOCK_INTERFACES),\
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder -i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian MaederHADDOCK_OPTS := $(addprefix --optghc=, $(HC_OPTS))
c5e3fc166373b0d90f6e36e8aa234396a1dcd879Christian Maederdocs/index.html: $(derived_sources)
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder @$(RM) -r docs && mkdir docs && \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich printf '\nCheck log.haddock for results ...\n'
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HADDOCK) -o docs -h -s ../%F $(HAD_INTS) \
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder -t 'Hets - the Heterogeneous Tool Set' \
e1559d046eb2c6dde0e6e272b37b6756eac0e8adChristian Maeder -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder $(filter-out Scratch.hs, $(wildcard *.hs)) \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder >log.haddock 2>&1
2c619a4dfdc1df27573eba98e81ed1ace906941dChristian Maeder
5580ab3e64410186ccd36cde8a94282d8757ac0dChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder$(DRIFT): $(DRIFT_deps)
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl cd utils/DrIFT-src; $(HC) --make -o ../DrIFT DrIFT.hs
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl$(DTD2HS): $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell.hs
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl @mkdir -p utils/DtdToHaskell-src/DtdToHaskell
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder @cp -f $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder $(HC) --make $(HC_OPTS) -iutils/DtdToHaskell-src -o $@ \
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder utils/DtdToHaskell-src/DtdToHaskell.hs
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder
0b349288edfa50fdf38fda1a14e1562d03f92574Christian MaederIsabelle/IsaExport.hs: $(DTD2HS) Isabelle/IsaExport.dtd
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder $(DTD2HS) Isabelle/IsaExport.dtd Isabelle/IsaExport.hs Isabelle.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder$(GENRULES): $(DRIFT) $(GENERATERULES_deps)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @cd utils/GenerateRules; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder -o ../genRules GenerateRules.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowskiutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski $(HC) --make -o $@ $<
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini# Common/LaTeX_maps.hs generation
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maederutils/genItCorrections: $(GENITCORRECTIONS_deps)
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini $(HC) --make -o $@ $<
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maeder
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maederpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini $(info $(EOL)Generating pretty/LaTeX_maps.hs ...$(EOL))
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder @cd pretty >/dev/null; \
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder $(PERL) ../utils/words.pl > words.pl.log ; \
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder ../utils/genItCorrections gen_it_characters gen_it_words >> LaTeX_maps.hs
e50e41135ece589f7202bd4ef8d6b97531c2a56eKlaus Luettich $(info $(EOL)Done.$(EOL)Please copy the file manually to Common$(EOL))
47b0e9f3cb008cb7997f4e3bae26e4d62dcc887aChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### clean up
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederclean_genRules:
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder @$(RM) $(generated_rule_files) $(gendrifted_files) $(hs_clean_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### removes all *.o, *.hi and *.p_o files in all subdirectories
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maedero_clean:
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder @find . \( -name '*.o' -o -name '*.hi' -o -name '*.p_o' \
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder -o -name '*.dyn_hi' -o -name '*.dyn_o' \) -exec rm -f {} +
d5d349836d8b1fa93ea49a59d977b106c6e9233bKlaus Luettich @$(RM) -f .hets*
d5d349836d8b1fa93ea49a59d977b106c6e9233bKlaus Luettich
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder### remove binaries
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederbin_clean:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @$(RM) hets hets.cgi hets_server \
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder $(TESTTARGETS)
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich# do not delete on exported archive, because latexmk might not be available
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian MaederUSER_GUIDE := $(shell [ -n "$(EXPORTED)" ] || printf 'doc/UserGuide.pdf')
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian Maeder
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder# Ubuntu/Debian dash crap really hurts
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maederclean_pretty:
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich @ksh -c "rm -rf pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich pretty/generated_words.tex \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty} \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder test/*/log */test/temp* ToHaskell/test/*.{out,output} \
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder ExtModal/Tries/*.{pp.het,th} Fpl/test/*.{pp.het,th} \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder CommonLogic/TestData/*.{pp.het,th} Common/testxmldiff \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder doc/UserGuide.{log,aux,bbl,blg,out,fdb_latexmk,fls} doc/hs2isa.ps \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(USER_GUIDE) log.haddock \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder debian/{root,files,hets-*,tmp} \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder "
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian Maederjava_clean:
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder @$(RM) -rf OWL2/*.jar OWL2/java/build OWL2/java/tmp OWL2/lib
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
fdef3358918491badb0e29e42b5d3b5a01950716Christian Maederclean: bin_clean o_clean clean_pretty
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maederrealclean: clean java_clean
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder @$(RM) -f *.bin debian/changelog*
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder
fdef3358918491badb0e29e42b5d3b5a01950716Christian Maeder### additionally removes generated files not in the repository tree
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederdistclean: realclean clean_genRules
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder @$(RM) -rf $(derived_sources) \
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder utils/appendHaskellPreludeString \
7767474aba4fa2dc51a6c68017d3bcef3b773001Christian Maeder utils/DrIFT utils/genRules \
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder $(DTD2HS) \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder utils/DtdToHaskell-src/DtdToHaskell \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log \
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder docs
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder @[ -n "$(EXPORTED)" ] || $(RM) rev.txt
bf76f4fcf07abaebea587df8135de8356c26a363Till Mossakowski
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder### interactive
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowskighci: $(derived_sources)
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder $(STACK_EXEC) ghci $(HC_OPTS)
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maeder### build only, don't link. Target was formerly known as 'build'.
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maederbuild-hets: hets.hs
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich @touch .hets-oow
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make $(HC_OPTS) -c $<
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### Kif parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederfromKif: CASL/fromKif
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich### Annos parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederannos: Common/annos
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### CASL parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedercapa: CASL/capa
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### HasCASL parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhacapa: HasCASL/hacapa
1a6464613c59e35072b90ca296ae402cbe956144Christian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder### Haskell analysis
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maederhana: Haskell/hana
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder### Haskell to Isabelle-HOLCF translation
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maederh2hf: Haskell/h2hf
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich Common/Lib/*.hs Comorphisms/*.hs
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich $(HC) -O --make $(HC_OPTS) -o $@ $<
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich### HasCASL to Haskell translation
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettichh2h: Haskell/h2h
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich### test program to check the known provers
0be0db405c49906bd7057255069bf6df53395ac9Klaus LuettichshowKP: Comorphisms/test/showKP
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich### run tests in other directories
5818d884784339c1b8aa6c6d972bad4eafd36ccbKlaus Luettichcheck: $(TESTTARGETS)
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
2e62113845a35e07cb46db05714627c95450f267Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettichtest:
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich yes X | $(MAKE) check
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich## Preparing the version of Hets
438f9bd974c8e668203e636b0f2bc80c589af043Klaus LuettichDriver/Version.hs: Driver/Version.in version_nr rev.txt
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder @$(RM) $@
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder @${SED} -e "s|\$$Header\$$|./$@|" Driver/Version.in >$@
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder @printf ' ++ "$(shell cat version_nr), $(shell cat rev.txt)"\n' >> $@
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettichrev.txt:
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder @if [ -z "$(EXPORTED)" ]; then \
feac53e31a8351e3e3c6621f6a14b5714008bfc7Heng Jiang printf '$(GIT_TIMESTAMP)\n' > rev.txt ; \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder elif [ ! -e rev.txt ]; then \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder printf 'Unable to create rev.txt (no git repo infos available)\n' ; \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder exit 1; \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder else \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder printf 'Keeping rev.txt (no git repo infos available)\n' ; \
fd2c22348e5a69231f92fb44e35a9970b47c4e93Christian Maeder fi
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder
f78ce817f35574674d54e30ad1861a9b4ced20caChristian MaederATC/DevGraph.hs: Static/DevGraph.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
89c9d707aa817684b88036a2dad66c3437840677Heng Jiang## two dependencies to avoid circular prerequisites
f78ce817f35574674d54e30ad1861a9b4ced20caChristian MaederCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder Common/annos Common/test_parser Comorphisms/test/showKP \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder$(CASL_DEPENDENT_BINARIES): $(derived_sources)
bea81dabd203833818cb4a5f3758977c695728cdHeng Jiang
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke## suffix rules
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder.SUFFIXES:
c802a1041ed9251f8ad79139454267e802900e2aChristian Maeder
c802a1041ed9251f8ad79139454267e802900e2aChristian Maeder## rule for GHC
c802a1041ed9251f8ad79139454267e802900e2aChristian Maeder%: %.hs callghc
c802a1041ed9251f8ad79139454267e802900e2aChristian Maeder @touch .hets-oow
c802a1041ed9251f8ad79139454267e802900e2aChristian Maeder $(HC) --make $(HC_OPTS) -o $@ $<
c802a1041ed9251f8ad79139454267e802900e2aChristian Maeder
53bbc1c9a4e986d1ee9c081d6f0ac7b9546f212bDominik Luecke## rule for DrIFT
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke%.hs: %.der.hs $(DRIFT)
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke $(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke## compiling rules for object and interface files
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke%.o %.hi: %.hs
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke $(HC) $(HC_OPTS) -c $<
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke
75b0c0c2cbfb7edd3f4c0555227aabbe6c1aa195Christian Maeder%.o %.hi: %.lhs
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke $(HC) $(HC_OPTS) -c $<
## compiling rules for dependencies
%.d : %.hs
$(HC) -M $(HC_OPTS) -optdep-f -optdep$@ $<
%.d : %.lhs
$(HC) -M $(HC_OPTS) -optdep-f -optdep$@ $<
## Rule to generate hs files from glade files. Needed for GTK
%.hs: %.glade utils/appendHaskellPreludeString \
GUI/Glade/Template.append.hs
b=`basename $< .glade`; \
cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
utils/appendHaskellPreludeString $< > $@
# just build all required jar files
jars:
@cd OWL2/java ; ant -S
PFE_BASE := $(dir $(PFE_SETUP_FILE))
get-programatica:
@if [ -z $(PROGRAMATICA_SRC_FILE) -o ! -e $(PROGRAMATICA_SRC_FILE) ] && \
[ -z "$(PROGRAMATICA_SRC_URL)" ]; then \
printf 'Unable to get programatica (%s %s)\n' \
'neither PROGRAMATICA_SRC_FILE nor PROGRAMATICA_SRC_FILE' \
'environment variable is set/exist.' ; \
exit 1 ; \
fi
@if [ -e $(PFE_BASE) ]; then \
printf '%s already exists.\n' $(PFE_BASE) ; \
exit 2 ; \
fi
-@HWD=$${PWD} ; X=`echo $(PFE_BASE)| cut -f1 -d/`; \
rm -f $$X 2>/dev/null || rm -rf $(PFE_BASE) ; \
mkdir -p $(PFE_BASE); \
cd $(PFE_BASE) || exit 3 ; \
PFEDIR=$${PWD} ; cd .. ; \
if [ -n $(PROGRAMATICA_SRC_FILE) -a -e $(PROGRAMATICA_SRC_FILE) ]; then \
printf 'Extracting $(PROGRAMATICA_SRC_FILE) ...\n' ; \
if $(TAR) xzf "$(PROGRAMATICA_SRC_FILE)" ; then \
mv programatica-*/* $${PFEDIR}/ && rmdir programatica-* ; \
fi ; \
fi ; \
if [ -n "$(PROGRAMATICA_SRC_URL)" -a ! -e $${HWD}/$(PFE_SETUP_FILE) ]; then\
printf 'Fetching $(PROGRAMATICA_SRC_URL) ...\n' ; \
if wget --no-verbose -O x.tgz "$(PROGRAMATICA_SRC_URL)" ; then \
if $(TAR) xzf x.tgz ; then \
mv programatica-*/* $${PFEDIR}/ && rmdir programatica-* ; \
rm -f x.tgz ; \
fi ; \
fi ; \
fi
@if [ -e $(PFE_SETUP_FILE) ]; then \
printf 'Programatica support available.\nYou probably need to %s\n\n' \
'"make distclean" and make the desired target again.' ; \
else \
rm -rf $(PFE_BASE) ; \
printf 'Failed! No programatica support available!\n' ; exit 4 ; \
fi
ARC_NAME ?= /tmp/hets-$(HETS_VERSION)-$(GIT_TIMESTAMP)-src.tar.xz
# remove trailing .txz or .tar.xz
archive: ARC_BNAME = \
$(patsubst %.txz,%, $(patsubst %.tar.xz,%,$(notdir $(ARC_NAME))))
archive: rev.txt $(USER_GUIDE)
@[ -n "$(EXPORTED)" ] && \
printf '\nThis source tree is already exported.\n' && exit 1 ; \
FNAME=$(dir $(ARC_NAME))/$(ARC_BNAME).tar.xz ; \
printf "Exporting source to $${FNAME} ...\n" ; \
rm -rf tmp ; mkdir tmp || exit 3 ; \
git archive --format=tar --prefix=$(ARC_BNAME)/ HEAD | \
( cd tmp ; $(TAR) xf - ) ; \
cp rev.txt tmp/$(ARC_BNAME)/ ; \
if [ -e $(USER_GUIDE) ]; then \
cp $(USER_GUIDE) tmp/$(ARC_BNAME)/$(USER_GUIDE) ; \
else \
printf '\nWARNING: No $(USER_GUIDE) is unavailable\n!' ; \
fi ; \
cd tmp/$(ARC_BNAME) ; $(MAKE) distclean ; \
printf 'Removing unused/non-distributed files ...\n' ; \
rm -rf HolLight/OcamlTools/*/*dmtcp OWL2/java/lib/native \
MMT/hets-mmt-standalone.jar ; \
rm -rf GMP mini .gitignore utils/{nightly,debian,macports,ubuntu} ; \
zip -d OWL2/java/lib/owlapi-osgidistribution-3.5.2.jar \
lib/guava-18.0.jar lib/trove4j-3.0.3.jar ; \
printf 'Done.\n' ; \
cd .. ; $(TAR) cJf $(ARC_BNAME).tar.xz $(ARC_BNAME) || exit 4 ; \
cd .. ; \
ln $${PWD}/tmp/$(ARC_BNAME).tar.xz $${FNAME} 2>/dev/null || \
mv -f $${PWD}/tmp/$(ARC_BNAME).tar.xz $${FNAME} ; \
ls -l $${FNAME}
$(info $(EOL)The next "make clean" will remove the tmp/ directory used.$(EOL))
#############################################################################
# INSTALL targets
#############################################################################
# We use $DEB_BUILD_ARCH to detect, whether this make got triggered via
# dpkg-buildpackage
DEFAULT_DESTDIR := \
$(shell [ -n "$$DEB_BUILD_ARCH" ] && printf "$$PWD/debian/root")
SUBDIR_common := \
$(shell [ -n "$$DEB_BUILD_ARCH" ] && printf '/common')
SUBDIR_hets := \
$(shell [ -n "$$DEB_BUILD_ARCH" ] && printf '/desktop')
SUBDIR_hets_server := \
$(shell [ -n "$$DEB_BUILD_ARCH" ] && printf '/server')
DEFAULT_DIST_TEX_LATEX := \
$(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'share/texmf/dist/tex/latex' ||\
printf 'share/texlive/texmf-dist/tex/latex')
DESTDIR ?= $(DEFAULT_DESTDIR)
PREFIX ?= /usr
# all _relative_ wrt. $(PREFIX) and w/o trailing slashes
HETS_DIR := lib/hets
DOC_DIR ?= share/doc/hets
MAN_DIR ?= share/man/man1
DIST_LATEX ?= $(DEFAULT_DIST_TEX_LATEX)
# see OWL2/ProveFact.hs - it doesn't use OSGi so we need to extract JNI libs
install-owl-tools: \
BASEDIR = $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(HETS_DIR)/hets-owl-tools
install-owl-tools: jars
$(INSTALL) -m 0755 -d \
$(BASEDIR)/lib/native/i686 \
$(BASEDIR)/lib/native/x86_64 \
$(BASEDIR)/tests
$(INSTALL) -m 0644 OWL2/tests/wine.rdf $(BASEDIR)/tests/
$(INSTALL) -m 0644 OWL2/*.jar $(BASEDIR)/
ln -sf ../CASL/Termination/AProVE.jar $(BASEDIR)/AProVE.jar
ln -sf ../DMU/OntoDMU.jar $(BASEDIR)/OntoDMU.jar
$(INSTALL) -m 0644 OWL2/java/lib/*.jar $(BASEDIR)/lib/
$(info Extracting/removing JNI libs from factplusplus*.jar ...$(EOL))
rm -rf OWL2/java/tmp ; mkdir -p OWL2/java/tmp; cd OWL2/java/tmp ; \
X=`ls ../lib/uk.ac.manchester.cs.owl.factplusplus*.jar` ; \
jar xf $$X ; \
$(INSTALL) -m 0755 lib/native/32bit/libFaCTPlusPlusJNI.* \
$(BASEDIR)/lib/native/i686/ ; \
$(INSTALL) -m 0755 lib/native/64bit/libFaCTPlusPlusJNI.* \
$(BASEDIR)/lib/native/x86_64/; \
rm -rf $(BASEDIR)/lib/native/*/*.dll lib \
$(BASEDIR)/lib/`basename $$X` ; \
jar cMf $(BASEDIR)/lib/`basename $$X` *
-zip -d $(BASEDIR)/lib/owlapi-osgidistribution-3.5.2.jar \
lib/guava-18.0.jar lib/trove4j-3.0.3.jar
@printf 'Sources:\n\t%s\n\t%s\n\t%s\n' \
'https://bitbucket.org/trove4j/trove/downloads'\
'https://github.com/google/guava' \
'https://github.com/owlcs/owlapi' \
>$(BASEDIR)/lib/readme.txt
@printf '\nNOTE:\n\t%s\n\t%s\n' \
'Per default $(BASEDIR)/lib/native' \
'contains JNI libs for Linux and MacOSX only!'
# If one would add haddocs as well, add
# -m 0755 -d $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(DOC_DIR)/html/
# -m 0644 docs/* $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(DOC_DIR)/html/
install-common: docs install-owl-tools
$(INSTALL) -m 0755 -d \
$(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(HETS_DIR)/hets-isa-tools \
$(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(HETS_DIR)/hets-maude-lib \
$(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(DIST_LATEX)/hets \
$(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(DOC_DIR)
$(INSTALL) -m 0644 magic/hets.magic utils/hetcasl.sty \
$(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(HETS_DIR)
$(INSTALL) -m 0755 Isabelle/export/export.sh \
$(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(HETS_DIR)/hets-isa-tools/
$(INSTALL) -m 0644 Isabelle/export/export_helper.ml \
$(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(HETS_DIR)/hets-isa-tools/
$(INSTALL) -m 0644 Maude/hets.prj Maude/*maude \
$(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(HETS_DIR)/hets-maude-lib/
$(INSTALL) -m 0644 doc/*.pdf \
$(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(DOC_DIR)/
BACK=`printf '$(DIST_LATEX)/hets' | ${SED} -e 's/[^/]\{1,\}/../g'` ; \
ln -sf $${BACK}/$(HETS_DIR)/hetcasl.sty \
$(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(DIST_LATEX)/hets/hetcasl.sty
$(info $(EOL)If TeX is installed, remember to re-run texhash!$(EOL)$(EOL))
%.bin:
$(MAKE) $*-opt
# for now install-{common,hets,hets_server} are supported, only.
install-%: %.bin
$(INSTALL) -m 0755 -d \
$(DESTDIR)$(SUBDIR_$*)$(PREFIX)/bin \
$(DESTDIR)$(SUBDIR_$*)$(PREFIX)/$(HETS_DIR) \
$(DESTDIR)$(SUBDIR_$*)$(PREFIX)/$(MAN_DIR)
$(SED) -e "s,@CLIENT_BASEDIR@,$(PREFIX)," debian/hets_script \
>$(DESTDIR)$(SUBDIR_$*)$(PREFIX)/bin/$(subst _,-,$*)
chmod 0755 $(DESTDIR)$(SUBDIR_$*)$(PREFIX)/bin/$(subst _,-,$*)
ln $< $(DESTDIR)$(SUBDIR_$*)$(PREFIX)/$(HETS_DIR)/$(subst _,-,$*) 2>/dev/null || \
cp $< $(DESTDIR)$(SUBDIR_$*)$(PREFIX)/$(HETS_DIR)/$(subst _,-,$*)
[ $* = 'hets' ] && RMSECT='SERVER' || RMSECT='DESKTOP' ; \
$(SED) -e "/@S$${RMSECT}@/,/@E$${RMSECT}@/ d" debian/hets.1 \
>$(DESTDIR)$(SUBDIR_$*)$(PREFIX)/$(MAN_DIR)/$(subst _,-,$*).1
[ "$(OSNAME)" = 'SunOS' ] || ${SED} -i -e '/@SSOLARIS@/,/@ESOLARIS@/ d' \
$(DESTDIR)$(SUBDIR_$*)$(PREFIX)/$(MAN_DIR)/$(subst _,-,$*).1
install: install-hets install-hets_server install-common install-owl-tools
############################################################################
# DEBIAN rules
############################################################################
build-indep: jars docs
build-arch: hets.bin hets_server.bin
build: build-indep build-arch
# For PPA source packages we submit a platform specific changelog via
# *.debian.tar.xz, for local packages we generate it on demand.
CHANGELOG := $(shell [ -f debian/changelog ] && \
printf 'debian/changelog' || printf 'debian/changelog.tmp')
# See Versioning in ./README
# NOTE: The dash crap sucks again here! So we assume only the 2nd rev num
# might be padded with a single '0' to avoid more clutter.
debian/changelog.tmp: debian/control
@SRCPKG=`grep ^Source: debian/control |awk '{ print $$2 ; }'` ; \
if [ -z "${FULL_DEBVERS}" ]; then \
LSB=`lsb_release -rs`; A="$${LSB%.*}"; B="$${LSB#*.}"; B="$${B##0}"; \
FULL_DEBVERS="$(HETS_VERSION).1-1.$${A}.$${B}.1" ; \
printf "\nUsing '$${FULL_DEBVERS}' as new version.\n\n" ; \
fi ; \
[ -z "$${REL_NAME}" ] && REL_NAME=`lsb_release -cs` ; \
[ -z "$${GPG_NAME}" ] && GPG_NAME='Foo Bar' ; \
[ -z "$${GPG_EMAIL}" ] && GPG_EMAIL='foo.bar@do.main' ; \
printf "%s (%s) %s; urgency=low\n\n %s\n\n -- %s <%s> %s\n" "$${SRCPKG}" \
"$${FULL_DEBVERS}" "$${REL_NAME}" \
"* Initial release, automatically generated." \
"$${GPG_NAME}" "$${GPG_EMAIL}" "`date -R`" \
>debian/changelog.tmp
# NOTE: dpkg-gencontrol is not POSIX conform wrt. arg processing!
binary-indep: build-indep install-common $(CHANGELOG)
-@[ "$${USERNAME}" != 'root' -o -z "$${FAKEROOTKEY}" ] && \
printf '\nWARNING: The $< target should be called using fakeroot!\n\n'
$(INSTALL) -m 0755 -d $(DESTDIR)$(SUBDIR_common)/DEBIAN
dpkg-gencontrol -P$(DESTDIR)$(SUBDIR_common) -phets-common \
-l$(CHANGELOG)
dpkg-deb -Z xz -b $(DESTDIR)$(SUBDIR_common) ../hets-A.deb
dpkg-name -o ../hets-A.deb
binary-arch: build-arch install-hets install-hets_server $(CHANGELOG)
-@[ "$${USERNAME}" != 'root' -o -z "$${FAKEROOTKEY}" ] && \
printf '\nWARNING: The $< target should be called using fakeroot!\n\n'
$(INSTALL) -m 0755 -d \
$(DESTDIR)$(SUBDIR_hets)/DEBIAN \
$(DESTDIR)$(SUBDIR_hets_server)/DEBIAN
dpkg-gencontrol -P$(DESTDIR)$(SUBDIR_hets) -phets-desktop \
-l$(CHANGELOG)
dpkg-deb -Z xz -b $(DESTDIR)$(SUBDIR_hets) ../hets-B.deb
dpkg-gencontrol -P$(DESTDIR)$(SUBDIR_hets_server) -phets-server \
-l$(CHANGELOG)
dpkg-deb -Z xz -b $(DESTDIR)$(SUBDIR_hets_server) ../hets-C.deb
dpkg-name -o ../hets-B.deb ../hets-C.deb
# Make sure debian/changelog exists, since dpkg-buildpackage runs finally a
# "dpkg-genchanges -b -m'...' >../${fullPkgName}.changes"
binary: binary-indep binary-arch
@[ -f debian/changelog ] || ln -s changelog.tmp debian/changelog
# vim: ts=4 sw=4 filetype=make