Makefile revision 49d647f58ec5bf482da541eec62f531848c49036
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# Makefile
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# $Id$
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# This Makefile will compile the hets system and provides also
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# targets for test programs during implementation phases.
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# !!! Note: This makefile is written for GNU make !!!
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# (gmake on solaris)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinall: hets
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrininclude var.mk
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# the 'replacing spaces' example was taken from the (GNU) Make info manual
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinempty =
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinspace = $(empty) $(empty)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinDRIFT_deps = utils/DrIFT-src/*hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinPERL = perl
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHAPPY = happy -sga
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinGENRULES = utils/genRules
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin -i Data.Typeable -i ATerm.Lib
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin -i Data.Typeable -i ATerm.Lib -i ATC.Grothendieck
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinDRIFT = utils/DrIFT
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinINLINEAXIOMS = utils/outlineAxioms
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHADDOCK = haddock
ac3c34a9df3a980148993a91a2b6e630b59b5274rjung
ac3c34a9df3a980148993a91a2b6e630b59b5274rjungARCH = $(subst $(space),,$(shell uname -m))
ac3c34a9df3a980148993a91a2b6e630b59b5274rjungSETUP = utils/Setup
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinSETUPPACKAGE = ../$(SETUP) clean; \
ac3c34a9df3a980148993a91a2b6e630b59b5274rjung ../$(SETUP) configure -O -p $(SETUPPREFIX) --user; \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# list glade files
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinderived_sources += $(GTK_GLADE_HSFILES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# the list of logics that need ShATermConvertible instances
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinlogics = CASL HasCASL Isabelle Modal Temporal CoCASL COL CspCASL CASL_DL \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin SoftFOL ConstraintCASL Propositional OWL RelationalScheme VSE OMDoc DFOL \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl THF \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin FreeCAD OWL2
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Common/ATerm/ATermDiffMain.hs Common/annos.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Common/testxupdate.hs Common/testxpath.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### list of directories to run checks in
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinTESTDIRS += Common CASL Fpl/test HasCASL test HolLight ExtModal/Tries \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CommonLogic/TestData
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinPFE_TOOLDIR = $(wildcard programatica/tools)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinifneq ($(strip $(PFE_TOOLDIR)),)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin base/transforms base/transforms/Deriving property \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin property/syntax property/AST property/transforms \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin property/TI property/defs property/parse2 property/parse2/Parser
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinPFE_PATH = $(addprefix -i, $(PFE_PATHS))
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinLEX_DIR = $(PFE_TOOLDIR)/base/parse2/Lexer
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinprogramatica_pkg: $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(LEX_DIR)/HsLex.hs $(SETUP)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin @if $(HCPKG) field programatica version; then \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin echo "of programatica package found"; else \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ($(PATCH) -usNlp0 -d $(PFE_TOOLDIR) \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin -i `pwd`/Haskell/Programatica.patch || exit 0); \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin cp -f utils/programatica.cabal $(PFE_TOOLDIR); \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin cp -f $(SETUP) $(PFE_TOOLDIR); \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin cp -f LICENSE.txt $(PFE_TOOLDIR); \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin (cd $(PFE_TOOLDIR); \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ./Setup configure $(SETUPPREFIX) --user; \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ./Setup build; ./Setup install) fi
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin$(LEX_DIR)/HsLex.hs: $(LEX_DIR)Gen/HsLexerGen
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin echo "{-# OPTIONS -w #-}" > $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $< >> $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(LEX_DIR)/HsTokens.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) --make -fno-monomorphism-restriction -O \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin -i$(PFE_TOOLDIR)/base/tests/HbcLibraries \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin -i$(PFE_TOOLDIR)/base/lib \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $@.hs -o $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinlogics += Haskell
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinderived_sources += Haskell/PreludeString.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Haskell/ProgramaticaPrelude.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## rule for appendHaskellPreludeString
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(APPENDPRELUDESTRING)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(APPENDPRELUDESTRING) < $< > $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin chmod 444 $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin HsModule HsName HsLiteral HsIdent
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin#files in base/TI/
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin base/parse2/SourceNames base/syntax/SyntaxRec \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin property/syntax/PropSyntaxStruct
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHaskell_files = $(addsuffix .hs, \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## rule for ATC generation
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinhs_der_files += $(hs_clean_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinTESTDIRS += ToHaskell
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinelse
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# unset this variable from var.mk because the programatica sources
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# are needed to created our sources!
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinPFE_FLAGS =
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinendif
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# end of programatica stuff
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinTESTTARGETS = $(subst .hs,,$(TESTTARGETFILES))
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
fc251eb7714d158c2952bc2ddbbcfb9169098212sfGHCVERSION = $(shell ghc --numeric-version)
fc251eb7714d158c2952bc2ddbbcfb9169098212sfifneq ($(findstring 12, $(GHCVERSION)),)
fc251eb7714d158c2952bc2ddbbcfb9169098212sfNO_BIND_WARNING = -fno-warn-unused-do-bind
fc251eb7714d158c2952bc2ddbbcfb9169098212sfendif
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinifneq ($(findstring 7, $(GHCVERSION)),)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinNO_BIND_WARNING = -fno-warn-unused-do-bind -fno-warn-warnings-deprecations
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinendif
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHC_WARN = -Wall -fno-warn-orphans $(NO_BIND_WARNING)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinINCLUDE_PATH =
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHC_INCLUDE = $(addprefix -i, $(INCLUDE_PATH))
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# uncomment HC_PROF for profiling (and comment out packages in var.mk)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# call resulting binary with a final +RTS -p to get a file <binary>.prof
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinifneq ($(findstring -O, $(CFLAGS)),)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHC_DEBIAN_OPT=-O
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinendif
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHC_OPTS += $(HC_WARN) $(HC_INCLUDE) $(HC_PROF) $(HC_DEBIAN_OPT)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# -ddump-minimal-imports
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# uncomment the above line to generate .imports files for displayDependencyGraph
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# files generated by DriFT
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrindrifted_files = Common/AS_Annotation.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Propositional/AS_BASIC_Propositional.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CASL_DL/AS_CASL_DL.hs OWL/ReadWrite.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin RelationalScheme/AS.hs ATC/Grothendieck.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ExtModal/AS_ExtModal.hs QBF/AS_BASIC_QBF.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CommonLogic/AS_CommonLogic.hs Fpl/As.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(gendrifted_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
c4160662d93c5c24b234650f9914b3aea20276cetrawick# files to extract data types from to generate ShATermConvertible instances
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Logic/Prover.hs Common/LibName.hs \
ac3c34a9df3a980148993a91a2b6e630b59b5274rjung Common/Consistency.hs Common/ProofTree.hs Static/DevGraph.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Common/Lib/Graph.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# files generated by genRules as input for DriFT
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinatc_der_files = $(foreach file, $(atc_files), \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ATC/$(basename $(basename $(notdir $(file)))).der.hs)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# the rules to create ATC .der.hs file for DriFT
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/Id.der.hs: Common/Id.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/Result.der.hs: Common/Result.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.Id -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
ac3c34a9df3a980148993a91a2b6e630b59b5274rjung
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL2) -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -x Logic.Prover.ProverTemplate \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin -x Logic.Prover.ConsChecker \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin -i ATC.AS_Library -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# ATC files for every logic
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CASL/AS_Basic_CASL.der.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinIsabelle_files = Isabelle/IsaSign.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Propositional/Sublogic.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin HolLight/Sublogic.hs HolLight/Term.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin QBF/AS_BASIC_QBF.hs QBF/Symbol.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin QBF/Sublogic.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Temporal/Symbol.hs Temporal/Morphism.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCOL_files = COL/AS_COL.hs COL/COLSign.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CspCASL/Morphism.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinSoftFOL_files = SoftFOL/Sign.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinOWL_files = OWL/Sign.hs OWL/Sublogic.hs OWL/Morphism.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinVSE_files = VSE/As.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinOMDoc_files = OMDoc/OMDocInterface.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinLF_files = LF/Sign.hs LF/Morphism.hs LF/AS.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinFramework_files = Framework/AS.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Maude/Symbol.hs Maude/AS_Maude.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ExtModal/MorphismExtension.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CSL/TreePO.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CommonLogic/Symbol.hs CommonLogic/Morphism.hs CommonLogic/Sublogic.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinAdl_files = Adl/As.hs Adl/Sign.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinFpl_files = Fpl/As.hs Fpl/Sign.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinTHF_files = THF/As.hs THF/Cons.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinFreeCAD_files = FreeCAD/As.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinOWL2_files = OWL2/AS.hs OWL2/Symbols.hs OWL2/Sign.hs OWL2/MS.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin OWL2/Morphism.hs OWL2/ProfilesAndSublogics.hs OWL2/Sublogic.hs OWL2/Profiles.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# ATC DrIFT-rule generation for logics
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
9d3e8ab5391fb11d3d2f295a602279c70a78d957jailletc $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
9d3e8ab5391fb11d3d2f295a602279c70a78d957jailletc
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinQBF/ATC_QBF.der.hs: $(QBF_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -o $@ $(Isabelle_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinOWL/ATC_OWL.der.hs: $(OWL_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i OWL.ReadWrite -o $@ $(OWL_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i OMDoc.ATerm -o $@ $(OMDoc_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinLF/ATC_LF.der.hs: $(LF_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCSL/ATC_CSL.der.hs: $(CSL_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinAdl/ATC_Adl.der.hs: $(Adl_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinFpl/ATC_Fpl.der.hs: $(Fpl_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinTHF/ATC_THF.der.hs: $(THF_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.Id -i ATC.GlobalAnnotations -o $@ $(THF_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinFreeCAD/ATC_FreeCAD.der.hs: $(FreeCAD_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(FreeCAD_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinOWL2/ATC_OWL2.der.hs: $(OWL2_files) $(GENRULES)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(GENRULECALL) -i ATC.Result -o $@ $(OWL2_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# all ATC .der.hs files for all logics
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfringenerated_rule_files = $(atc_der_files) $(atc_logic_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# a rule to create all .der.hs files
e6dd71992459d05a676b98b7963423dc5dc1e24aminfringenRules: $(generated_rule_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# the final ATC target files created by DriFT
e6dd71992459d05a676b98b7963423dc5dc1e24aminfringendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# files to be processed by utils/InlineAxioms
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrininline_axiom_files = Comorphisms/Modal2CASL.hs CASL_DL/PredefinedSign.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfringen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# all sources that need to be created before ghc can be called
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinderived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin####################################################################
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### targets
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin real_clean bin_clean package_clean distclean packages \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin programatica_pkg aterm_pkg maintainer-clean annos \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin check capa hacapa h2h h2hf showKP clean_genRules genRules \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin count doc fromKif derivedSources release cgi ghci build
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin$(SETUP): utils/Setup.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) --make -O -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinpackages: programatica_pkg
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinprogramatica_pkg:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinhets-opt:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(MAKE) distclean
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(MAKE) derivedSources
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(MAKE) clean
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(MAKE) hets-optimized
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinhets-optimized: $(derived_sources)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) --make -O -o hets hets.hs $(HC_OPTS)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrincgi:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(MAKE) distclean
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(MAKE) derivedSources
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(MAKE) clean
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(MAKE) hets.cgi
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinhets.cgi: GUI/hets_cgi.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# Documentation via haddock
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrindoc: docs/index.html
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHADDOCK_INTERFACES = $(shell find `ghc --print-libdir`/../.. -name \*.haddock)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHAD_INTS = $(foreach file, $(HADDOCK_INTERFACES),\
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin -i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHADDOCK_OPTS = $(addprefix --optghc=, $(HC_OPTS))
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrindocs/index.html:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) -r docs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin mkdir docs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HADDOCK) --ignore-all-exports -o docs -h -s ../%F $(HAD_INTS) \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin -t 'Hets - the Heterogeneous Tool Set' \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Syntax/ADoc.hs $(filter-out Scratch.hs, $(wildcard *.hs)) \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Static/ChangeGraph.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinderivedSources: $(derived_sources)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin$(DRIFT): $(DRIFT_deps)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin$(GENRULES): $(DRIFT) $(GENERATERULES_deps)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin (cd utils/GenerateRules; \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin GenerateRules.hs -o ../genRules)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# "-package hssource" for ghc-5.04.2
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin$(INLINEAXIOMS): $(INLINEAXIOMS_deps)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) $(PARSEC_FLAG) --make utils/InlineAxioms/InlineAxioms.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC_WARN) $(HC_PROF) -i../.. -o $(INLINEAXIOMS)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) --make -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# release management
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinREV = trunk
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinrelease:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) -r Hets
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin cp Makefile Makefile.orig; \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin cp ReleaseMakefile Makefile; \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ./clean.sh; \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) clean.*; utils/replaceAllHeaders.sh)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(TAR) cvf Hets.tar Hets
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# Common/LaTeX_maps.hs generation
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinutils/genItCorrections: $(GENITCORRECTIONS_deps)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) --make -o $@ $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin @echo -n "Generating pretty/LaTeX_maps.hs ... "
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin @(cd pretty >/dev/null; ../utils/genItCorrections \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin gen_it_characters gen_it_words >> LaTeX_maps.hs)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin @echo "ready"
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin @echo "please copy the file manually to Common"
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### clean up
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinclean_genRules:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) $(generated_rule_files) $(gendrifted_files) \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(hs_clean_files)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinclean: bin_clean o_clean clean_pretty clean_javastuff
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### removes all *.o, *.hi and *.p_o files in all subdirectories
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrino_clean:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin find . -name \*.o -o -name \*.hi -o -name \*.p_o \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin -o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### remove binaries
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinbin_clean:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) hets
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) hets.cgi
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) $(SETUP)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) $(TESTTARGETS)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinclean_pretty:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin pretty/generated_words.tex
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty}
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) test/*/log
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) ToHaskell/test/*.{out,output}
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) */test/temp*
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) doc/UserGuide.{log,aux,bbl,blg,out,pdf}
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinclean_javastuff:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) OWL/*.jar OWL/java/lib/*.jar
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) -r OWL/java/build OWL/lib
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### additionally removes the library files
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinreal_clean: clean
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### clean user packages
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinpackage_clean:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HCPKG) unregister programatica --user || exit 0
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HCPKG) unregister aterm --user || exit 0
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### additionally removes generated files not in the CVS tree
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrindistclean: clean clean_genRules
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) $(derived_sources)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) Modal/GeneratePatterns.inline.hs utils/appendHaskellPreludeString
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) CASL_DL/PredefinedSign.inline.hs CASL_DL/PredDatatypes.het
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) -r docs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinmaintainer-clean: distclean package_clean
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) -r $(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### interactive
e6dd71992459d05a676b98b7963423dc5dc1e24aminfringhci: $(derived_sources)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ghci $(HC_OPTS)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### build only, don't link
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinbuild: hets.hs packages
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) --make -c $< $(HC_OPTS)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### Kif parser
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinfromKif: CASL/fromKif
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### Annos parser
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinannos: Common/annos
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### CASL parser
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrincapa: CASL/capa
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### HasCASL parser
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinhacapa: HasCASL/hacapa
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### Haskell analysis
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinhana: Haskell/hana
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### Haskell to Isabelle-HOLCF translation
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinh2hf: Haskell/h2hf
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Common/Lib/*.hs Comorphisms/*.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) -O --make -o $@ $< $(HC_OPTS)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### HasCASL to Haskell translation
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinh2h: Haskell/h2h
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### test program to check the known provers
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinshowKP: Comorphisms/test/showKP
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin### run tests in other directories
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrincheck: $(TESTTARGETS)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## Preparing the version of Hets
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinDriver/Version.hs: Driver/Version.in version_nr
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin LANG=C $(PERL) utils/build_version.pl version_nr \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin < Driver/Version.in > $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin chmod 444 $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## two hardcoded dependencies for a correct generation of Version.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinhets.hs: Driver/Version.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinATC/DevGraph.hs: Static/DevGraph.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## two dependencies to avoid circular prerequisites
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Common/annos Common/test_parser Comorphisms/test/showKP \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin$(CASL_DEPENDENT_BINARIES): $(derived_sources)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## suffix rules
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin.SUFFIXES:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## rule for GHC
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin%: %.hs packages
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinifdef ERRORMSG
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin @echo $(ERRORMSG)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin @exit 2
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinendif
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) --make -o $@ $< $(HC_OPTS)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## rule for HAPPY
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin%.hs: %.y
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HAPPY) -o $@.tmp $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin echo "{-# OPTIONS -w #-}" > $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin cat $@.tmp >> $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) $@.tmp
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## rule for DrIFT
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin%.hs: %.der.hs $(DRIFT)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin chmod 444 $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## rule for inlineAxioms
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin%.hs: %.inline.hs $(INLINEAXIOMS)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(INLINEAXIOMS) $< > $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin chmod 444 $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## rule for cpp and haddock
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin%.hspp: %.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) -E -cpp -D__HADDOCK__ \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin -DUNI_PACKAGE -DCASLEXTENSIONS -DPROGRAMATICA -optP -P $<
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## compiling rules for object and interface files
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin%.o %.hi: %.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) -c $< $(HC_OPTS)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin%.o %.hi: %.lhs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) -c $< $(HC_OPTS)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## compiling rules for dependencies
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin%.d : %.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin%.d : %.lhs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## Rule to generate hs files from glade files. Needed for GTK
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin%.hs: %.glade utils/appendHaskellPreludeString \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin GUI/Glade/Template.append.hs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin b=`basename $< .glade`; \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin utils/appendHaskellPreludeString $< > $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## generate the inline file for the predefined CASL_DL sign
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCASL_DL/PredefinedSign.inline.hs: \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CASL_DL/PredefinedSign.inline.hs.in utils/appendHaskellPreludeString \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CASL_DL/PredDatatypes.het
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin utils/appendHaskellPreludeString CASL_DL/PredDatatypes.het \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin < CASL_DL/PredefinedSign.inline.hs.in > $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin echo " )" >> $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin chmod 444 $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# Warning: Don't change the order of the depencies!!
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCASL_DL/PredDatatypes.het: utils/transformLibAsBasicSpec.pl \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin CASL_DL/Datatypes.het
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(PERL) $+ > $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin chmod 444 $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# uses intransparently utils/outlineAxioms
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin utils/genTransMFormFunc.pl $(INLINEAXIOMS)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(RM) $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin $(PERL) utils/genTransMFormFunc.pl $< $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin chmod 444 $@
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# directory for installers
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinINSTALLER_DIR = ../installers
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinifeq ($(strip $(HETS_VERSION)),)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinHETS_VERSION := `cat version_nr`
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# or `date +%F`
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinendif
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# prepare installer creation
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrininitialize_installer:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin mkdir -p $(INSTALLER_DIR)
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin > $(INSTALLER_DIR)/Makefile
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin @echo Please do
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin @echo " -> cd $(INSTALLER_DIR)"
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin @echo " -> make"
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin @echo and wait until it is finished
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin# check out java parts for OWL
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinowl1_java:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin svn co \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin https://owlapi.svn.sourceforge.net/svnroot/owlapi/owl1_1/trunk \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin OWL/java/OwlApi
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinowl_java:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin svn co \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin https://owlapi.svn.sourceforge.net/svnroot/owlapi/v3/trunk \
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin OWL2/java/OwlApi
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrininitialize_java: owl_java
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ant -q init
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinjava-libs:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ant -q java-libs
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinjava-files:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ant -q java-files
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinjava-clean:
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin ant -q java-clean
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin