Makefile revision d534c548bf83a00375e5205b62a55bf6abd32a90
a7038d1a0513c8e804937ebc95fc9cb3a46c04f5Mark Andrews# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# This Makefile will compile the new hets system and provides also
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# targets for test programs during implementation phases.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# !!! Note: This makefile is written for GNU make !!!
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# (gmake on solaris)
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews####################################################################
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews## Some varibles, which control the compilation
b54ac42f19a5c914df39817acce4efe92607b907Automatic UpdaterHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson CspCASL ATC Proofs Comorphisms Isabelle Driver \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson Taxonomy CASL_DL SPASS OWL_DL OMDoc PGIP Propositional
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# the 'replacing spaces' example was taken from the (GNU) Make info manual
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson## set ghc imports properly for your system
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonGHC_IMPORTS = `$(HC) --print-libdir`/imports
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# import directories for ghc-5.04.2
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonGHC5 = $(GHC_IMPORTS)/base:$(GHC_IMPORTS)/haskell98
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark Andrews DERIVEPATH=.:$(GHC_IMPORTS):$(GHC5):$(subst $(space),:,$(PFE_PATHS))
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark Andrews# override on commandline for other architectures
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark Andrews /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark AndrewsGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark AndrewsGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark AndrewsINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark AndrewsGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark Andrews ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinHAXMLVERSION = $(shell $(HCPKG) field HaXml version)
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark Andrews# remove -fno-warn-orphans for older ghcs and add -ifgl
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark Andrews $(HC_WARN) -fglasgow-exts -fallow-overlapping-instances
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinHC_OPTS_MAC := $(if $(findstring Darwin,$(shell uname -s)), \
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark Andrews -optl-F$(HOME)/Library/Frameworks -optl-framework -optlGNUreadline,)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# -ddump-minimal-imports
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark Andrews# flags also come in via ../uni/uni-package.conf
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark Andrews# but added it here in case of compilation without uni
a76b380643a22f23a67a9df284e86cd7ef7608c1Mark Andrewslogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SPASS \
a76b380643a22f23a67a9df284e86cd7ef7608c1Mark AndrewsTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
e672951ed28b2e9cc7a19c3d7fa4a258382f981cAutomatic Updater Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
a76b380643a22f23a67a9df284e86cd7ef7608c1Mark Andrews ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
75ae74f8fd0847817bce2db7c868b179db67f019Mark Andrews Common/ATerm/ATermDiffMain.hs Common/annos.hs Common/test_parser.hs \
75ae74f8fd0847817bce2db7c868b179db67f019Mark Andrews SPASS/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# some modules from uni for haddock
233085a7d2b040eda2512f9014bcea58af220aa2Andreas Gustafsson# if uni/server is included also HaXml sources are needed
233085a7d2b040eda2512f9014bcea58af220aa2Andreas Gustafssonuni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
233085a7d2b040eda2512f9014bcea58af220aa2Andreas Gustafsson ../uni/reactor ../uni/util ../uni/posixutil
233085a7d2b040eda2512f9014bcea58af220aa2Andreas Gustafssonuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
f621719829356f27e831507b75e88e8a655e48d8Danny MayerTESTTARGETFILES += OWL_DL/ToHaskellAS.hs Taxonomy/taxonomyTool.hs \
d0aebc5a55b6145297d94f8aee939852357c59fcMark Andrews### list of directories to run checks in
d0aebc5a55b6145297d94f8aee939852357c59fcMark Andrewshs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
e672951ed28b2e9cc7a19c3d7fa4a258382f981cAutomatic UpdaterPFE_TOOLDIR = $(wildcard ../programatica/tools)
233085a7d2b040eda2512f9014bcea58af220aa2Andreas GustafssonPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
f621719829356f27e831507b75e88e8a655e48d8Danny Mayer base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
74f261bd2b7846d8e730ca3a1b28d6503de5c74aMark Andrews base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
233085a7d2b040eda2512f9014bcea58af220aa2Andreas Gustafsson base/transforms base/transforms/Deriving property \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein property/syntax property/AST property/transforms \
2883651930dc85cacae940fe2a81277dfc14807dBrian Wellington property/TI property/defs property/parse2 property/parse2/Parser
2883651930dc85cacae940fe2a81277dfc14807dBrian WellingtonPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
e61793f0865117ad87a19d6e245bea8f3b712d1bDanny Mayerpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
e672951ed28b2e9cc7a19c3d7fa4a258382f981cAutomatic Updaterhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
233085a7d2b040eda2512f9014bcea58af220aa2Andreas Gustafssonprogramatica_pkg: $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson @if $(HCPKG) field programatica version; then \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein echo "of programatica package found"; else \
531eafa3026663020f4a2ac5587cce44341e3442Andreas Gustafsson -i `pwd`/Haskell/Programatica.patch || exit 0); \
f621719829356f27e831507b75e88e8a655e48d8Danny Mayer cp -f utils/programatica.cabal ../programatica/tools; \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson ./Setup build; ./Setup install --user) fi
9aba20edee4e704433a464ae43b070b0775de506Mark Andrews echo "{-# OPTIONS -w #-}" > $@
9aba20edee4e704433a464ae43b070b0775de506Mark Andrews$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
9aba20edee4e704433a464ae43b070b0775de506Mark Andrews -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
9aba20edee4e704433a464ae43b070b0775de506Mark Andrewsderived_sources += Haskell/PreludeString.hs $(LEX_DIR)/HsLex.hs \
9aba20edee4e704433a464ae43b070b0775de506Mark Andrewsutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
9aba20edee4e704433a464ae43b070b0775de506Mark AndrewsAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
9aba20edee4e704433a464ae43b070b0775de506Mark Andrews## rule for appendHaskellPreludeString
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
9aba20edee4e704433a464ae43b070b0775de506Mark AndrewsAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
ed03e26c44347ec20aff6608de6082e3594d95fbMark Andrews HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
ed03e26c44347ec20aff6608de6082e3594d95fbMark Andrews#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
ed03e26c44347ec20aff6608de6082e3594d95fbMark AndrewsOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
ed03e26c44347ec20aff6608de6082e3594d95fbMark Andrews base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
ed03e26c44347ec20aff6608de6082e3594d95fbMark Andrews base/parse2/SourceNames base/syntax/SyntaxRec \
ed03e26c44347ec20aff6608de6082e3594d95fbMark Andrews $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
ed03e26c44347ec20aff6608de6082e3594d95fbMark Andrews## rule for ATC generation
ed03e26c44347ec20aff6608de6082e3594d95fbMark AndrewsHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
9aba20edee4e704433a464ae43b070b0775de506Mark AndrewsTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
fb5363b8972014e3580339e9df850763b0620ac4Mark AndrewsTESTTARGETS = Test.o $(subst .hs,,$(TESTTARGETFILES))
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence### Profiling (only for debugging)
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence### Attention every module must be compiled with profiling or the linker
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews### cannot link the various .o files properly. So after switching on
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews### Profiling, do an 'gmake real_clean; gmake'
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews### Comment in the following line for switching on profiling.
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews#HC_PROF = -prof -auto-all -fignore-asserts
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsHC_OPTS = $(HC_FLAGS) $(HC_INCLUDE) $(HC_PACKAGE) $(PFE_FLAGS) $(HC_PROF) \
b4d8192d210290112e07b0e22b491c45c50ba696Evan Hunt####################################################################
b4d8192d210290112e07b0e22b491c45c50ba696Evan Hunt## sources for hets
b4d8192d210290112e07b0e22b491c45c50ba696Evan Huntnon_sources = Common/LaTeX_maps.svmono.hs Common/CaslLanguage.hs ./Test.hs \
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrewssources = hets.hs $(filter-out $(non_sources), \
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews $(wildcard $(addsuffix /[A-Z]*hs, $(SOURCE_PATHS))))
b54ac42f19a5c914df39817acce4efe92607b907Automatic Updaterdrifted_files = Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
b4d8192d210290112e07b0e22b491c45c50ba696Evan Hunt Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs Syntax/AS_Structured.hs \
b4d8192d210290112e07b0e22b491c45c50ba696Evan Hunt Modal/AS_Modal.hs CoCASL/AS_CoCASL.hs COL/AS_COL.hs CASL_DL/AS_CASL_DL.hs\
fb5363b8972014e3580339e9df850763b0620ac4Mark Andrewsatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
9aba20edee4e704433a464ae43b070b0775de506Mark Andrews Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein Logic/Prover.hs #Common/Id.hs Common/Result.hs OWL_DL/AS.hs
e672951ed28b2e9cc7a19c3d7fa4a258382f981cAutomatic Updateratc_der_files = $(foreach file, $(atc_files), \
fb5363b8972014e3580339e9df850763b0620ac4Mark Andrews ATC/$(basename $(basename $(notdir $(file)))).der.hs)
fb5363b8972014e3580339e9df850763b0620ac4Mark AndrewsATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
9aba20edee4e704433a464ae43b070b0775de506Mark AndrewsATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
9aba20edee4e704433a464ae43b070b0775de506Mark AndrewsATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
9aba20edee4e704433a464ae43b070b0775de506Mark Andrews $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Grothendieck -o $@ $<
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
b4d8192d210290112e07b0e22b491c45c50ba696Evan HuntATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas GustafssonCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs\
b4d8192d210290112e07b0e22b491c45c50ba696Evan HuntConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
b4d8192d210290112e07b0e22b491c45c50ba696Evan HuntCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
b4d8192d210290112e07b0e22b491c45c50ba696Evan HuntCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs
b4d8192d210290112e07b0e22b491c45c50ba696Evan Huntatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
b4d8192d210290112e07b0e22b491c45c50ba696Evan Huntgenerated_rule_files = $(atc_der_files) $(atc_logic_files)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssongendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssoninline_axiom_files = Comorphisms/CASL2PCFOL.hs \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson Comorphisms/Modal2CASL.hs Comorphisms/CASL2TopSort.hs \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein Comorphisms/CASL2SubCFOL.hs CASL_DL/PredefinedSign.hs
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeingen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeinderived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files) \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein OWL_DL/ReadWrite.hs ConstraintCASL/AS_ConstraintCASL.hs
421551db8a61283420b0b6aed4ac28f9d76b9770Andreas Gustafsson# sources that have {-# OPTIONS -cpp #-}
bed7a352934efc8055902d83c750dca2d0cd6aaaAndreas Gustafsson SPASS/Logic_SPASS.hs GUI/Utils.hs Driver/WriteFn.hs \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein Comorphisms/LogicList.hs Comorphisms/LogicGraph.hs \
421551db8a61283420b0b6aed4ac28f9d76b9770Andreas Gustafsson Comorphisms/KnownProvers.hs hets.hs $(happy_files) \
421551db8a61283420b0b6aed4ac28f9d76b9770Andreas Gustafsson PGIP/InfoCommands.hs PGIP/ProveCommands.hs \
421551db8a61283420b0b6aed4ac28f9d76b9770Andreas Gustafsson# unused, remove when header files are gone
421551db8a61283420b0b6aed4ac28f9d76b9770Andreas Gustafssongenrule_header_files = $(wildcard ATC/*.header.hs)
421551db8a61283420b0b6aed4ac28f9d76b9770Andreas Gustafssonnondoc_sources = $(wildcard utils/DrIFT-src/*.hs) \
421551db8a61283420b0b6aed4ac28f9d76b9770Andreas Gustafsson $(cpp_sources) $(pfe_sources) $(gen_inline_axiom_files) \
421551db8a61283420b0b6aed4ac28f9d76b9770Andreas Gustafsson $(genrule_header_files) $(generated_rule_files) \
421551db8a61283420b0b6aed4ac28f9d76b9770Andreas Gustafsson $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hspp \
421551db8a61283420b0b6aed4ac28f9d76b9770Andreas Gustafsson Haskell/PreludeString.append.hs Haskell/ProgramaticaPrelude.hs \
19f4d25fd5b35b1375b0b9f13b66770ee4a66154Brian Wellington $(patsubst %.hs, %.der.hs, $(drifted_files))
19f4d25fd5b35b1375b0b9f13b66770ee4a66154Brian Wellingtonhspp_sources = $(patsubst %.hs, %.hspp, $(cpp_sources))
19f4d25fd5b35b1375b0b9f13b66770ee4a66154Brian Wellington# this variable holds the modules that should be documented
19f4d25fd5b35b1375b0b9f13b66770ee4a66154Brian Wellingtondoc_sources = $(filter-out $(nondoc_sources), $(sources) $(hspp_sources))
19f4d25fd5b35b1375b0b9f13b66770ee4a66154Brian Wellingtontax_sources = Taxonomy/AbstractGraphView.hs Taxonomy/MMiSSOntology.hs \
19f4d25fd5b35b1375b0b9f13b66770ee4a66154Brian Wellington Taxonomy/MMiSSOntologyGraph.hs Taxonomy/OntoParser.hs
19f4d25fd5b35b1375b0b9f13b66770ee4a66154Brian Wellingtontax_objects = $(patsubst %.hs, %.o, $(tax_sources))
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark Andrews####################################################################
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark Andrews.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark Andrews real_clean bin_clean package_clean distclean packages \
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark Andrews http_pkg syb_pkg shellac_pkg shread_pkg hxt_pkg haifa_pkg \
b9efcf0a377381b29960137e54ecaf4db85a35c8Mark Andrews check capa hacapa h2h h2hf showKP clean_genRules genRules \
9a859983d7059a6eb9c877c1d2ac6a3a5b7170f7Evan Hunt derivedSources install_hets install release cgi ghci
9a859983d7059a6eb9c877c1d2ac6a3a5b7170f7Evan Hunt.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssonpackages: http_pkg syb_pkg shellac_pkg shread_pkg hxt_pkg haifa_pkg \
$(RM) $@
cgi:
@$(PERL) -e \
$(sources) >> $@
(cd utils/GenerateRules; \
GenerateRules.hs -o ../genRules && strip ../genRules)
-i../.. -o $(INLINEAXIOMS)
if [ -d ../programatica ] ; then \
./clean.sh; \
### Common/LaTeX_maps.hs generation
strip $@
@echo -n "Generating pretty/LaTeX_maps.hs ... "
@(cd pretty >/dev/null; ../utils/genItCorrections \
$(GENRULES)
-o $@ $(OWL_DL_files)
$(RM) $@
## two hardcoded dependencies for a correct generation of Version.hs
.SUFFIXES:
%.hs: %.y
$(RM) $@
$(RM) $@
$(INLINEAXIOMS) $< > $@
%.d : %.hs
%.d : %.lhs
$(RM) $@
$(RM) $@
$(PERL) $+ > $@
## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
# uses intransparently utils/outlineAxioms
$(RM) $@
@if [ -d $(INSTALLER_DIR) ] ; then \
sed "s/^\(SPASS_DIR_MAC=\).*/\1`ls utils/SPASS-ppc-mac/ | grep SPASS`/" Makefile.inst > Makefile.inst2 ;\
@echo Please do