rules revision 43b4c41fbb07705c9df321221ab9cb9832460407
949N/A Haskell/Hatchet Hatchet Taxonomy $(PFE_PATHS)
DRIFT_deps = utils/DrIFT-src/*hs
DRIFT = utils/DrIFT
INLINEAXIOMS = utils/outlineAxioms
# flags also come in via ../uni/uni-package.conf
UNI_PACKAGE_CONF := $(wildcard ../uni/uni-package.conf)
# if uni/server is included also HaXml sources are needed
$(wildcard ../uni/htk/haddock/*/*.hs)
PFE_TOOLDIR := $(wildcard ../programatica/tools)
happy_files = $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
$(PFE_TOOLDIR)/base/parse2/Lexer/HsLex.hs
LEX_DIR := $(PFE_TOOLDIR)/base/parse2/Lexer
$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
$(LEX_DIR)/HsTokens.hs
-i$(PFE_TOOLDIR)/base/tests/HbcLibraries \
-i$(PFE_TOOLDIR)/base/lib \
derived_sources += Haskell/PreludeString.hs
APPENDPRELUDESTRING = utils/appendHaskellPreludeString \
$(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
happy_files += Haskell/Hatchet/HsParser.hs
TESTDIRS = Common CASL HasCASL Haskell/Hatchet/examples ToHaskell
#include sources_hetcats.mk
sources = hets.hs $(filter-out $(non_sources), \
genrule_header_files = $(wildcard ATC/*.header.hs)
ATC/$(basename $(basename $(notdir $(file)))).der.hs)
Hatchet_files := Haskell/Hatchet/AnnotatedHsSyn.hs \
atc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
gendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
gen_inline_axiom_files = $(patsubst %.hs,%.inline.hs,$(inline_axiom_files))
derived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
$(inline_axiom_files) Modal/ModalSystems.hs
cpp_sources = Isabelle/Logic_Isabelle.hs \
nondoc_sources = $(wildcard utils/DrIFT-src/*.hs) \
$(wildcard utils/DrIFT-src/*.lhs) \
$(wildcard utils/GenerateRules/*.hs) \
$(wildcard utils/InlineAxioms/*.hs) \
$(patsubst %.hs,%.der.hs,$(drifted_files))
#.PRECIOUS: sources_hetcats.mk
$(call run_hc, $(HC) --make -o $@ hets.hs $(HC_OPTS))
$(call run_hc, $(HC) --make -O -o hets hets.hs $(HC_OPTS))
ghc --make -package-conf /home/luettich/ghc-pkg/package.conf \
strip hets.cgi
taxonomy: Taxonomy/taxonomyTool.hs $(tax_sources)
$(HC) --make -o Taxonomy/taxonomyTool $< -ifgl $(HC_OPTS)
hetcats.TAGS: $(sources)
$(sources); mv TAGS $@; mv tags hetcats.tags
doc: docs/index.html
docs/index.html: $(doc_sources)
$(MAKE) hets.cgi
$(PERL) utils/post_process_docs.pl docs \
utils/DrIFT: $(DRIFT_deps)
utils/genRules: $(GENERATERULES_deps)
(cd utils/GenerateRules; \
GenerateRules.hs -o ../genRules && strip ../genRules)
$(HC) --make utils/InlineAxioms/InlineAxioms.hs $(HC_WARN) \
$(MAKE) clean; ./clean.sh; \
$(RM) clean.*; mv Makefile Makefile.orig; \
tar cvf HetCATS.tar HetCATS
cp -p hets $(INSTALLDIR)/versions/hets-`cat version_nr`
ln -s versions/hets-`cat version_nr` hets; $(RM) version_nr)
$(atc_der_files): $(atc_files) $(genrule_header_files) utils/genRules
utils/genRules -r $(rule) -o CASL $(CASL_files)
utils/genRules -r $(rule) -o HasCASL $(HasCASL_files)
utils/genRules -r $(rule) -o Modal $(Modal_files)
utils/genRules -r $(rule) -o CoCASL $(CoCASL_files)
utils/genRules -r $(rule) -o COL $(COL_files)
utils/genRules -r $(rule) -o CspCASL $(CspCASL_files)
if [ -f ATC/$(basename $(basename $(notdir $(file)))).header.hs ]; \
then utils/genRules -r $(rule) -o ATC -h \
ATC/$(basename $(basename $(notdir $(file)))).header.hs $(file); \
else utils/genRules -r $(rule) -o ATC $(file); fi ;
$(RM) CASL/capa
$(RM) HasCASL/hacapa
$(RM) Haskell/hapa
$(RM) Haskell/hana
$(RM) Haskell/wrap
$(RM) ToHaskell/h2h
$(RM) Syntax/hetpa
$(RM) Static/hetana
$(RM) GUI/hetdg
$(RM) Common/annos
$(RM) Haskell/Hatchet/hatch
$(RM) ToHaskell/translateAna
$(RM) Taxonomy/taxonomyTool
### also delete *.d.bak (dependency file backups)
(cd $$p ; $(RM) *.d *.d.bak) ; done
$(RM) hetcats-make sources_hetcats.mk
test_parser: Common/test_parser
capa: CASL/capa
hacapa: HasCASL/hacapa
hana: Haskell/hana
h2h: ToHaskell/h2h
hetpa: Syntax/hetpa.hs Syntax/*.hs
hetana: Static/hetana.hs Static/*.hs
atctest: ATC/ATCTest.hs ATC/*.hs
### ATerm.Lib test system
hetdg: GUI/hetdg.hs $(drifted_files) *.hs
## two hardcoded dependencies for a correct generation of Version.hs
%.hs: %.inline.hs $(INLINEAXIOMS)
## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
utils/genTransMFormFunc.pl $(INLINEAXIOMS)
$(PERL) utils/genTransMFormFunc.pl $< $@