Makefile revision 9bd27fd420bd96640ee300b69c5104c60d8c888b
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Makefile
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# $Id$
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# This Makefile will compile the hets system and provides also
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# targets for test programs during implementation phases.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# !!! Note: This makefile is written for GNU make !!!
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# (gmake on solaris)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederall: hets
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maederinclude var.mk
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederempty =
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederspace = $(empty) $(empty)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederDRIFT_deps = utils/DrIFT-src/*hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
ce8b15da31cd181b7e90593cbbca98f47eda29d6Till MossakowskiPERL = perl
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederGENRULES = utils/genRules
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder -i Data.Typeable -i ATerm.Lib
8f51f7ee933762df1a1e52caee78f5564fcf0730Christian Maeder
88c800932dd7053322501ea2039d9f234be6866cKlaus LuettichGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder -i Data.Typeable -i ATerm.Lib -i ATC.Grothendieck
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederDRIFT = utils/DrIFT
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederHADDOCK = haddock
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
8410667510a76409aca9bb24ff0eda0420088274Christian MaederDTD2HS = utils/DtdToHaskell
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederifneq ($(strip $(HAXML_PACKAGE_COMPAT)),)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederDTD2HS_src = utils/DtdToHaskell-src/pre-1.22/
8410667510a76409aca9bb24ff0eda0420088274Christian Maederelse
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichDTD2HS_src = utils/DtdToHaskell-src/current/
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettichendif
3474624438293363cada4e49225aae1e292fa597Christian Maeder
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettichifneq ($(strip $(HAXML_PACKAGE)),)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederderived_sources += Isabelle/IsaExport.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederendif
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederDTD2HS_deps = $(DTD2HS_src)*.hs
e593b89bfd4952698dc37feced21cefe869d87a2Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder# list glade files
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus LuettichGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
5d44c8cecd07b47ce537c7e14bf7b41a39f08507Christian Maeder
a2d6702f18737cc5fff8e8631c08f221f8375c4bChristian Maederderived_sources += $(GTK_GLADE_HSFILES)
a2d6702f18737cc5fff8e8631c08f221f8375c4bChristian Maeder
c6fcd42c6d6d9dae8c7835c24fcb7ce8531a9050Christian Maeder# the list of logics that need ShATermConvertible instances
31c49f2fa23d4ac089f35145d80a224deb6ea7e4Till Mossakowskilogics = CASL HasCASL Isabelle Modal Hybrid TopHybrid Temporal \
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich CoCASL COL CspCASL CASL_DL \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder SoftFOL ConstraintCASL Propositional RelationalScheme VSE OMDoc DFOL \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl THF \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder FreeCAD OWL2 RDF CSMOF # QVTR
d3ae0072823e2ef0d41d4431fcc768e66489c20eChristian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maeder Common/ATerm/ATermDiffMain.hs Common/annos.hs \
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maeder SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder Common/testxupdate.hs Common/testxpath.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder### list of directories to run checks in
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederTESTDIRS += Common CASL Fpl/test HasCASL test ExtModal/Tries \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder CommonLogic/TestData
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederPFE_TOOLDIR = $(wildcard programatica/tools)
c0c2380bced8159ff0297ece14eba948bd236471Christian Maederifneq ($(strip $(PFE_TOOLDIR)),)
fd09d0eee026d0db12542af37fd0fbd0790f0eeaChristian MaederPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
fd09d0eee026d0db12542af37fd0fbd0790f0eeaChristian Maeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
fd09d0eee026d0db12542af37fd0fbd0790f0eeaChristian Maeder base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder base/transforms base/transforms/Deriving property \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder property/syntax property/AST property/transforms \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder property/TI property/defs property/parse2 property/parse2/Parser
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
549b97cfbe3a6687db74440a550b68b2fc19a272Christian Maeder
549b97cfbe3a6687db74440a550b68b2fc19a272Christian Maederlogics += Haskell
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederderived_sources += Haskell/PreludeString.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder Haskell/ProgramaticaPrelude.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder## rule for appendHaskellPreludeString
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(APPENDPRELUDESTRING)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(RM) $@
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(APPENDPRELUDESTRING) < $< > $@
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder chmod 444 $@
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maeder HsModule HsName HsLiteral HsIdent
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder#files in base/TI/
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder property/syntax/PropSyntaxStruct
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederHaskell_files = $(addsuffix .hs, \
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder## rule for ATC generation
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederhs_der_files += $(hs_clean_files)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederifneq ($(strip $(PFE_FLAGS)),)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederTESTDIRS += ToHaskell
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederendif
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maederelse
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder# unset this variable from var.mk because the programatica sources
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder# are needed to created our sources!
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederPFE_FLAGS =
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maederendif
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder# end of programatica stuff
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederTESTTARGETS = $(subst .hs,,$(TESTTARGETFILES))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus LuettichGHCVERSION = $(shell ghc --numeric-version)
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettichifneq ($(findstring 12, $(GHCVERSION)),)
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus LuettichNO_BIND_WARNING = -fno-warn-unused-do-bind
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettichendif
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
c0c2380bced8159ff0297ece14eba948bd236471Christian Maederifneq ($(findstring 7, $(GHCVERSION)),)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederNO_BIND_WARNING = -fno-warn-unused-do-bind
77a65251ee036c6aaf09c2775315a4ee24259fbdJorina Freya Gerkenendif
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHC_WARN = -Wall -fwarn-tabs \
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder -fwarn-unrecognised-pragmas -fno-warn-orphans $(NO_BIND_WARNING)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
97812b7ce9860bf514a8822a63503451795dbc65Klaus Luettich# uncomment HC_PROF for profiling (and comment out packages in var.mk)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# call resulting binary with a final +RTS -p to get a file <binary>.prof
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederifneq ($(findstring -O, $(CFLAGS)),)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederHC_DEBIAN_OPT=-O
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederendif
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederHC_OPTS += $(HC_WARN) $(HC_PROF) $(HC_DEBIAN_OPT)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# -ddump-minimal-imports
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# uncomment the above line to generate .imports files for displayDependencyGraph
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# files generated by DriFT
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maederdrifted_files = Common/AS_Annotation.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs Hybrid/AS_Hybrid.hs TopHybrid/AS_TopHybrid.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder Propositional/AS_BASIC_Propositional.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
9df11f85fd7f8c4745d64464876e84ec4e263692Christian Maeder CASL_DL/AS_CASL_DL.hs THF/As.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
9df11f85fd7f8c4745d64464876e84ec4e263692Christian Maeder RelationalScheme/AS.hs ATC/Grothendieck.hs \
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder ExtModal/AS_ExtModal.hs QBF/AS_BASIC_QBF.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers CommonLogic/AS_CommonLogic.hs Fpl/As.hs \
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettich $(gendrifted_files)
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettich
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# files to extract data types from to generate ShATermConvertible instances
c432483b64662e8db604a58758cd18ea7fa65659Christian Maederatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
8659594bb40eb5f3da5439692f0908300947191eSonja Gröning Logic/Prover.hs Common/LibName.hs Common/ExtSign.hs \
8c692d0cc44e7df93f58a3eed0d9774ba5908339Jorina Freya Gerken Common/Consistency.hs Common/ProofTree.hs \
eeb419aa20c97b4af973e97ee6ae77a8eed29e15Till Mossakowski Static/DgUtils.hs Static/XGraph.hs Static/DevGraph.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder Common/Lib/Graph.hs Common/IRI.hs
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# files generated by genRules as input for DriFT
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederatc_der_files = $(foreach file, $(atc_files), \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# the rules to create ATC .der.hs file for DriFT
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/Id.der.hs: Common/Id.hs $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -o $@ $<
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/IRI.der.hs: Common/IRI.hs $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i ATC.Id -o $@ $<
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/Result.der.hs: Common/Result.hs $(GENRULES)
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder $(GENRULECALL) -i ATC.Id -o $@ $<
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder
afa6ceaf4359ae437aaa6830949583143ace2752Christian MaederATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder $(GENRULECALL) -o $@ $<
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder
afa6ceaf4359ae437aaa6830949583143ace2752Christian MaederATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder $(GENRULECALL) -o $@ $<
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -o $@ $<
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
a02a4eb2a2029d27a11fff2ebcc6c460574a74fcKlaus LuettichATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till MossakowskiATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $(GENRULECALL) -i ATC.IRI -i Common.ATerm.ConvInstances -o $@ $<
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
e2d849b4152a234bc0afaa2ab3a7c17d28de7565Christian Maeder $(GENRULECALL) -o $@ $<
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(GENRULECALL2) -o $@ $<
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $(GENRULECALL) -x Logic.Prover.ProverTemplate \
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian Maeder -x Logic.Prover.ConsChecker \
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke
53818ced114da21321063fff307aa41c1ab31dd3Achim MahnkeATC/DgUtils.der.hs: Static/DgUtils.hs $(GENRULES)
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency -o $@ $<
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederATC/XGraph.der.hs: Static/XGraph.hs $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL2) -i ATC.DgUtils -o $@ $<
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder $(GENRULECALL2) -i ATC.XGraph -i ATC.AS_Library -o $@ $<
dd7b93bd69a40191907af1739db375ecc7e6cf18Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# ATC files for every logic
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski CASL/AS_Basic_CASL.der.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederIsabelle_files = Isabelle/IsaSign.hs
ed9207cf24e96b0d6f59985822054ae28cb69b2eChristian Maeder
b49276c9f50038e0bd499ad49f7bd6444566a834Christian MaederPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder Propositional/Sublogic.hs
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder
b10267ae0a6523b73113fc2dee9ea628266fce60Christian MaederHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder HolLight/Sublogic.hs HolLight/Term.hs
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
05a8b581f98b928baca6dab60cd20277659ac760Christian Maeder QBF/AS_BASIC_QBF.hs QBF/Symbol.hs \
ed9207cf24e96b0d6f59985822054ae28cb69b2eChristian Maeder QBF/Sublogic.hs
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder
b49276c9f50038e0bd499ad49f7bd6444566a834Christian MaederRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
b49276c9f50038e0bd499ad49f7bd6444566a834Christian MaederModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHybrid_files = Hybrid/AS_Hybrid.hs Hybrid/HybridSign.hs
b905126bab9454b89041f92b3c50bb9efc85e427Klaus LuettichTopHybrid_files = TopHybrid/AS_TopHybrid.hs TopHybrid/TopHybridSign.hs
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder Temporal/Symbol.hs Temporal/Morphism.hs
5c69cef4668bbd959d721668313a779126014d1eKlaus Luettich
b905126bab9454b89041f92b3c50bb9efc85e427Klaus LuettichConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian MaederCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian MaederCOL_files = COL/AS_COL.hs COL/COLSign.hs
53818ced114da21321063fff307aa41c1ab31dd3Achim Mahnke
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder CspCASL/Morphism.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederSoftFOL_files = SoftFOL/Sign.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederVSE_files = VSE/As.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederOMDoc_files = OMDoc/OMDocInterface.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederLF_files = LF/Sign.hs LF/Morphism.hs LF/AS.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederFramework_files = Framework/AS.hs
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich
b905126bab9454b89041f92b3c50bb9efc85e427Klaus LuettichMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich Maude/Symbol.hs Maude/AS_Maude.hs
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder ExtModal/MorphismExtension.hs ExtModal/Sublogic.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian MaederCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder CSL/TreePO.hs
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian MaederCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich CommonLogic/Symbol.hs CommonLogic/Morphism.hs CommonLogic/Sublogic.hs
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich
dbe752ee940baae7f9f231f29c62284bb0f90a25Christian MaederAdl_files = Adl/As.hs Adl/Sign.hs
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich
5958fabb264ec3f5b2125ac5602121bd34814a79Klaus LuettichFpl_files = Fpl/As.hs Fpl/Sign.hs
5958fabb264ec3f5b2125ac5602121bd34814a79Klaus Luettich
e7e1ab2ac3f1fded8611bb92ae00e8f3b8c693fbKlaus LuettichTHF_files = THF/As.hs THF/Cons.hs THF/Sign.hs THF/Sublogic.hs
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus LuettichFreeCAD_files = FreeCAD/As.hs
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich
d784803f9c752667b4fcf7393d698002bedf3f89Klaus LuettichOWL2_files = OWL2/AS.hs OWL2/Symbols.hs OWL2/Sign.hs OWL2/MS.hs \
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich OWL2/Morphism.hs OWL2/ProfilesAndSublogics.hs OWL2/Sublogic.hs \
1323eba62fc519b068f5aaec4f9d2be05ffabea9Klaus Luettich OWL2/Profiles.hs
725a68ec81cba9b8aa8647bebfb5baa449803e7eKlaus Luettich
d579f5b263e6c73d466c265f2fbfd45b0e69ca64Klaus LuettichRDF_files = RDF/AS.hs OWL2/AS.hs RDF/Symbols.hs RDF/Sign.hs RDF/Morphism.hs \
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder RDF/Sublogic.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederCSMOF_files = CSMOF/As.hs CSMOF/Sign.hs
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder#QVTR_files = QVTR/As.hs QVTR/Sign.hs
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder# ATC DrIFT-rule generation for logics
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
4e7050bcbcf0f372a5bad32ecd0282bccabf0983Klaus Luettich
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
7b2177999334c920c5669621bd3c142fe198a8d7Christian MaederPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian MaederQBF/ATC_QBF.der.hs: $(QBF_files) $(GENRULES)
e593b89bfd4952698dc37feced21cefe869d87a2Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
89f270dacbf9c7a9a52ebb1a3b15796e4131d57fChristian Maeder
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till MossakowskiHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
9c3edf2b283c09d33b2820696886d1ed32fcadc8Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
9c3edf2b283c09d33b2820696886d1ed32fcadc8Christian MaederIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
9c3edf2b283c09d33b2820696886d1ed32fcadc8Christian Maeder $(GENRULECALL) -o $@ $(Isabelle_files)
9c3edf2b283c09d33b2820696886d1ed32fcadc8Christian Maeder
9c3edf2b283c09d33b2820696886d1ed32fcadc8Christian MaederModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
3c09fa452664b01b1f5559f9ca8cc2ddd910688aChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
3c09fa452664b01b1f5559f9ca8cc2ddd910688aChristian Maeder
94d3aa05411444596b44ede4531f05dd7ac20fdfChristian MaederHybrid/ATC_Hybrid.der.hs: $(Hybrid_files) $(GENRULES)
dc929508a3bd3c666e9b0182d56898fcafb5d66fChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Hybrid_files)
dc929508a3bd3c666e9b0182d56898fcafb5d66fChristian Maeder
94d3aa05411444596b44ede4531f05dd7ac20fdfChristian MaederTopHybrid/ATC_TopHybrid.der.hs: $(TopHybrid_files) $(GENRULES)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(TopHybrid_files)
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian MaederTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
ddc9315cc0b1f5dd3d8f99a77f1c75064db33b48Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian MaederConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
5d522dff4d0fabf57dd476d4c3de15d354a89f62Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder
8410667510a76409aca9bb24ff0eda0420088274Christian MaederCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus Luettich
ac43fa22d2d3f91a17674ac164cba3cf39a17795Klaus LuettichCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix ReckersCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
42aacf1f63419cbab63a88725e6a0b2c8776f101Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i ATC.IRI -o $@ $(OMDoc_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederLF/ATC_LF.der.hs: $(LF_files) $(GENRULES)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix ReckersFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder
afa6ceaf4359ae437aaa6830949583143ace2752Christian MaederMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix ReckersExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederCSL/ATC_CSL.der.hs: $(CSL_files) $(GENRULES)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix ReckersCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
ba0ec5e897ef99d420c8c14c2374e0f32b7043dbKlaus Luettich $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix ReckersAdl/ATC_Adl.der.hs: $(Adl_files) $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederFpl/ATC_Fpl.der.hs: $(Fpl_files) $(GENRULES)
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederTHF/ATC_THF.der.hs: $(THF_files) $(GENRULES)
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich $(GENRULECALL) -i ATC.Id -i ATC.GlobalAnnotations -o $@ $(THF_files)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus LuettichFreeCAD/ATC_FreeCAD.der.hs: $(FreeCAD_files) $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(FreeCAD_files)
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder
b9625461755578f3eed04676d42a63fd2caebd0cChristian MaederOWL2/ATC_OWL2.der.hs: $(OWL2_files) $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i ATC.Result -o $@ $(OWL2_files)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederRDF/ATC_RDF.der.hs: $(RDF_files) $(GENRULES)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(GENRULECALL) -i ATC.Result -o $@ $(RDF_files)
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maeder
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till MossakowskiCSMOF/ATC_CSMOF.der.hs: $(CSMOF_files) $(GENRULES)
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(CSMOF_files)
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder#QVTR/ATC_QVTR.der.hs: $(QVTR_files) $(GENRULES)
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder# $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $(QVTR_files)
26f228bf3a3fea810223396e5794c217a79a8d5bChristian Maeder
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder# all ATC .der.hs files for all logics
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maederatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder
6ae5607d2def114f998fd49bac4eef12a2620fafChristian Maedergenerated_rule_files = $(atc_der_files) $(atc_logic_files)
6ae5607d2def114f998fd49bac4eef12a2620fafChristian Maeder
6ae5607d2def114f998fd49bac4eef12a2620fafChristian Maeder# a rule to create all .der.hs files
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian MaedergenRules: $(generated_rule_files)
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder# the final ATC target files created by DriFT
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedergendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# all sources that need to be created before ghc can be called
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederderived_sources += $(drifted_files) Driver/Version.hs $(hs_der_files)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder####################################################################
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### targets
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder real_clean bin_clean distclean annos checkversion \
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder check capa hacapa h2h h2hf showKP clean_genRules genRules \
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder count doc fromKif derivedSources release cgi ghci build callghc
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder.SECONDARY : %.hs %.d $(generated_rule_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# dummy target to force ghc invocation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maedercallghc:
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederhets-opt:
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder $(MAKE) distclean
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) derivedSources
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) clean
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) hets-optimized
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhets-optimized: $(derived_sources)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -O -o hets hets.hs $(HC_OPTS)
470ca7a2797069ae4b27c34c1b71419f67be1f84Christian Maeder
470ca7a2797069ae4b27c34c1b71419f67be1f84Christian Maedercgi:
470ca7a2797069ae4b27c34c1b71419f67be1f84Christian Maeder $(MAKE) distclean
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) derivedSources
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) clean
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(MAKE) hets.cgi
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederhets.cgi: GUI/hets_cgi.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Documentation via haddock
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederdoc: docs/index.html
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
481d4fe351800ab00fd323db8974559431227305Christian MaederHADDOCK_INTERFACES = $(shell find `ghc --print-libdir`/../.. -name \*.haddock)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHAD_INTS = $(foreach file, $(HADDOCK_INTERFACES),\
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder -i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHADDOCK_OPTS = $(addprefix --optghc=, $(HC_OPTS))
481d4fe351800ab00fd323db8974559431227305Christian Maederdocs/index.html:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) -r docs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder mkdir docs
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski $(HADDOCK) -o docs -h -s ../%F $(HAD_INTS) \
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski -t 'Hets - the Heterogeneous Tool Set' \
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder $(filter-out Scratch.hs, $(wildcard *.hs))
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder
23ab8855c58adfbd03a0730584b917b24c603901Christian MaederderivedSources: $(derived_sources)
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder$(DRIFT): $(DRIFT_deps)
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT)
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski$(DTD2HS): $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell.hs
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski mkdir -p utils/DtdToHaskell-src/DtdToHaskell
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder cp -f $(DTD2HS_deps) utils/DtdToHaskell-src/DtdToHaskell
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder $(HC) --make -iutils/DtdToHaskell-src \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder utils/DtdToHaskell-src/DtdToHaskell.hs -o $@ $(HC_OPTS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederIsabelle/IsaExport.hs: $(DTD2HS) Isabelle/IsaExport.dtd
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder ($(DTD2HS) Isabelle/IsaExport.dtd Isabelle/IsaExport.hs Isabelle.)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder$(GENRULES): $(DRIFT) $(GENERATERULES_deps)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers (cd utils/GenerateRules; \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers GenerateRules.hs -o ../genRules)
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers
6da66254a8cff186a1e550b4ace23fb7bcac0d90Christian Maederutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(HC) --make -o $@ $<
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich# release management
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus LuettichREV = trunk
6da66254a8cff186a1e550b4ace23fb7bcac0d90Christian Maederrelease:
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder $(RM) -r Hets
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettich svn co -q https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder cp Makefile Makefile.orig; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder cp ReleaseMakefile Makefile; \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder ./clean.sh; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) clean.*; utils/replaceAllHeaders.sh)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(TAR) cf Hets.tar Hets
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Common/LaTeX_maps.hs generation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederutils/genItCorrections: $(GENITCORRECTIONS_deps)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) --make -o $@ $<
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @echo -n "Generating pretty/LaTeX_maps.hs ... "
ba0ec5e897ef99d420c8c14c2374e0f32b7043dbKlaus Luettich @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
efa8f9db01f64e2c719c201e4037743caefae045Klaus Luettich @(cd pretty >/dev/null; ../utils/genItCorrections \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder gen_it_characters gen_it_words >> LaTeX_maps.hs)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder @echo "ready"
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder @echo "please copy the file manually to Common"
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder### clean up
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maederclean_genRules:
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder $(RM) $(generated_rule_files) $(gendrifted_files) \
b49276c9f50038e0bd499ad49f7bd6444566a834Christian Maeder $(hs_clean_files)
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maeder
d67a33b40578beef2e255a274f89bb9c34aaf056Christian Maederclean: bin_clean o_clean clean_pretty clean_javastuff
fdef3358918491badb0e29e42b5d3b5a01950716Christian Maeder
4d5652abf9ed9c5714723ff7fdb80a54f7350fb2Christian Maeder### removes all *.o, *.hi and *.p_o files in all subdirectories
fdef3358918491badb0e29e42b5d3b5a01950716Christian Maedero_clean:
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder find . -name \*.o -o -name \*.hi -o -name \*.p_o \
a368e3bc3e9e92cd1981f08987295234f3441736Christian Maeder -o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski### remove binaries
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maederbin_clean:
bf76f4fcf07abaebea587df8135de8356c26a363Till Mossakowski $(RM) hets
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski $(RM) hets.cgi
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(RM) $(TESTTARGETS)
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettichclean_pretty:
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder pretty/generated_words.tex
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty}
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich $(RM) test/*/log
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) ToHaskell/test/*.{out,output}
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) */test/temp*
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich $(RM) doc/UserGuide.{log,aux,bbl,blg,out,pdf}
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederclean_javastuff:
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) OWL2/*.jar OWL2/java/lib/*.jar
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) -r OWL2/java/build OWL2/lib
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### additionally removes the library files
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederreal_clean: clean
1a6464613c59e35072b90ca296ae402cbe956144Christian Maeder
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich### additionally removes generated files not in the repository tree
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederdistclean: clean clean_genRules
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder $(RM) $(derived_sources)
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich $(RM) utils/appendHaskellPreludeString
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich $(RM) utils/DrIFT utils/genRules
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(RM) $(DTD2HS)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(RM) -r utils/DtdToHaskell-src/DtdToHaskell
f29371d8bd5a232c974e736b06d0d8a655d320fbKlaus Luettich $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
$(RM) -r docs
### interactive
ghci: $(derived_sources)
ghci $(HC_OPTS)
### build only, don't link
build: hets.hs
$(HC) --make -c $< $(HC_OPTS)
### Kif parser
fromKif: CASL/fromKif
### Annos parser
annos: Common/annos
### CASL parser
capa: CASL/capa
### HasCASL parser
hacapa: HasCASL/hacapa
### Haskell analysis
hana: Haskell/hana
### Haskell to Isabelle-HOLCF translation
h2hf: Haskell/h2hf
Haskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
Common/Lib/*.hs Comorphisms/*.hs
$(HC) -O --make -o $@ $< $(HC_OPTS)
### HasCASL to Haskell translation
h2h: Haskell/h2h
### test program to check the known provers
showKP: Comorphisms/test/showKP
### run tests in other directories
check: $(TESTTARGETS)
for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
## Preparing the version of Hets
Driver/Version.hs: Driver/Version.in version_nr checkversion
$(RM) $@
cp Driver/Version.in $@
echo " ++ \"$(shell cat version_nr), r$(shell svnversion .)\"" >> $@
chmod 444 $@
checkversion:
ATC/DevGraph.hs: Static/DevGraph.hs
## two dependencies to avoid circular prerequisites
CASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
Common/annos Common/test_parser Comorphisms/test/showKP \
CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
$(CASL_DEPENDENT_BINARIES): $(derived_sources)
## suffix rules
.SUFFIXES:
## rule for GHC
%: %.hs callghc
$(HC) --make -o $@ $< $(HC_OPTS)
## rule for DrIFT
%.hs: %.der.hs $(DRIFT)
$(RM) $@
($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
chmod 444 $@
## compiling rules for object and interface files
%.o %.hi: %.hs
$(HC) -c $< $(HC_OPTS)
%.o %.hi: %.lhs
$(HC) -c $< $(HC_OPTS)
## compiling rules for dependencies
%.d : %.hs
$(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
%.d : %.lhs
$(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
## Rule to generate hs files from glade files. Needed for GTK
%.hs: %.glade utils/appendHaskellPreludeString \
GUI/Glade/Template.append.hs
b=`basename $< .glade`; \
cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
utils/appendHaskellPreludeString $< > $@
# directory for installers
INSTALLER_DIR = ../installers
ifeq ($(strip $(HETS_VERSION)),)
HETS_VERSION := `cat version_nr`
# or `date +%F`
endif
# prepare installer creation
initialize_installer:
mkdir -p $(INSTALLER_DIR)
sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
> $(INSTALLER_DIR)/Makefile
@echo Please do
@echo " -> cd $(INSTALLER_DIR)"
@echo " -> make"
@echo and wait until it is finished
# check out java parts for OWL
owl_java:
$(RM) -r OWL2/java/OwlApi
svn export -q \
https://github.com/owlcs/owlapi/tags/owlapi-parent-3.4.8 \
OWL2/java/OwlApi
initialize_java: owl_java
ant -q init
java-libs:
ant -q java-libs
java-files:
ant -q java-files
java-clean:
ant -q java-clean
# download dependencies for RDF Jena-api
rdf_java:
mkdir -p RDF/java/lib
if [ -f RDF/java/lib/arq-2.8.7.jar ]; then \
echo "File arq-2.8.7.jar already exists"; \
else \
curl -o RDF/java/lib/arq-2.8.7.jar http://repo1.maven.org/maven2/com/hp/hpl/jena/arq/2.8.7/arq-2.8.7.jar; \
fi
if [ -f RDF/java/lib/icu4j-3.4.4.jar ]; then \
echo "File icu4j-3.4.4.jar already exists"; \
else \
curl -o RDF/java/lib/icu4j-3.4.4.jar http://repo1.maven.org/maven2/com/ibm/icu/icu4j/3.4.4/icu4j-3.4.4.jar; \
fi
if [ -f RDF/java/lib/iri-0.8.jar ]; then \
echo "File iri-0.8.jar already exists"; \
else \
curl -o RDF/java/lib/iri-0.8.jar http://repo1.maven.org/maven2/com/hp/hpl/jena/iri/0.8/iri-0.8.jar; \
fi
if [ -f RDF/java/lib/jena-2.6.4.jar ]; then \
echo "File jena-2.6.4.jar already exists"; \
else \
curl -o RDF/java/lib/jena-2.6.4.jar http://repo1.maven.org/maven2/com/hp/hpl/jena/jena/2.6.4/jena-2.6.4.jar; \
fi
if [ -f RDF/java/lib/junit-4.5.jar ]; then \
echo "File junit-4.5.jar already exists"; \
else \
curl -o RDF/java/lib/junit-4.5.jar http://repo1.maven.org/maven2/junit/junit/4.5/junit-4.5.jar; \
fi
if [ -f RDF/java/lib/log4j-1.2.13.jar ]; then \
echo "File log4j-1.2.13.jar already exists"; \
else \
curl -o RDF/java/lib/log4j-1.2.13.jar http://repo1.maven.org/maven2/log4j/log4j/1.2.13/log4j-1.2.13.jar; \
fi
if [ -f RDF/java/lib/lucene-core-2.3.1.jar ]; then \
echo "File lucene-core-2.3.1.jar already exists"; \
else \
curl -o RDF/java/lib/lucene-core-2.3.1.jar http://repo1.maven.org/maven2/org/apache/lucene/lucene-core/2.3.1/lucene-core-2.3.1.jar; \
fi
if [ -f RDF/java/lib/slf4j-api-1.5.8.jar ]; then \
echo "File slf4j-api-1.5.8.jar already exists"; \
else \
curl -o RDF/java/lib/slf4j-api-1.5.8.jar http://repo2.maven.org/maven2/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.jar; \
fi
if [ -f RDF/java/lib/slf4j-log4j12-1.5.8.jar ]; then \
echo "File slf4j-log4j12-1.5.8.jar already exists"; \
else \
curl -o RDF/java/lib/slf4j-log4j12-1.5.8.jar http://repo2.maven.org/maven2/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8.jar; \
fi
if [ -f RDF/java/lib/stax-api-1.0.1.jar ]; then \
echo "File stax-api-1.0.1.jar already exists"; \
else \
curl -o RDF/java/lib/stax-api-1.0.1.jar http://dist.codehaus.org/stax/jars/stax-api-1.0.1.jar; \
fi
if [ -f RDF/java/lib/wstx-asl-3.2.9.jar ]; then \
echo "File wstx-asl-3.2.9.jar already exists"; \
else \
curl -o RDF/java/lib/wstx-asl-3.2.9.jar http://repo1.maven.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.9/wstx-asl-3.2.9.jar; \
fi
if [ -f RDF/java/lib/xercesImpl-2.7.1.jar ]; then \
echo "File xercesImpl-2.7.1.jar already exists"; \
else \
curl -o RDF/java/lib/xercesImpl-2.7.1.jar http://mirrors.ibiblio.org/pub/mirrors/maven2/xerces/xercesImpl/2.7.1/xercesImpl-2.7.1.jar; \
fi
# download rdf4h, unpack and install
rdf4h:
cabal install http://protempore.net/rdf4h/rdf4h-0.6.1.tar.gz
# DO NOT DELETE: Beginning of Haskell dependencies
CSMOF/CSMOF/As.o : CSMOF/As.hs
CSMOF/CSMOF/Test_As.o : CSMOF/Test_As.hs
CSMOF/CSMOF/Test_As.o : CSMOF/As.hi
#QVTR/QVTR/As.o : QVTR/As.hs
# DO NOT DELETE: End of Haskell dependencies