Makefile revision 961087225d1d2b9534152a346d1a3755ed952fcd
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner#!/usr/bin/make -f
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# Makefile
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner#
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# Authors: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# Jens Elkner, Uni Magdeburg 2016
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# This GNU Makefile will compile the hets system and provides also
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# targets for test programs during implementation phases.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerinclude var.mk
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerHETS_VERSION ?= $(shell printf `cat version_nr`)
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# We assume ghc 7+
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerGHCVERSION := $(shell ghc --numeric-version)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerNO_BIND_WARNING := -fno-warn-unused-do-bind
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerHC_WARN := -Wall -fwarn-tabs \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner -fwarn-unrecognised-pragmas -fno-warn-orphans $(NO_BIND_WARNING)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# uncomment HC_PROF for profiling (and comment out packages in var.mk)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# call resulting binary with a final +RTS -p to get a file <binary>.prof
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner#HC_PROF := -prof -auto-all -osuf p_o +RTS -K100m -RTS
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerHC_OPTS += $(HC_WARN) $(HC_PROF)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# -ddump-minimal-imports
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# uncomment the above line to generate .imports files for displayDependencyGraph
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner.DEFAULT_GOAL := hets
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner.NOTPARALLEL:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# *.bin variants here to let them survive a 'make clean'
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerall: hets.bin hets_server.bin
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# Documentation (no haddock stuff, i.e. "docs/index.html", since developer can
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# generated it on demand by themselves and other users dont't need it). Other
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# papers (doc/*.pdf) are already pre-generated.
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerdocs: doc/UserGuide.pdf
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerSED := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'gsed' || printf 'sed')
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerTAR := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'gtar' || printf 'tar')
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerINSTALL := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'ginstall' || printf 'install')
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerdefine EOL
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerendef
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# indicate, whether working on an exported repo
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerGIT_TIMESTAMP := $(shell printf "`git log -1 --format=%ct -- .`")
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerEXPORTED := $(shell [ -n "$(GIT_TIMESTAMP)" ] || printf 1)
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederempty =
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederspace = $(empty) $(empty)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichDRIFT_deps = utils/DrIFT-src/*hs
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
ad270004874ce1d0697fb30d7309f180553bb315Christian MaederGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPERL = perl
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederGENRULES = utils/genRules
1a38107941725211e7c3f051f7a8f5e12199f03acmaederGENRULECALL = $(GENRULES) -r ShATermConvertible \
ce5b44277ea06257548ff625e928cb1290c6d297cmaeder -i ATerm.Lib
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder
fa8878c6145f652f615a04a5e9c15a1d1327bc92cmaederGENRULECALL2 = $(GENRULES) -r ShATermLG \
ce5b44277ea06257548ff625e928cb1290c6d297cmaeder -i ATerm.Lib -i ATC.Grothendieck
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederDRIFT = utils/DrIFT
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHADDOCK = haddock
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederDTD2HS = utils/DtdToHaskell
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroederifneq ($(strip $(HAXML_PACKAGE_COMPAT)),)
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederDTD2HS_src = utils/DtdToHaskell-src/pre-1.22/
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroederelse
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederDTD2HS_src = utils/DtdToHaskell-src/current/
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroederendif
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroederifneq ($(strip $(HAXML_PACKAGE)),)
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroederderived_sources += Isabelle/IsaExport.hs
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroederendif
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder
825a1e4ca1e768de4b4883c65a6cb1dce6aa0002Christian MaederDTD2HS_deps = $(DTD2HS_src)*.hs
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder# list glade files
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maederderived_sources += $(GTK_GLADE_HSFILES)
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# the list of logics that need ShATermConvertible instances
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian Maederlogics = CASL HasCASL Isabelle Modal Hybrid TopHybrid Temporal \
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian Maeder CoCASL COL CspCASL CASL_DL \
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maeder SoftFOL ConstraintCASL Propositional RelationalScheme VSE OMDoc DFOL \
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl THF \
d62661e54e2662d53b583ae48609f5037701078dcmaeder FreeCAD OWL2 RDF CSMOF QVTR
8cacad2a09782249243b80985f28e9387019fe40Christian Maeder
6a2dad705deefd1b7a7e09b84fd2d75f2213be47Christian MaederTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian Maeder Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
014dc30f64ec25e4790cca987d4d1e6635430510Christian Maeder Common/ATerm/ATermDiffMain.hs Common/annos.hs \
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
6aea82c63ba1d2efc0329bc784a14e521469ec20Christian Maeder Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder Common/testxupdate.hs Common/testxpath.hs \
feca1d35123d8c31aee238c9ce79947b0bf65494Christian Maeder SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder### list of directories to run checks in
f5c0884429b01e74c6e658ded921fb2e16dfb478Christian MaederTESTDIRS += Common CASL Fpl/test HasCASL test ExtModal/Tries \
db675e8302ddb0d6528088ce68f5e98a00e890e3Christian Maeder CommonLogic/TestData
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerifneq ($(PFE_FLAGS),)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerPFE_TOOLDIR := $(wildcard $(dir $(PFE_SETUP)))
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerPFE_DIRS := base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian 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 \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/transforms base/transforms/Deriving property \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/syntax property/AST property/transforms \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/TI property/defs property/parse2 property/parse2/Parser
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerPFE_PATHS := $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerDRIFT_ENV := DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maederlogics += Haskell
dc679edd4ca027663212afdf00926ae2ce19b555Christian Maederderived_sources += Haskell/PreludeString.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Haskell/ProgramaticaPrelude.hs
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder## rule for appendHaskellPreludeString
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder $(APPENDPRELUDESTRING)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(APPENDPRELUDESTRING) < $< > $@
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @chmod 444 $@
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder HsModule HsName HsLiteral HsIdent
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder#files in base/TI/
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerOther_PFE_files := property/AST/HsPropStruct base/defs/PNT \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/syntax/PropSyntaxStruct
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerHaskell_files := $(addsuffix .hs, \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder## rule for ATC generation
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
8037b7d21021a94b69e4a092f5c98e491333d939cmaeder $(GENRULECALL) -r Typeable -i Data.Typeable -i Haskell.BaseATC \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner -o $@ $(Haskell_files)
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maederhs_der_files += $(hs_clean_files)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
e6d5dbbc3308f05197868806e0b860f4f53875f1Christian MaederTESTDIRS += ToHaskell
363939beade943a02b31004cea09dec34fa8a6d9Christian MaederTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
e4f4d096e5e6d60dd91c746d0e833d0ac7a29c50Christian Maederelse
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerDRIFT_ENV := DERIVEPATH=
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederendif
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner# end of programatica stuff (PFE_FLAGS)
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerTESTTARGETS := $(subst .hs,,$(TESTTARGETFILES))
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# files generated by DriFT
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maederdrifted_files = Common/AS_Annotation.hs \
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs Hybrid/AS_Hybrid.hs TopHybrid/AS_TopHybrid.hs \
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder Propositional/AS_BASIC_Propositional.hs \
328a85c807f2a95c3f147d10b05927eaf862ebebChristian Maeder CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
8fb127028cb7dd361e348a3252e33487f73428bcJonathan von Schroeder CASL_DL/AS_CASL_DL.hs THF/As.hs \
06dd4e7c29f33f6122a910719e3bd9062256e397Andy Gimblett CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder RelationalScheme/AS.hs ATC/Grothendieck.hs \
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder ExtModal/AS_ExtModal.hs QBF/AS_BASIC_QBF.hs \
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder CommonLogic/AS_CommonLogic.hs Fpl/As.hs \
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder $(gendrifted_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# files to extract data types from to generate ShATermConvertible instances
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maederatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
140287998aa8592c9c403bd9e308e447ba92ae11Christian Maeder Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder Common/Consistency.hs Common/ProofTree.hs \
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder Static/DgUtils.hs Static/XGraph.hs Static/DevGraph.hs \
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder Common/Lib/Graph.hs Common/IRI.hs
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# files generated by genRules as input for DriFT
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederatc_der_files = $(foreach file, $(atc_files), \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# the rules to create ATC .der.hs file for DriFT
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/Id.der.hs: Common/Id.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
3554301a34639efb6c9961a8571775d0061284c9Christian MaederATC/IRI.der.hs: Common/IRI.hs $(GENRULES)
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder $(GENRULECALL) -i ATC.Id -o $@ $<
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/Result.der.hs: Common/Result.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -i ATC.Id -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -o $@ $<
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian MaederATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder $(GENRULECALL) -o $@ $<
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
3554301a34639efb6c9961a8571775d0061284c9Christian Maeder $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
54ea981a0503c396c2923a1c06421c6235baf27fChristian MaederATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian MaederATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
db6729e623b4053149084ccf4b35e5308ac7e359Christian Maeder $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maeder
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian MaederATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder
819e29dba060687cf391e444e0f6ff88c1908cc3Christian MaederATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder $(GENRULECALL) -o $@ $<
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder $(GENRULECALL2) -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maeder $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
ac34194a668399bb8ef238da77c3a09e93fb253bChristian Maeder $(GENRULECALL) -x Logic.Prover.ProverTemplate \
4fc9de0da898448f1d3597ebbd8c04a066464c21Christian Maeder -x Logic.Prover.ConsChecker \
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
c208973c890b8f993297720fd0247bc7481d4304Christian MaederATC/DgUtils.der.hs: Static/DgUtils.hs $(GENRULES)
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency -o $@ $<
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian MaederATC/XGraph.der.hs: Static/XGraph.hs $(GENRULES)
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder $(GENRULECALL2) -i ATC.DgUtils -o $@ $<
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian MaederATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder $(GENRULECALL2) -i ATC.XGraph -i ATC.AS_Library -o $@ $<
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# ATC files for every logic
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
986d3f255182539098a97ac86da9eeee5b7a72e3Christian Maeder CASL/AS_Basic_CASL.der.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
4561227a776bdf0ab679b19fb92f1eaaed8786f7Christian MaederHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
01e278bdd7dce13b9303ed3d79683d83c89d09f9Liam O'ReillyIsabelle_files = Isabelle/IsaSign.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik LueckePropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder Propositional/Sublogic.hs
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai CodescuHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
31d6d9286988dc31639d105841296759aeb743e0Jonathan von Schroeder HolLight/Sublogic.hs HolLight/Term.hs
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder QBF/AS_BASIC_QBF.hs QBF/Symbol.hs \
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder QBF/Sublogic.hs
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
05a206508bc898f87fe6ab6e069814df3c29d303Dominik LueckeRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
05a206508bc898f87fe6ab6e069814df3c29d303Dominik Luecke
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von SchroederHybrid_files = Hybrid/AS_Hybrid.hs Hybrid/HybridSign.hs
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von SchroederTopHybrid_files = TopHybrid/AS_TopHybrid.hs TopHybrid/TopHybridSign.hs
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian Maeder Temporal/Symbol.hs Temporal/Morphism.hs
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian Maeder
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till MossakowskiConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederCOL_files = COL/AS_COL.hs COL/COLSign.hs
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder
0b349288edfa50fdf38fda1a14e1562d03f92574Christian MaederCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
5afff1a0f62394414c33b06141175b3ab0b117a5Christian Maeder CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
5afff1a0f62394414c33b06141175b3ab0b117a5Christian Maeder CspCASL/Morphism.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
1b3a2f98d1cd01fc9e0591f69507e20526727559Dominik LueckeCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus LuettichSoftFOL_files = SoftFOL/Sign.hs
e39a1626bee36d6ad13a2c0014a80ef179a65bcbChristian MaederVSE_files = VSE/As.hs
f8e1a1eca871a26a535a4ee7d51902ba94b1db1eChristian MaederOMDoc_files = OMDoc/OMDocInterface.hs
ea3bff3e547a1ac714d4db39c5efef95e02b2e7dChristian MaederDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
dd6f22b9dcff2695181b86372e4df03d5b96e92dKristina SojakovaLF_files = LF/Sign.hs LF/Morphism.hs LF/AS.hs
005e0f0c6b0cc898003b03801158c208f3071fc5Kristina SojakovaFramework_files = Framework/AS.hs
abf2487c3aece95c371ea89ac64319370dcb6483Klaus Luettich
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder Maude/Symbol.hs Maude/AS_Maude.hs
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder
76b9b2974795a6fb31f242fd032de3ff66df6204Christian MaederExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
74a992bd019d3319df2f21f9d358ff06cafb5f7eMihaela Turcu ExtModal/MorphismExtension.hs ExtModal/Sublogic.hs
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder
878a5ecd6acf973907e25e5be6e4a792ea19a05eEwaryst SchulzCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs \
878a5ecd6acf973907e25e5be6e4a792ea19a05eEwaryst Schulz CSL/TreePO.hs
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik Dietrich
6b75c206b317eb30a08d88a8f27e0295ffeb1546Christian MaederCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
9a4b469ca0a7f44a598e551a973c75195207db58Eugen Kuksa CommonLogic/Symbol.hs CommonLogic/Morphism.hs CommonLogic/Sublogic.hs
48aa0645e25883048369afc02aac3f49b14a50daChristian Maeder
01645eac73dbc789392674930adc5745c935f3a0Christian MaederAdl_files = Adl/As.hs Adl/Sign.hs
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian MaederFpl_files = Fpl/As.hs Fpl/Sign.hs
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von SchroederTHF_files = THF/As.hs THF/Cons.hs THF/Sign.hs THF/Sublogic.hs
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst SchulzFreeCAD_files = FreeCAD/As.hs
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz
a604cbad8e2202147b5c6bb9f2e06ae61162d654Felix Gabriel ManceOWL2_files = OWL2/AS.hs OWL2/Symbols.hs OWL2/Sign.hs OWL2/MS.hs \
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maeder OWL2/Morphism.hs OWL2/ProfilesAndSublogics.hs OWL2/Sublogic.hs \
308834907a120fd8771e18292ed2ca9cd767c12dChristian Maeder OWL2/Profiles.hs
7834a982096d93301a4626f444dd9ea5f9fe17eaChristian Maeder
1f9274bb2aa44ea236327814dce99946be52e348Felix Gabriel ManceRDF_files = RDF/AS.hs OWL2/AS.hs RDF/Symbols.hs RDF/Sign.hs RDF/Morphism.hs \
1f9274bb2aa44ea236327814dce99946be52e348Felix Gabriel Mance RDF/Sublogic.hs
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder
8fd6a3f938496a502bc62f1923ff7c15f59acf91Christian MaederCSMOF_files = CSMOF/As.hs CSMOF/Sign.hs
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian Maeder
d62661e54e2662d53b583ae48609f5037701078dcmaederQVTR_files = QVTR/As.hs QVTR/Sign.hs
9f226cec9f978edaba67aee4c4e04e3d3b994b87Daniel Calegari
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
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederQBF/ATC_QBF.der.hs: $(QBF_files) $(GENRULES)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai CodescuHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
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)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von SchroederHybrid/ATC_Hybrid.der.hs: $(Hybrid_files) $(GENRULES)
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Hybrid_files)
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von SchroederTopHybrid/ATC_TopHybrid.der.hs: $(TopHybrid_files) $(GENRULES)
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(TopHybrid_files)
81f49ee02aaa3bc870401f8883bf52742eb3ea7aJonathan von Schroeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
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)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
5199920ca3b698b2149c8cb9d2ce2e98a280ff9dChristian Maeder $(GENRULECALL) -i ATC.IRI -o $@ $(OMDoc_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina SojakovaLF/ATC_LF.der.hs: $(LF_files) $(GENRULES)
48aa0645e25883048369afc02aac3f49b14a50daChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina Sojakova
79834070d6d3c63a098e570b12fa3405c607dc70Kristina SojakovaFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder
8a78868bae2ec6838c87366c35c57e109154c51eChristian MaederExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst SchulzCSL/ATC_CSL.der.hs: $(CSL_files) $(GENRULES)
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulz $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik Dietrich
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl LucCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc
01645eac73dbc789392674930adc5745c935f3a0Christian MaederAdl/ATC_Adl.der.hs: $(Adl_files) $(GENRULES)
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian MaederFpl/ATC_Fpl.der.hs: $(Fpl_files) $(GENRULES)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis TsogiasTHF/ATC_THF.der.hs: $(THF_files) $(GENRULES)
fc09e0a6af734edbd944dd8082bb51985c233b43Alexis Tsogias $(GENRULECALL) -i ATC.Id -i ATC.GlobalAnnotations -o $@ $(THF_files)
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst SchulzFreeCAD/ATC_FreeCAD.der.hs: $(FreeCAD_files) $(GENRULES)
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(FreeCAD_files)
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz
bab2d88d650448628730ed3b65c9f99c52500e8cChristian MaederOWL2/ATC_OWL2.der.hs: $(OWL2_files) $(GENRULES)
18d370f8341357f5d6a4068f4bb6981173ece70fFelix Gabriel Mance $(GENRULECALL) -i ATC.Result -o $@ $(OWL2_files)
7834a982096d93301a4626f444dd9ea5f9fe17eaChristian Maeder
ed1b8e97e72b2e3e92edaf2eb22a4b5373d705f1Felix Gabriel ManceRDF/ATC_RDF.der.hs: $(RDF_files) $(GENRULES)
ed1b8e97e72b2e3e92edaf2eb22a4b5373d705f1Felix Gabriel Mance $(GENRULECALL) -i ATC.Result -o $@ $(RDF_files)
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian MaederCSMOF/ATC_CSMOF.der.hs: $(CSMOF_files) $(GENRULES)
fc1bf40b1196cf62c6ce5c971633b5ebfc5936efChristian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(CSMOF_files)
4b4a0b61b72cf8478a5d4d5002bca9f699401363Christian Maeder
d62661e54e2662d53b583ae48609f5037701078dcmaederQVTR/ATC_QVTR.der.hs: $(QVTR_files) CSMOF/ATC_CSMOF.hs $(GENRULES)
d62661e54e2662d53b583ae48609f5037701078dcmaeder $(GENRULECALL) -i CSMOF.ATC_CSMOF -i Common.ATerm.ConvInstances \
d62661e54e2662d53b583ae48609f5037701078dcmaeder -o $@ $(QVTR_files)
9f226cec9f978edaba67aee4c4e04e3d3b994b87Daniel Calegari
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# all ATC .der.hs files for all logics
c70ef4c3b3a62764f715510c9fd67dde3acfe454Christian Maederatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maedergenerated_rule_files = $(atc_der_files) $(atc_logic_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# a rule to create all .der.hs files
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaedergenRules: $(generated_rule_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# the final ATC target files created by DriFT
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maedergendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# all sources that need to be created before ghc can be called
67d711ed8d639b1c6e123896e7133d03911c1128Christian Maederderived_sources += $(drifted_files) Driver/Version.hs $(hs_der_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
360ce9b5c746ac021944db12eb26e3df2697b8c7Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner####################################################################
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# BUILD related targets
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner####################################################################
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner.PHONY: all hets-opt hets-optimized hets_server-opt docs jars \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner clean o_clean clean_pretty bin_clean java_clean realclean distclean \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner annos check test capa hacapa h2h h2hf showKP clean_genRules genRules \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner count fromKif release cgi ghci build-hets callghc \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner get-programatica check_desktop check_server check_cgi \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner install install-common install-owl-tools archive \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner build-indep build-arch build binary-indep binary-arch binary
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner.SECONDARY: $(generated_rule_files)
ddbf07996361d7e88cf23858a8f85595fa493514Jonathan von Schroeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner.PRECIOUS: %.bin
7c99e334446bb97120e30e967baeeddfdd1278deKlaus Luettich
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder# dummy target to force ghc invocation
f5c9b1e739228c2a2edf055ac419583412569683Christian Maedercallghc:
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# some trickery to trigger a full clean if the main target (hets, hets_server)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# changed since last call
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknercheck_desktop:
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner -@[ -e .hets_server -o -e .hets_cgi -o -e .hets_oow ] && $(MAKE) clean
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknercheck_server:
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner -@[ -e .hets_desktop -o -e .hets_cgi -o -e .hets_oow ] && $(MAKE) clean
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknercheck_cgi:
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner -@[ -e .hets_desktop -o -e .hets_server -o -e .hets_oow ] && $(MAKE) clean
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner%-opt: HC_OPTS += -O
011156728d0d9ae2a044ce2d01e62228720b1aa2cmaeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# the variant without GUI
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerhets_server hets_server-opt: HASKELINE_PACKAGE :=
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerhets_server hets_server-opt: GLADE_PACKAGE :=
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerhets_server hets_server-opt: UNI_PACKAGE :=
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerhets_server hets_server-opt: check_server $(derived_sources)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @touch .hets_server
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) --make $(HC_OPTS) -o hets_server hets.hs
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @ln -f hets_server hets_server.bin
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerhets-opt: check_desktop $(derived_sources)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @touch .hets_desktop
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) --make $(HC_OPTS) -o hets hets.hs
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @ln -f hets hets.bin
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# deprecated target name
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerhets-optimized: hets-opt
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerhets_cgi hets_cgi-opt: check_cgi GUI/hets_cgi.hs $(derived_sources)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @touch .hets_cgi
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) --make $(HC_OPTS) -o hets.cgi GUI/hets_cgi.hs
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @ln -f hets.cgi hets_cgi.bin
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerderivedSources: $(derived_sources)
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerTEX_FILES := $(wildcard doc/*.tex doc/*.png doc/*.dot doc/*.sty doc/*.eps)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerdoc/UserGuide.pdf: $(TEX_FILES)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @X=`which latexmk 2>/dev/null` ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner if [ -n "$$X" ]; then \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner cd doc ; latexmk -silent -pdf -use-make \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner -pdflatex="pdflatex -interaction=nonstopmode" UserGuide.tex ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner else \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf '\nMissing "latexmk" - unable to create doc/UserGuide.pdf!\n\n';\
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner fi
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# replace '$Header$' in all *.hs with the filename of the containing file
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# call it from time to time
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerupdateHeaders: $(derived_sources)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @find . -name '*.hs' -exec fgrep -l '$$Header$$' {} + | xargs -I@ \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ${SED} -i -e 's|\$$Header\$$|@|g' @
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerGHC_LIBDIR := $(shell ghc --print-libdir)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerGHC_BASEDIR := $(shell cd $(GHC_LIBDIR)/../.. && printf "$${PWD}")
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# scanning the "whole" NFS server isn't so smart, so restrict to wellknown dirs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerHADDOCK_INTERFACES = $(shell find $(GHC_BASEDIR)/share/doc/ghc \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(GHC_BASEDIR)/lib/ghc-doc/haddock -name '*.haddock' 2>/dev/null)
0a5571c8adeddd27548445546491725beb224dddChristian Maeder
0a5571c8adeddd27548445546491725beb224dddChristian MaederHAD_INTS = $(foreach file, $(HADDOCK_INTERFACES),\
0a5571c8adeddd27548445546491725beb224dddChristian Maeder -i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
0a5571c8adeddd27548445546491725beb224dddChristian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerHADDOCK_OPTS := $(addprefix --optghc=, $(HC_OPTS))
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerdocs/index.html: $(derived_sources)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @$(RM) -r docs && mkdir docs && \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf '\nCheck log.haddock for results ...\n'
e642ad0e782f9bb9ba310164358220402eec8cd8Christian Maeder $(HADDOCK) -o docs -h -s ../%F $(HAD_INTS) \
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder -t 'Hets - the Heterogeneous Tool Set' \
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(filter-out Scratch.hs, $(wildcard *.hs)) \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner >log.haddock 2>&1
ddbf07996361d7e88cf23858a8f85595fa493514Jonathan von Schroeder
ddbf07996361d7e88cf23858a8f85595fa493514Jonathan von Schroeder
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder$(DRIFT): $(DRIFT_deps)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner cd utils/DrIFT-src; $(HC) --make -o ../DrIFT DrIFT.hs
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder$(DTD2HS): $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell.hs
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @mkdir -p utils/DtdToHaskell-src/DtdToHaskell
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @cp -f $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) --make $(HC_OPTS) -iutils/DtdToHaskell-src -o $@ \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner utils/DtdToHaskell-src/DtdToHaskell.hs
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder
3dde4051c307b609159a097f08a05108fdd036efJonathan von SchroederIsabelle/IsaExport.hs: $(DTD2HS) Isabelle/IsaExport.dtd
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(DTD2HS) Isabelle/IsaExport.dtd Isabelle/IsaExport.hs Isabelle.
3dde4051c307b609159a097f08a05108fdd036efJonathan von Schroeder
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder$(GENRULES): $(DRIFT) $(GENERATERULES_deps)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @cd utils/GenerateRules; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner -o ../genRules GenerateRules.hs
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
1dfba1f850f6a43094962b459998d1ea11472461Christian Maederutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder $(HC) --make -o $@ $<
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# Common/LaTeX_maps.hs generation
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichutils/genItCorrections: $(GENITCORRECTIONS_deps)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(HC) --make -o $@ $<
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(info $(EOL)Generating pretty/LaTeX_maps.hs ...$(EOL))
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @cd pretty >/dev/null; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(PERL) ../utils/words.pl > words.pl.log ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ../utils/genItCorrections gen_it_characters gen_it_words >> LaTeX_maps.hs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(info $(EOL)Done.$(EOL)Please copy the file manually to Common$(EOL))
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder### clean up
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederclean_genRules:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @$(RM) $(generated_rule_files) $(gendrifted_files) $(hs_clean_files)
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich
82e29b77f0ef4cccd7ed734692c5e1e93dbbc645Christian Maeder### removes all *.o, *.hi and *.p_o files in all subdirectories
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luetticho_clean:
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @find . \( -name '*.o' -o -name '*.hi' -o -name '*.p_o' \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner -o -name '*.dyn_hi' -o -name '*.dyn_o' \) -exec rm -f {} +
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @$(RM) -f .hets*
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder### remove binaries
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederbin_clean:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @$(RM) hets hets.cgi hets_server \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(TESTTARGETS)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# do not delete on exported archive, because latexmk might not be available
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerUSER_GUIDE := $(shell [ -n "$(EXPORTED)" ] || printf 'doc/UserGuide.pdf')
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# Ubuntu/Debian dash crap really hurts
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maederclean_pretty:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @ksh -c "rm -rf pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner pretty/generated_words.tex \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty} \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner test/*/log */test/temp* ToHaskell/test/*.{out,output} \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ExtModal/Tries/*.{pp.het,th} Fpl/test/*.{pp.het,th} \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner CommonLogic/TestData/*.{pp.het,th} Common/testxmldiff \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner doc/UserGuide.{log,aux,bbl,blg,out,fdb_latexmk,fls} doc/hs2isa.ps \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(USER_GUIDE) log.haddock \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner debian/{root,changelog*,*.tmp,files,hets-*,tmp} \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner "
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerjava_clean:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @$(RM) -rf OWL2/*.jar OWL2/java/build OWL2/java/tmp OWL2/lib
1365c420ef71be3d52796ebd369dc2defdedc822Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerclean: bin_clean o_clean clean_pretty
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerrealclean: clean java_clean
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @$(RM) -f *.bin
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
e420b3848a0e15a9e074b08c413996cbeb5ab06dChristian Maeder### additionally removes generated files not in the repository tree
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerdistclean: realclean clean_genRules
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @$(RM) -rf $(derived_sources) \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner utils/appendHaskellPreludeString \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner utils/DrIFT utils/genRules \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(DTD2HS) \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner utils/DtdToHaskell-src/DtdToHaskell \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner docs
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @[ -n "$(EXPORTED)" ] || $(RM) rev.txt
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### interactive
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerghci: $(derived_sources)
5580ab3e64410186ccd36cde8a94282d8757ac0dChristian Maeder ghci $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner### build only, don't link. Target was formerly known as 'build'.
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerbuild-hets: hets.hs
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @touch .hets-oow
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) --make $(HC_OPTS) -c $<
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder### Kif parser
50515239e7e190f4a34ca581dd685d002148fbddChristian MaederfromKif: CASL/fromKif
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder### Annos parser
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maederannos: Common/annos
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### CASL parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedercapa: CASL/capa
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### HasCASL parser
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhacapa: HasCASL/hacapa
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski### Haskell analysis
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowskihana: Haskell/hana
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini### Haskell to Isabelle-HOLCF translation
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maederh2hf: Haskell/h2hf
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian MaederHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maeder Common/Lib/*.hs Comorphisms/*.hs
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) -O --make $(HC_OPTS) -o $@ $<
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder### HasCASL to Haskell translation
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maederh2h: Haskell/h2h
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder
e50e41135ece589f7202bd4ef8d6b97531c2a56eKlaus Luettich### test program to check the known provers
47b0e9f3cb008cb7997f4e3bae26e4d62dcc887aChristian MaedershowKP: Comorphisms/test/showKP
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### run tests in other directories
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maedercheck: $(TESTTARGETS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknertest:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner yes X | $(MAKE) check
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder## Preparing the version of Hets
39bc7bbfc84f8b49f8434d299ec3a602c0437581Christian MaederDriver/Version.hs: Driver/Version.in version_nr rev.txt
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @$(RM) $@
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @${SED} -e "s|\$$Header\$$|./$@|" Driver/Version.in >$@
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @printf ' ++ "$(shell cat version_nr), $(shell cat rev.txt)"\n' >> $@
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @chmod 444 $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
39bc7bbfc84f8b49f8434d299ec3a602c0437581Christian Maederrev.txt:
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @if [ -z "$(EXPORTED)" ]; then \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf '$(GIT_TIMESTAMP)\n' > rev.txt ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner elif [ ! -e rev.txt ]; then \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf 'Unable to create rev.txt (no git repo infos available)\n' ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner exit 1; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner else \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf 'Keeping rev.txt (no git repo infos available)\n' ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner fi
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian MaederATC/DevGraph.hs: Static/DevGraph.hs
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian Maeder
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder## two dependencies to avoid circular prerequisites
e112e83352048f3db8c8f93ae104193e7338c10fChristian MaederCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich Common/annos Common/test_parser Comorphisms/test/showKP \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner$(CASL_DEPENDENT_BINARIES): $(derived_sources)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder## suffix rules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder.SUFFIXES:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder## rule for GHC
f5c9b1e739228c2a2edf055ac419583412569683Christian Maeder%: %.hs callghc
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @touch .hets-oow
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) --make $(HC_OPTS) -o $@ $<
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder## rule for DrIFT
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder%.hs: %.der.hs $(DRIFT)
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @chmod 444 $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## compiling rules for object and interface files
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.o %.hi: %.hs
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) $(HC_OPTS) -c $<
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.o %.hi: %.lhs
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) $(HC_OPTS) -c $<
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## compiling rules for dependencies
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.d : %.hs
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) -M $(HC_OPTS) -optdep-f -optdep$@ $<
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.d : %.lhs
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner $(HC) -M $(HC_OPTS) -optdep-f -optdep$@ $<
1a6464613c59e35072b90ca296ae402cbe956144Christian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder## Rule to generate hs files from glade files. Needed for GTK
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder%.hs: %.glade utils/appendHaskellPreludeString \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder GUI/Glade/Template.append.hs
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder b=`basename $< .glade`; \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder utils/appendHaskellPreludeString $< > $@
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# just build all required jar files
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerjars:
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @cd OWL2/java ; ant -S
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens ElknerPFE_BASE := $(dir $(PFE_SETUP_FILE))
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerget-programatica:
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @if [ -z $(PROGRAMATICA_SRC_FILE) -o ! -e $(PROGRAMATICA_SRC_FILE) ] && \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner [ -z "$(PROGRAMATICA_SRC_URL)" ]; then \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner printf 'Unable to get programatica (%s %s)\n' \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner 'neither PROGRAMATICA_SRC_FILE nor PROGRAMATICA_SRC_FILE' \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner 'environment variable is set/exist.' ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner exit 1 ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner fi
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @if [ -e $(PFE_BASE) ]; then \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner printf '%s already exists.\n' $(PFE_BASE) ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner exit 2 ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner fi
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner -@HWD=$${PWD} ; X=`echo $(PFE_BASE)| cut -f1 -d/`; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner rm -f $$X 2>/dev/null || rm -rf $(PFE_BASE) ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner mkdir -p $(PFE_BASE); \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner cd $(PFE_BASE) || exit 3 ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner PFEDIR=$${PWD} ; cd .. ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner if [ -n $(PROGRAMATICA_SRC_FILE) -a -e $(PROGRAMATICA_SRC_FILE) ]; then \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner printf 'Extracting $(PROGRAMATICA_SRC_FILE) ...\n' ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner if $(TAR) xzf "$(PROGRAMATICA_SRC_FILE)" ; then \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner mv programatica-*/* $${PFEDIR}/ && rmdir programatica-* ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner fi ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner fi ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner if [ -n "$(PROGRAMATICA_SRC_URL)" -a ! -e $${HWD}/$(PFE_SETUP_FILE) ]; then\
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner printf 'Fetching $(PROGRAMATICA_SRC_URL) ...\n' ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner if wget --no-verbose -O x.tgz "$(PROGRAMATICA_SRC_URL)" ; then \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner if $(TAR) xzf x.tgz ; then \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner mv programatica-*/* $${PFEDIR}/ && rmdir programatica-* ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner rm -f x.tgz ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner fi ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner fi ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner fi
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner @if [ -e $(PFE_SETUP_FILE) ]; then \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner printf 'Programatica support available.\nYou probably need to %s\n\n' \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner '"make distclean" and make the desired target again.' ; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu else \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner rm -rf $(PFE_BASE) ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner printf 'Failed! No programatica support available!\n' ; exit 4 ; \
ae3e4689adbf4de67f4e1cdda6db2c0e406027d0Francisc Nicolae Bungiu fi
b446bf54c1dc78690aa12e86aadc49cdd8585847Christian Maeder
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerARC_NAME ?= /tmp/hets-$(HETS_VERSION)-$(GIT_TIMESTAMP)-src.tar.xz
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# remove trailing .txz or .tar.xz
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerarchive: ARC_BNAME = \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(patsubst %.txz,%, $(patsubst %.tar.xz,%,$(notdir $(ARC_NAME))))
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerarchive: rev.txt $(USER_GUIDE)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @[ -n "$(EXPORTED)" ] && \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf '\nThis source tree is already exported.\n' && exit 1 ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner FNAME=$(dir $(ARC_NAME))/$(ARC_BNAME).tar.xz ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf "Exporting source to $${FNAME} ...\n" ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner rm -rf tmp ; mkdir tmp || exit 3 ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner git archive --format=tar --prefix=$(ARC_BNAME)/ HEAD | \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ( cd tmp ; $(TAR) xf - ) ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner cp rev.txt tmp/$(ARC_BNAME)/ ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner if [ -e $(USER_GUIDE) ]; then \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner cp $(USER_GUIDE) tmp/$(ARC_BNAME)/$(USER_GUIDE) ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner else \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf '\nWARNING: No $(USER_GUIDE) is unavailable\n!' ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner fi ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner cd tmp/$(ARC_BNAME) ; $(MAKE) distclean ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf 'Removing unused/non-distributed files ...\n' ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner rm -rf HolLight/OcamlTools/*/*dmtcp OWL2/java/lib/native \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner MMT/hets-mmt-standalone.jar ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner zip -d OWL2/java/lib/owlapi-osgidistribution-3.5.2.jar \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner lib/guava-18.0.jar lib/trove4j-3.0.3.jar ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf 'Done.\n' ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner cd .. ; $(TAR) cJf $(ARC_BNAME).tar.xz $(ARC_BNAME) || exit 4 ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner cd .. ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ln $${PWD}/tmp/$(ARC_BNAME).tar.xz $${FNAME} 2>/dev/null || \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner mv -f $${PWD}/tmp/$(ARC_BNAME).tar.xz $${FNAME} ; \
961087225d1d2b9534152a346d1a3755ed952fcdJens Elkner ls -l $${FNAME}
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(info $(EOL)The next "make clean" will remove the tmp/ directory used.$(EOL))
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner#############################################################################
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# INSTALL targets
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner#############################################################################
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# We use $DEB_BUILD_ARCH to detect, whether this make got triggered via
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# dpkg-buildpackage
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerDEFAULT_DESTDIR := \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(shell [ -n "$$DEB_BUILD_ARCH" ] && printf "$$PWD/debian/root")
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerSUBDIR_common := \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(shell [ -n "$$DEB_BUILD_ARCH" ] && printf '/common')
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerSUBDIR_hets := \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(shell [ -n "$$DEB_BUILD_ARCH" ] && printf '/desktop')
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerSUBDIR_hets_server := \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(shell [ -n "$$DEB_BUILD_ARCH" ] && printf '/server')
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerDEFAULT_DIST_TEX_LATEX := \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'share/texmf/dist/tex/latex' ||\
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf 'share/texlive/texmf-dist/tex/latex')
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerDESTDIR ?= $(DEFAULT_DESTDIR)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerPREFIX ?= /usr
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# all _relative_ wrt. $(PREFIX) and w/o trailing slashes
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerHETS_DIR := lib/hets
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerDOC_DIR ?= share/doc/hets
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerMAN_DIR ?= share/man/man1
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerDIST_LATEX ?= $(DEFAULT_DIST_TEX_LATEX)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# see OWL2/ProveFact.hs - it doesn't use OSGi so we need to extract JNI libs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerinstall-owl-tools: \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner BASEDIR = $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(HETS_DIR)/hets-owl-tools
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerinstall-owl-tools: jars
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0755 -d \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(BASEDIR)/lib/native/i686 \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(BASEDIR)/lib/native/x86_64 \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(BASEDIR)/tests
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0644 OWL2/tests/wine.rdf $(BASEDIR)/tests/
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0644 OWL2/*.jar $(BASEDIR)/
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ln -sf ../CASL/Termination/AProVE.jar $(BASEDIR)/AProVE.jar
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ln -sf ../DMU/OntoDMU.jar $(BASEDIR)/OntoDMU.jar
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0644 OWL2/java/lib/*.jar $(BASEDIR)/lib/
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(info Extracting/removing JNI libs from factplusplus*.jar ...$(EOL))
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner rm -rf OWL2/java/tmp ; mkdir -p OWL2/java/tmp; cd OWL2/java/tmp ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner X=`ls ../lib/uk.ac.manchester.cs.owl.factplusplus*.jar` ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner jar xf $$X ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0755 lib/native/32bit/libFaCTPlusPlusJNI.* \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(BASEDIR)/lib/native/i686/ ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0755 lib/native/64bit/libFaCTPlusPlusJNI.* \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(BASEDIR)/lib/native/x86_64/; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner rm -rf $(BASEDIR)/lib/native/*/*.dll lib \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(BASEDIR)/lib/`basename $$X` ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner jar cMf $(BASEDIR)/lib/`basename $$X` *
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner zip -d $(BASEDIR)/lib/owlapi-osgidistribution-3.5.2.jar \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner lib/guava-18.0.jar lib/trove4j-3.0.3.jar
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @printf 'Sources:\n\t%s\n\t%s\n\t%s\n' \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner 'https://bitbucket.org/trove4j/trove/downloads'\
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner 'https://github.com/google/guava' \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner 'https://github.com/owlcs/owlapi' \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner >$(BASEDIR)/lib/readme.txt
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @printf '\nNOTE:\n\t%s\n\t%s\n' \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner 'Per default $(BASEDIR)/lib/native' \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner 'contains JNI libs for Linux and MacOSX only!'
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# If one would add haddocs as well, add
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# -m 0755 -d $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(DOC_DIR)/html/
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# -m 0644 docs/* $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(DOC_DIR)/html/
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerinstall-common: docs install-owl-tools
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0755 -d \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(HETS_DIR)/hets-isa-tools \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(HETS_DIR)/hets-maude-lib \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(DIST_LATEX)/hets \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(DOC_DIR)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0644 magic/hets.magic utils/hetcasl.sty \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(HETS_DIR)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0755 Isabelle/export/export.sh \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(HETS_DIR)/hets-isa-tools/
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0644 Isabelle/export/export_helper.ml \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(HETS_DIR)/hets-isa-tools/
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0644 Maude/hets.prj Maude/*maude \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(HETS_DIR)/hets-maude-lib/
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0644 doc/*.pdf \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(DOC_DIR)/
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner BACK=`printf '$(DIST_LATEX)/hets' | ${SED} -e 's/[^/]\{1,\}/../g'` ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ln -sf $${BACK}/$(HETS_DIR)/hetcasl.sty \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_common)$(PREFIX)/$(DIST_LATEX)/hets/hetcasl.sty
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(info $(EOL)If TeX is installed, remember to re-run texhash!$(EOL)$(EOL))
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner%.bin:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(MAKE) $*-opt
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# for now install-{common,hets,hets_server} are supported, only.
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerinstall-%: %.bin
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0755 -d \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_$*)$(PREFIX)/bin \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_$*)$(PREFIX)/$(HETS_DIR) \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_$*)$(PREFIX)/$(MAN_DIR)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(SED) -e "s,@CLIENT_BASEDIR@,$(PREFIX)," debian/hets_script \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner >$(DESTDIR)$(SUBDIR_$*)$(PREFIX)/bin/$(subst _,-,$*)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner chmod 0755 $(DESTDIR)$(SUBDIR_$*)$(PREFIX)/bin/$(subst _,-,$*)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner ln $< $(DESTDIR)$(SUBDIR_$*)$(PREFIX)/$(HETS_DIR)/$(subst _,-,$*) 2>/dev/null || \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner cp $< $(DESTDIR)$(SUBDIR_$*)$(PREFIX)/$(HETS_DIR)/$(subst _,-,$*)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner [ $* = 'hets' ] && RMSECT='SERVER' || RMSECT='DESKTOP' ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(SED) -e "/@S$${RMSECT}@/,/@E$${RMSECT}@/ d" debian/hets.1 \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner >$(DESTDIR)$(SUBDIR_$*)$(PREFIX)/$(MAN_DIR)/$(subst _,-,$*).1
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner [ "$(OSNAME)" = 'SunOS' ] || ${SED} -i -e '/@SSOLARIS@/,/@ESOLARIS@/ d' \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_$*)$(PREFIX)/$(MAN_DIR)/$(subst _,-,$*).1
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerinstall: install-hets install-hets_server install-common install-owl-tools
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner############################################################################
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# DEBIAN rules
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner############################################################################
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerbuild-indep: jars docs
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
961087225d1d2b9534152a346d1a3755ed952fcdJens Elknerbuild-arch: hets.bin hets_server.bin
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerbuild: build-indep build-arch
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# For PPA source packages we submit a platform specific changelog via
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# *.debian.tar.xz, for local packages we generate it on demand.
a84a8d508a0778b13a4d097a6dd34b95feae78acJens ElknerCHANGELOG := $(shell [ -f debian/changelog ] && \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf 'debian/changelog' || printf 'debian/changelog.tmp')
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# See Versioning in ./INSTALL
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# NOTE: The dash crap sucks again here! So we assume only the 2nd rev num
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# might be padded with a single '0' to avoid more clutter.
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerdebian/changelog.tmp:
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @SRCPKG=`grep ^Source: debian/control |awk '{ print $$2 ; }'` ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner if [ -z "${FULL_DEBVERS}" ]; then \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner LSB=`lsb_release -rs`; A="$${LSB%.*}"; B="$${LSB#*.}"; B="$${B##0}"; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner FULL_DEBVERS="$(HETS_VERSION).1-1.$${A}.$${B}.1" ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf "\nUsing '$${FULL_DEBVERS}' as new version.\n\n" ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner fi ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner [ -z "$${REL_NAME}" ] && REL_NAME=`lsb_release -cs` ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner [ -z "$${GPG_NAME}" ] && GPG_NAME='Foo Bar' ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner [ -z "$${GPG_EMAIL}" ] && GPG_EMAIL='foo.bar@do.main' ; \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf "%s (%s) %s; urgency=low\n\n %s\n\n -- %s <%s> %s\n" "$${SRCPKG}" \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner "$${FULL_DEBVERS}" "$${REL_NAME}" \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner "* Initial release, automatically generated." \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner "$${GPG_NAME}" "$${GPG_EMAIL}" "`date -R`" \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner >debian/changelog.tmp
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# NOTE: dpkg-gencontrol is not POSIX conform wrt. arg processing!
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerbinary-indep: build-indep install-common $(CHANGELOG)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @[ "$${USERNAME}" != 'root' -o -z "$${FAKEROOTKEY}" ] && \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf '\nWARNING: The $< target should be called using fakeroot!\n\n'
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0755 -d $(DESTDIR)$(SUBDIR_common)/DEBIAN
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner dpkg-gencontrol -P$(DESTDIR)$(SUBDIR_common) -phets-common \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner -l$(CHANGELOG)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner dpkg-deb -Z xz -b $(DESTDIR)$(SUBDIR_common) ../hets-A.deb
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner dpkg-name -o ../hets-A.deb
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerbinary-arch: build-arch install-hets install-hets_server $(CHANGELOG)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner @[ "$${USERNAME}" != 'root' -o -z "$${FAKEROOTKEY}" ] && \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner printf '\nWARNING: The $< target should be called using fakeroot!\n\n'
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(INSTALL) -m 0755 -d \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_hets)/DEBIAN \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner $(DESTDIR)$(SUBDIR_hets_server)/DEBIAN
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner dpkg-gencontrol -P$(DESTDIR)$(SUBDIR_hets) -phets-desktop \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner -l$(CHANGELOG)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner dpkg-deb -Z xz -b $(DESTDIR)$(SUBDIR_hets) ../hets-B.deb
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner dpkg-gencontrol -P$(DESTDIR)$(SUBDIR_hets_server) -phets-server \
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner -l$(CHANGELOG)
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner dpkg-deb -Z xz -b $(DESTDIR)$(SUBDIR_hets_server) ../hets-C.deb
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner dpkg-name -o ../hets-B.deb ../hets-C.deb
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elknerbinary: binary-indep binary-arch
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner
a84a8d508a0778b13a4d097a6dd34b95feae78acJens Elkner# vim: ts=4 sw=4 filetype=make