Makefile revision 6a2dad705deefd1b7a7e09b84fd2d75f2213be47
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Makefile
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# $Id$
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# This Makefile will compile the hets system and provides also
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# targets for test programs during implementation phases.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# !!! Note: This makefile is written for GNU make !!!
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# (gmake on solaris)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteall: hets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude var.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# the 'replacing spaces' example was taken from the (GNU) Make info manual
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteempty =
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortespace = $(empty) $(empty)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDRIFT_deps = utils/DrIFT-src/*hs
c1fad183c9a0deeb49586645ec9baa8f3c1bc8beDaniel BeauregardGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
f885d00f4e3c96a769ce0228a732da31ad9d0b78Daniel Beauregard Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
c1fad183c9a0deeb49586645ec9baa8f3c1bc8beDaniel BeauregardPERL = perl
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHAPPY = happy -sga
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGENRULES = utils/genRules
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -i Data.Typeable -i ATerm.Lib
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -i Data.Typeable -i ATerm.Lib -i ATC.Grothendieck
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDRIFT = utils/DrIFT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINLINEAXIOMS = utils/outlineAxioms
c1fad183c9a0deeb49586645ec9baa8f3c1bc8beDaniel BeauregardHADDOCK = haddock
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOSBYUNAME = $(shell uname)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifneq ($(findstring SunOS, $(OSBYUNAME)),)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTAR = gtar
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePATCH = gpatch
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteelse
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTAR = tar
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePATCH = patch
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteendif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteARCH = $(subst $(space),,$(shell uname -m))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSETUP = utils/Setup
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSETUPPACKAGE = ../$(SETUP) clean; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ../$(SETUP) configure -O -p $(SETUPPREFIX) --user; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# list glade files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortederived_sources += $(GTK_GLADE_HSFILES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# the list of logics that need ShATermConvertible instances
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelogics = CASL HasCASL Isabelle Modal Temporal CoCASL COL CspCASL CASL_DL \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte SoftFOL ConstraintCASL Propositional OWL RelationalScheme VSE OMDoc DFOL \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/ATerm/ATermDiffMain.hs Common/annos.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/testxupdate.hs Common/testxpath.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### list of directories to run checks in
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTESTDIRS += Common CASL HasCASL test
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortehs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePFE_TOOLDIR = $(wildcard programatica/tools)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifneq ($(strip $(PFE_TOOLDIR)),)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte base/transforms base/transforms/Deriving property \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte property/syntax property/AST property/transforms \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte property/TI property/defs property/parse2 property/parse2/Parser
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePFE_PATH = $(addprefix -i, $(PFE_PATHS))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortehappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLEX_DIR = $(PFE_TOOLDIR)/base/parse2/Lexer
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteprogramatica_pkg: $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(LEX_DIR)/HsLex.hs $(SETUP)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @if $(HCPKG) field programatica version; then \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte echo "of programatica package found"; else \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ($(PATCH) -usNlp0 -d $(PFE_TOOLDIR) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -i `pwd`/Haskell/Programatica.patch || exit 0); \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte cp -f utils/programatica.cabal $(PFE_TOOLDIR); \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte cp -f $(SETUP) $(PFE_TOOLDIR); \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte cp -f LICENSE.txt $(PFE_TOOLDIR); \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (cd $(PFE_TOOLDIR); \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ./Setup configure $(SETUPPREFIX) --user; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ./Setup build; ./Setup install) fi
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(LEX_DIR)/HsLex.hs: $(LEX_DIR)Gen/HsLexerGen
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte echo "{-# OPTIONS -w #-}" > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $< >> $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(LEX_DIR)/HsTokens.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) --make -fno-monomorphism-restriction -O \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -i$(PFE_TOOLDIR)/base/tests/HbcLibraries \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -i$(PFE_TOOLDIR)/base/lib \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $@.hs -o $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelogics += Haskell
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortederived_sources += Haskell/PreludeString.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Haskell/ProgramaticaPrelude.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for appendHaskellPreludeString
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(APPENDPRELUDESTRING)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(APPENDPRELUDESTRING) < $< > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte chmod 444 $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte HsModule HsName HsLiteral HsIdent
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#files in base/TI/
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte base/parse2/SourceNames base/syntax/SyntaxRec \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte property/syntax/PropSyntaxStruct
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHaskell_files = $(addsuffix .hs, \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for ATC generation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortehs_der_files += $(hs_clean_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTESTDIRS += ToHaskell
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteelse
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# unset this variable from var.mk because the programatica sources
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# are needed to created our sources!
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePFE_FLAGS =
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteendif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# end of programatica stuff
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTESTTARGETS = $(subst .hs,,$(TESTTARGETFILES))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGHCVERSION = $(shell ghc --numeric-version)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifneq ($(findstring 12, $(GHCVERSION)),)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNO_BIND_WARNING = -fno-warn-unused-do-bind
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteendif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifneq ($(findstring 7, $(GHCVERSION)),)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNO_BIND_WARNING = -fno-warn-unused-do-bind -fno-warn-warnings-deprecations
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteendif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHC_WARN = -Wall -fno-warn-orphans $(NO_BIND_WARNING)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINCLUDE_PATH =
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHC_INCLUDE = $(addprefix -i, $(INCLUDE_PATH))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# uncomment HC_PROF for profiling (and comment out packages in var.mk)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# call resulting binary with a final +RTS -p to get a file <binary>.prof
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifneq ($(findstring -O, $(CFLAGS)),)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHC_DEBIAN_OPT=-O
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteendif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHC_OPTS += $(HC_WARN) $(HC_INCLUDE) $(HC_PROF) $(HC_DEBIAN_OPT)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# -ddump-minimal-imports
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# uncomment the above line to generate .imports files for displayDependencyGraph
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# files generated by DriFT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortedrifted_files = Common/AS_Annotation.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Propositional/AS_BASIC_Propositional.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CASL_DL/AS_CASL_DL.hs OWL/ReadWrite.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte RelationalScheme/AS.hs ATC/Grothendieck.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ExtModal/AS_ExtModal.hs QBF/AS_BASIC_QBF.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CommonLogic/AS_CommonLogic.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(gendrifted_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# files to extract data types from to generate ShATermConvertible instances
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Logic/Prover.hs Common/LibName.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/Consistency.hs Common/ProofTree.hs Static/DevGraph.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
5dfd244acc8f144280c5bc8f69ed941185fc3cccDaniel Beauregard Common/Lib/Graph.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# files generated by genRules as input for DriFT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteatc_der_files = $(foreach file, $(atc_files), \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ATC/$(basename $(basename $(notdir $(file)))).der.hs)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# the rules to create ATC .der.hs file for DriFT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/Id.der.hs: Common/Id.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/Result.der.hs: Common/Result.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.Id -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
16dd44c265271a75647fb0bb41109bb7c585a526Daniel BeauregardATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL2) -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
16dd44c265271a75647fb0bb41109bb7c585a526Daniel BeauregardATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -x Logic.Prover.ProverTemplate \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -x Logic.Prover.ConsChecker \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -i ATC.AS_Library -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# ATC files for every logic
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CASL/AS_Basic_CASL.der.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteIsabelle_files = Isabelle/IsaSign.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Propositional/Sublogic.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte HolLight/Sublogic.hs HolLight/Term.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte QBF/AS_BASIC_QBF.hs QBF/Symbol.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte QBF/Sublogic.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Temporal/Symbol.hs Temporal/Morphism.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
f885d00f4e3c96a769ce0228a732da31ad9d0b78Daniel BeauregardCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
f885d00f4e3c96a769ce0228a732da31ad9d0b78Daniel BeauregardCOL_files = COL/AS_COL.hs COL/COLSign.hs
f885d00f4e3c96a769ce0228a732da31ad9d0b78Daniel Beauregard
f885d00f4e3c96a769ce0228a732da31ad9d0b78Daniel BeauregardCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
f885d00f4e3c96a769ce0228a732da31ad9d0b78Daniel Beauregard CspCASL/SignCSP.hs CspCASL/Morphism.hs
f885d00f4e3c96a769ce0228a732da31ad9d0b78Daniel Beauregard
f885d00f4e3c96a769ce0228a732da31ad9d0b78Daniel BeauregardCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSoftFOL_files = SoftFOL/Sign.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOWL_files = OWL/Sign.hs OWL/Sublogic.hs OWL/Morphism.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteVSE_files = VSE/As.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOMDoc_files = OMDoc/OMDocInterface.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLF_files = LF/Sign.hs LF/Morphism.hs LF/AS.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFramework_files = Framework/AS.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Maude/Symbol.hs Maude/AS_Maude.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ExtModal/MorphismExtension.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CommonLogic/Symbol.hs CommonLogic/Morphism.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAdl_files = Adl/As.hs Adl/Sign.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# ATC DrIFT-rule generation for logics
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteQBF/ATC_QBF.der.hs: $(QBF_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -o $@ $(Isabelle_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOWL/ATC_OWL.der.hs: $(OWL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i OWL.ReadWrite -o $@ $(OWL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i OMDoc.ATerm -o $@ $(OMDoc_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLF/ATC_LF.der.hs: $(LF_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCSL/ATC_CSL.der.hs: $(CSL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAdl/ATC_Adl.der.hs: $(Adl_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# all ATC .der.hs files for all logics
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortegenerated_rule_files = $(atc_der_files) $(atc_logic_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# a rule to create all .der.hs files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortegenRules: $(generated_rule_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# the final ATC target files created by DriFT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortegendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# files to be processed by utils/InlineAxioms
eb82ff87b34e625264561b2d267577cf9821dab0Daniel Beauregardinline_axiom_files = Comorphisms/Modal2CASL.hs CASL_DL/PredefinedSign.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortegen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# all sources that need to be created before ghc can be called
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortederived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte####################################################################
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### targets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte real_clean bin_clean package_clean distclean packages \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte programatica_pkg aterm_pkg maintainer-clean annos \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte check capa hacapa h2h h2hf showKP clean_genRules genRules \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte count doc fromKif derivedSources release cgi ghci build
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(SETUP): utils/Setup.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) --make -O -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepackages: programatica_pkg
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteprogramatica_pkg:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortehets-opt:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(MAKE) distclean
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(MAKE) derivedSources
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(MAKE) clean
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(MAKE) hets-optimized
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortehets-optimized: $(derived_sources)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) --make -O -o hets hets.hs $(HC_OPTS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortecgi:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(MAKE) distclean
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(MAKE) derivedSources
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(MAKE) clean
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(MAKE) hets.cgi
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortehets.cgi: GUI/hets_cgi.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Documentation via haddock
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortedoc: docs/index.html
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHADDOCK_OPTS = $(addprefix --optghc=, $(HC_OPTS))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortedocs/index.html:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) -r docs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte mkdir docs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HADDOCK) --ignore-all-exports -o docs -h -s ../%F \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -t 'Hets - the Heterogeneous Tool Set' \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Syntax/ADoc.hs $(filter-out Test.hs, $(wildcard *.hs)) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Static/ChangeGraph.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortederivedSources: $(derived_sources)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(DRIFT): $(DRIFT_deps)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(GENRULES): $(DRIFT) $(GENERATERULES_deps)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (cd utils/GenerateRules; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte GenerateRules.hs -o ../genRules)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# "-package hssource" for ghc-5.04.2
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(INLINEAXIOMS): $(INLINEAXIOMS_deps)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) $(PARSEC_FLAG) --make utils/InlineAxioms/InlineAxioms.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC_WARN) $(HC_PROF) -i../.. -o $(INLINEAXIOMS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) --make -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# release management
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteREV = trunk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forterelease:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) -r Hets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
eb82ff87b34e625264561b2d267577cf9821dab0Daniel Beauregard cp Makefile Makefile.orig; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte cp ReleaseMakefile Makefile; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ./clean.sh; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) clean.*; utils/replaceAllHeaders.sh)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(TAR) cvf Hets.tar Hets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common/LaTeX_maps.hs generation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteutils/genItCorrections: $(GENITCORRECTIONS_deps)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) --make -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo -n "Generating pretty/LaTeX_maps.hs ... "
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @(cd pretty >/dev/null; ../utils/genItCorrections \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte gen_it_characters gen_it_words >> LaTeX_maps.hs)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "ready"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "please copy the file manually to Common"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### clean up
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclean_genRules:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $(generated_rule_files) $(gendrifted_files) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(hs_clean_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclean: bin_clean o_clean clean_pretty
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### removes all *.o, *.hi and *.p_o files in all subdirectories
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteo_clean:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte find . -name \*.o -o -name \*.hi -o -name \*.p_o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### remove binaries
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortebin_clean:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) hets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) hets.cgi
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $(SETUP)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $(TESTTARGETS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclean_pretty:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte pretty/generated_words.tex
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) test/*/log
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) ToHaskell/test/*.{out,output}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) */test/temp*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) doc/UserGuide.{log,aux,bbl,blg,out,pdf}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### additionally removes the library files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortereal_clean: clean
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### clean user packages
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepackage_clean:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HCPKG) unregister programatica --user || exit 0
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HCPKG) unregister aterm --user || exit 0
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### additionally removes generated files not in the CVS tree
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortedistclean: clean clean_genRules
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $(derived_sources)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) Modal/GeneratePatterns.inline.hs utils/appendHaskellPreludeString
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) CASL_DL/PredefinedSign.inline.hs CASL_DL/PredDatatypes.het
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) -r docs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortemaintainer-clean: distclean package_clean
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) -r $(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### interactive
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteghci: $(derived_sources)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ghci $(HC_OPTS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### build only, don't link
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortebuild: hets.hs packages
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) --make -c $< $(HC_OPTS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### Kif parser
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortefromKif: CASL/fromKif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### Annos parser
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteannos: Common/annos
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### CASL parser
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortecapa: CASL/capa
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### HasCASL parser
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortehacapa: HasCASL/hacapa
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### Haskell analysis
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortehana: Haskell/hana
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### Haskell to Isabelle-HOLCF translation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteh2hf: Haskell/h2hf
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/Lib/*.hs Comorphisms/*.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) -O --make -o $@ $< $(HC_OPTS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### HasCASL to Haskell translation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteh2h: Haskell/h2h
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### test program to check the known provers
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteshowKP: Comorphisms/test/showKP
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### run tests in other directories
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortecheck: $(TESTTARGETS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
eb82ff87b34e625264561b2d267577cf9821dab0Daniel Beauregard
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## Preparing the version of Hets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDriver/Version.hs: Driver/Version.in version_nr
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte LANG=C $(PERL) utils/build_version.pl version_nr \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte < Driver/Version.in > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte chmod 444 $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## two hardcoded dependencies for a correct generation of Version.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortehets.hs: Driver/Version.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/DevGraph.hs: Static/DevGraph.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## two dependencies to avoid circular prerequisites
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/annos Common/test_parser Comorphisms/test/showKP \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(CASL_DEPENDENT_BINARIES): $(derived_sources)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## suffix rules
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte.SUFFIXES:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for GHC
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte%: %.hs packages
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) --make -o $@ $< $(HC_OPTS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for HAPPY
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte%.hs: %.y
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HAPPY) -o $@.tmp $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte echo "{-# OPTIONS -w #-}" > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte cat $@.tmp >> $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@.tmp
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for DrIFT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte%.hs: %.der.hs $(DRIFT)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte chmod 444 $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for inlineAxioms
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte%.hs: %.inline.hs $(INLINEAXIOMS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(INLINEAXIOMS) $< > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte chmod 444 $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for cpp and haddock
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte%.hspp: %.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) -E -cpp -D__HADDOCK__ \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -DUNI_PACKAGE -DCASLEXTENSIONS -DPROGRAMATICA -optP -P $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## compiling rules for object and interface files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte%.o %.hi: %.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) -c $< $(HC_OPTS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte%.o %.hi: %.lhs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) -c $< $(HC_OPTS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## compiling rules for dependencies
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte%.d : %.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte%.d : %.lhs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## Rule to generate hs files from glade files. Needed for GTK
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte%.hs: %.glade utils/appendHaskellPreludeString \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte GUI/Glade/Template.append.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte b=`basename $< .glade`; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte utils/appendHaskellPreludeString $< > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## generate the inline file for the predefined CASL_DL sign
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCASL_DL/PredefinedSign.inline.hs: \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CASL_DL/PredefinedSign.inline.hs.in utils/appendHaskellPreludeString \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CASL_DL/PredDatatypes.het
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte utils/appendHaskellPreludeString CASL_DL/PredDatatypes.het \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte < CASL_DL/PredefinedSign.inline.hs.in > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte echo " )" >> $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte chmod 444 $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Warning: Don't change the order of the depencies!!
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCASL_DL/PredDatatypes.het: utils/transformLibAsBasicSpec.pl \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CASL_DL/Datatypes.het
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(PERL) $+ > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte chmod 444 $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# uses intransparently utils/outlineAxioms
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte utils/genTransMFormFunc.pl $(INLINEAXIOMS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(PERL) utils/genTransMFormFunc.pl $< $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte chmod 444 $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# directory for installers
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINSTALLER_DIR = ../installers
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifeq ($(strip $(HETS_VERSION)),)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHETS_VERSION := `cat version_nr`
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or `date +%F`
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteendif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# prepare installer creation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinitialize_installer:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte mkdir -p $(INSTALLER_DIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte > $(INSTALLER_DIR)/Makefile
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo Please do
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo " -> cd $(INSTALLER_DIR)"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo " -> make"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo and wait until it is finished
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# check out java parts for OWL
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteowl_java:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte svn co \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte https://owlapi.svn.sourceforge.net/svnroot/owlapi/owl1_1/trunk \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte OWL/java/OwlApi
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinitialize_java: owl_java
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ant -q init
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortejava-libs:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ant -q java-libs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortejava-files:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ant -q java-files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortejava-clean:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ant -q java-clean
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte