rules revision c0c2380bced8159ff0297ece14eba948bd236471
0N/A# hetcats/Makefile
2362N/A# $Header$
0N/A# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2004
0N/A# Year: 2004
0N/A
0N/A# This Makefile will compile the new hetcats system and provides also
2362N/A# targets for test programs during implementation phases.
0N/A
2362N/A# !!! Note: This makefile is written for GNU make !!!
0N/A# (gmake on solaris ; make on linux)
0N/A
0N/A####################################################################
0N/A## Some varibles, which control the compilation
0N/A
0N/AINCLUDE_PATH = ghc:hetcats
0N/ACOMMONLIB_PATH = Common/Lib:Common/Lib/Parsec:Common/ATerm:fgl/Data/Graph:fgl/Data/Graph/Inductive:fgl/Data/Graph/Inductive/Aux:fgl/Data/Graph/Inductive/Monad:fgl/Data/Graph/Inductive/Query
0N/ACLEAN_PATH = utils/DrIFT-src:utils/GenerateRules:utils/InlineAxioms:Common:Logic:CASL:CASL/CCC:Syntax:Static:GUI:HasCASL:Haskell:Modal:CoCASL:COL:CspCASL:ATC:ToHaskell:Proofs:Comorphisms:Isabelle:$(INCLUDE_PATH):Haskell/Hatchet:$(PFE_DRIFTPATH)
0N/A
0N/A## set ghc imports properly for your system
0N/ALINUX_IMPORTS = $(wildcard /home/linux-bkb/ghc/ghc-latest/lib/ghc-*/imports)
2362N/ADRIFT_ENV = DERIVEPATH='.:ghc:hetcats:${LINUX_IMPORTS}:${GHC_IMPORTS}'
2362N/A
2362N/A# the 'replacing spaces' example was taken from the (GNU) Make info manual
0N/Aempty:=
0N/Aspace:= $(empty) $(empty)
0N/A# add PFE_DRIFTPATH to DERIVEPATH if needed
0N/A# but name clashes currently prevent ATC generation in a single file
0N/APFE_DRIFTPATH = $(subst $(space),:,$(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS)))
0N/A
0N/A# override on commandline for other architectures
0N/AINSTALLDIR = /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
0N/A
0N/ADRIFT_deps = utils/DrIFT-src/*hs
0N/AGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
0N/AINLINEAXIOMS_deps = utils/InlineAxioms/*hs
0N/A
0N/AHC = ghc
0N/APERL = perl
0N/AHAPPY = happy
0N/ADRIFT = $(DRIFT_ENV) utils/DrIFT
0N/AINLINEAXIOMS = utils/outlineAxioms
0N/AHADDOCK = haddock
0N/ACPPP = cpp
0N/A
0N/AHC_FLAGS = -Wall -fglasgow-exts
0N/A# -ddump-minimal-imports
0N/A# flags also come in via ../uni/uni-package.conf
0N/A# but added it here in case of compilation without uni
0N/A
0N/AHC_INCLUDE = -i$(INCLUDE_PATH)
0N/AHC_PACKAGE = -package-conf ../uni/uni-package.conf -package uni-davinci \
0N/A -package uni-server -DUNI_PACKAGE
0N/A
0N/APFE_TOOLDIR = $(wildcard ../programatica/tools)
0N/APFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
0N/A base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
0N/A base/transforms base/transforms/Deriving hs2html \
0N/A property/pfe property/syntax property/AST property/transforms \
0N/A property/TI property/defs property/parse2 property/parse2/Parser \
0N/A hs2stratego hs2stratego/AST
0N/APFE_PATH = $(addprefix -i$(PFE_TOOLDIR)/, $(PFE_DIRS))
0N/Aifneq ($(strip $(PFE_TOOLDIR)),)
0N/APFE_FLAGS = -package data -package text $(PFE_PATH) -DPROGRAMATICA
0N/Aendif
0N/A#-fallow-undecidable-instances -fno-monomorphism-restriction
0N/A
0N/A### Profiling (only for debugging)
0N/A### Attention every module must be compiled with profiling or the linker
0N/A### cannot link the various .o files properly. So after switching on
0N/A### Profiling, do an 'gmake real_clean; gmake'
0N/A### and comment out HC_PACKAGE variable definition above.
0N/A### Comment in the following line for switching on profiling.
0N/A#HC_PROF = -prof -auto-all
0N/A
0N/AHCI_OPTS = $(HC_FLAGS) $(HC_INCLUDE) $(HC_PACKAGE) $(PFE_FLAGS)
0N/AHC_OPTS = $(HCI_OPTS) $(HC_PROF)
0N/ADRIFT_OPTS = +RTS -K10m -RTS
0N/A
0N/A### list of directories to run checks in
0N/ATESTDIRS = Common CASL HasCASL Haskell/Hatchet/examples ToHaskell/test
0N/A
0N/A
0N/A####################################################################
0N/A## sources for hetcats (semi - manually produced with a perl script)
0N/A
0N/Aifneq ($(MAKECMDGOALS),clean)
0N/Aifneq ($(MAKECMDGOALS),bin_clean)
0N/Aifneq ($(MAKECMDGOALS),d_clean)
0N/Aifneq ($(MAKECMDGOALS),real_clean)
0N/Aifneq ($(MAKECMDGOALS),distclean)
0N/Aifneq ($(MAKECMDGOALS),genRules)
0N/Aifneq ($(MAKECMDGOALS),utils/genRules)
0N/Aifneq ($(MAKECMDGOALS),hets-opt)
0N/Aifneq ($(MAKECMDGOALS),hets-optimized)
0N/Aifneq ($(MAKECMDGOALS),derivedSources)
0N/Aifneq ($(MAKECMDGOALS),$(INLINEAXIOMS))
0N/Aifneq ($(MAKECMDGOALS),release)
0N/Aifneq ($(MAKECMDGOALS),check)
0N/Aifneq ($(MAKECMDGOALS),apache_doc)
0N/Aifneq ($(MAKECMDGOALS),clean_genRules)
0N/Aifneq ($(MAKECMDGOALS),atctest2)
0N/Aifneq ($(MAKECMDGOALS),hetana)
0N/Aifneq ($(MAKECMDGOALS),taxonomy)
0N/Ainclude sources_hetcats.mk
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/A
0N/Aobjects = $(patsubst %.lhs,%.o,$(sources:%.hs=%.o))
0N/A
0N/Adrifted_files = Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
0N/A Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs Syntax/AS_Structured.hs \
0N/A Modal/AS_Modal.hs CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
0N/A $(gendrifted_files)
0N/A
0N/Agenrule_header_files = $(wildcard ATC/*.header.hs)
0N/A
0N/Agenrule_files = Common/Lib/Graph.hs Common/Id.hs Common/Result.hs \
0N/A Common/AS_Annotation.der.hs \
0N/A Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
0N/A Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
0N/A CASL/Sublogic.hs \
0N/A CASL/Morphism.hs CASL/Sign.hs CASL/AS_Basic_CASL.der.hs \
0N/A HasCASL/As.hs HasCASL/Le.hs HasCASL/Morphism.hs \
0N/A HasCASL/Sublogic.hs \
0N/A Modal/AS_Modal.hs Modal/ModalSign.hs \
0N/A CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs \
0N/A COL/AS_COL.hs COL/COLSign.hs \
0N/A CspCASL/AS_CSP_CASL.hs CspCASL/SignCSP.hs \
0N/A Static/DevGraph.hs \
0N/A Isabelle/IsaSign.hs
0N/A
0N/Agendrifted_files = ATC/Graph.hs ATC/Id.hs ATC/Result.hs ATC/AS_Annotation.hs \
0N/A ATC/AS_Library.hs ATC/GlobalAnnotations.hs \
0N/A ATC/AS_Structured.hs ATC/AS_Architecture.hs \
0N/A ATC/DevGraph.hs \
0N/A CASL/ATC_CASL.hs \
0N/A HasCASL/ATC_HasCASL.hs CspCASL/ATC_CspCASL.hs \
0N/A Modal/ATC_Modal.hs CoCASL/ATC_CoCASL.hs COL/ATC_COL.hs \
0N/A ATC/IsaSign.hs
0N/A
0N/Agenerated_rule_files = $(patsubst %.hs,%.der.hs,$(gendrifted_files))
0N/A
0N/Ainline_axiom_files = Comorphisms/CASL2PCFOL.hs Comorphisms/PCFOL2FOL.hs Comorphisms/Modal2CASL.hs
0N/Agen_inline_axiom_files = $(patsubst %.hs,%.inline.hs,$(inline_axiom_files))
0N/A
0N/Ahappy_files = Haskell/Hatchet/HsParser.hs
0N/A
0N/A# this variable holds the modules that should be documented
0N/A# the imported parsec library is not included!
0N/Acpp_sources = ./Isabelle/Logic_Isabelle.hs \
0N/A ./Proofs/Proofs.hs hets.hs ./CASL/CCC/FreeTypes.hs \
0N/A ./Comorphisms/LogicList.hs ./Comorphisms/LogicGraph.hs
0N/A
0N/Adoc_sources = $(filter-out $(cpp_sources) ,$(sources)) \
0N/A $(patsubst %.hs, %.hspp, $(cpp_sources))
0N/A
0N/A# some modules from uni for haddock
0N/A# if uni/server is included also HaXml sources are needed
0N/Auni_sources = $(wildcard ../uni/davinci/haddock/*.hs) \
0N/A $(wildcard ../uni/graphs/haddock/*.hs) \
0N/A ../uni/htk/toplevel/HTk.hs \
0N/A $(wildcard ../uni/htk/haddock/*/*.hs) \
0N/A $(wildcard ../uni/events/haddock/*.hs) \
0N/A $(wildcard ../uni/reactor/haddock/*.hs) \
0N/A $(wildcard ../uni/util/haddock/*.hs) \
0N/A $(wildcard ../uni/posixutil/haddock/*.hs)
0N/A
0N/Atax_sources = Taxonomy/AbstractGraphView.hs Taxonomy/MMiSSOntology.hs \
0N/A Taxonomy/MMiSSOntologyGraph.hs Taxonomy/OntoParser.hs
0N/Atax_objects = $(patsubst %.hs,%.o,$(tax_sources))
0N/A
0N/A
0N/A####################################################################
0N/A### targets
0N/A
0N/A.PHONY : clean d_clean real_clean bin_clean check hetana hetpa hetdg \
0N/A clean_genRules genRules
0N/A
0N/A.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
0N/A#.PRECIOUS: sources_hetcats.mk
0N/A
0N/Aall: hets
0N/A
0N/Ahets: $(sources)
0N/A $(HC) --make -o $@ hets.hs $(HC_OPTS) 2>&1 | tee hetcats-make
0N/A
0N/Ahets-opt: hetcats/Version.hs
0N/A $(MAKE) distclean
0N/A $(MAKE) derivedSources
0N/A $(MAKE) real_clean
0N/A $(MAKE) hets-optimized
0N/A
0N/Ahets-optimized:
0N/A $(HC) --make -O -o hets hets.hs $(HC_OPTS) -w 2>&1 | tee hetcats-make
0N/A strip hets
0N/A
0N/Ahets-old: $(objects)
0N/A $(RM) $@
0N/A $(HC) -o hets $(HC_OPTS) $(objects)
0N/A
0N/Ahets.cgi: $(sources) GUI/hets_cgi.hs
0N/A ghc --make -package-conf /home/luettich/ghc-pkg/package.conf -package WASH-CGI GUI/hets_cgi.hs -o hets.cgi $(HC_OPTS) -O
0N/A
0N/Ahetcats-make: hets.hs utils/create_sources.pl $(drifted_files) $(happy_files) $(inline_axiom_files) Modal/ModalSystems.hs
0N/A $(RM) hetcats-make sources_hetcats.mk
0N/A $(HC) --make -o hets $< $(HC_OPTS) 2>&1 | tee hetcats-make
0N/A
0N/Ataxonomy: Taxonomy/taxonomyTool.hs $(tax_sources)
0N/A $(HC) --make -o Taxonomy/taxonomyTool $< -ifgl $(HC_OPTS)
0N/A
0N/A###############################
0N/A### TAGS files for (x)emacs
0N/A# load them with "M-x" "visit-tags-table" from
0N/A# "HetCATS/hetcats/hetcats.TAGS"
0N/A# use "M-." to search for a tag
0N/A# !!Beware this is somewhat instable, because it uses an absolute path!!
0N/Ahetcats.TAGS: $(sources)
0N/A /home/ger/linux/ghc-5.04.2/bin/i386-unknown-linux/hasktags \
0N/A $(sources); mv TAGS $@; mv tags hetcats.tags
0N/A
0N/A###############################
0N/A### count lines of code
0N/Acount: $(sources)
0N/A wc -l $(sources)
0N/A###############################
0N/A### Documentation via haddock
0N/Adoc: docs/index.html
0N/A
0N/A# generate haddock documentation with links to sources
0N/Adocs/index.html: $(doc_sources)
0N/A $(HADDOCK) $(doc_sources) $(uni_sources) -o docs -h -v \
0N/A -i docs/base.haddock -i docs/parsec.haddock -s ../ \
0N/A -t 'hets -- a heterogenous Specification (CASL) tool set'
0N/A
0N/A# sources are not copied here
0N/Aapache_doc:
0N/A $(RM) docs/*.*
0N/A cvs up -d
0N/A $(MAKE) hets-opt
0N/A $(MAKE) doc
0N/A $(MAKE) post_doc4apache
0N/A
0N/Apost_doc4apache:
0N/A $(PERL) utils/post_process_docs.pl docs \
0N/A 'Common.Lib.Map.html:Common.Lib._Map.html'
0N/A cp docs/*.* a-docs/
0N/A
0N/A###############################
0N/A### release management
0N/A
0N/AderivedSources: $(drifted_files) $(happy_files) hetcats/Version.hs $(inline_axiom_files) Modal/ModalSystems.hs
0N/A
0N/Autils/DrIFT: $(DRIFT_deps)
0N/A (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT && \
0N/A strip ../DrIFT)
0N/A
0N/Autils/genRules: $(GENERATERULES_deps)
0N/A (cd utils/GenerateRules; \
0N/A $(HC) --make '-i../..:../DrIFT-src' -package text GenerateRules.hs -o ../genRules && \
0N/A strip ../genRules)
0N/A
0N/A$(INLINEAXIOMS): $(INLINEAXIOMS_deps)
0N/A $(HC) --make utils/InlineAxioms/InlineAxioms.hs \
0N/A $(HC_OPTS) -o $(INLINEAXIOMS)
0N/A strip $(INLINEAXIOMS)
0N/A
0N/Arelease:
0N/A $(RM) -r HetCATS
0N/A cvs -d :pserver:cvsread@cvs-agbkb.informatik.uni-bremen.de:/repository co HetCATS
0N/A $(RM) -r uni
0N/A ln -s ../uni uni
0N/A (cd HetCATS; $(MAKE) derivedSources; ./clean.sh; \
0N/A find . -name CVS -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
0N/A $(RM) clean.*; mv Makefile Makefile.orig; \
0N/A mv ReleaseMakefile Makefile)
0N/A tar cvf HetCATS.tar HetCATS
0N/A
0N/Ainstall-hets:
0N/A chmod g+w hets
0N/A cp -p hets $(INSTALLDIR)/versions/hets-`cat version_nr`
0N/A cp -p version_nr $(INSTALLDIR)
0N/A (cd $(INSTALLDIR); $(RM) hets; \
0N/A ln -s versions/hets-`cat version_nr` hets; $(RM) version_nr)
0N/A
0N/Ainstall: hets-opt install-hets
0N/A
0N/A#############################
0N/A### ATC DrIFT-rule generation
0N/A
0N/AgenRules: $(generated_rule_files) utils/genRules
0N/A
0N/A$(generated_rule_files): $(genrule_files) utils/genRules $(genrule_header_files) Makefile
0N/A $(MAKE) clean_genRules
0N/A $(foreach file,$(atc_files),$(gen_atc_files))
0N/A utils/genRules -r $(rule) -o CASL $(casl_files)
0N/A utils/genRules -r $(rule) -o HasCASL $(hascasl_files)
0N/A utils/genRules -r $(rule) -o Modal $(modal_files)
0N/A utils/genRules -r $(rule) -o CoCASL $(cocasl_files)
0N/A utils/genRules -r $(rule) -o COL $(col_files)
0N/A utils/genRules -r $(rule) -o CspCASL $(cspcasl_files)
0N/A
0N/Arule:= ShATermConvertible
0N/A
0N/Agen_atc_files = if [ -f ATC/$(basename $(basename $(notdir $(file)))).header.hs ]; then \
0N/A utils/genRules -r $(rule) -o ATC -h ATC/$(basename $(basename $(notdir $(file)))).header.hs $(file); \
0N/A else \
0N/A utils/genRules -r $(rule) -o ATC $(file); \
0N/A fi ;
0N/A
0N/Aatc_files := $(filter-out CASL/% HasCASL/% Modal/% CoCASL/% COL/% CspCASL/%,$(genrule_files))
0N/Acasl_files := $(filter CASL/% ,$(genrule_files))
0N/Ahascasl_files := $(filter HasCASL/% ,$(genrule_files))
0N/Amodal_files := $(filter Modal/% ,$(genrule_files))
0N/Acocasl_files := $(filter CoCASL/% ,$(genrule_files))
0N/Acol_files := $(filter COL/% ,$(genrule_files))
0N/Acspcasl_files := $(filter CspCASL/% ,$(genrule_files))
0N/A#haskell_files := $(filter $(PFE_TOOLDIR)/%,$(genrule_files))
0N/A
0N/Aclean_genRules:
0N/A $(RM) $(generated_rule_files)
0N/A
0N/A###############
0N/A### clean up
0N/A
0N/A### removes *.hi and *.o in all include directories
0N/Aclean: bin_clean
0N/A for p in $(subst :, ,$(CLEAN_PATH)) . ; do \
0N/A (cd $$p ; $(RM) *.hi *.o *.hspp) ; done
0N/A
0N/A### remove binaries
0N/Abin_clean:
0N/A $(RM) hets
0N/A $(RM) test_parser
0N/A $(RM) CASL/capa
0N/A $(RM) HasCASL/hacapa
0N/A $(RM) Haskell/hapa
0N/A $(RM) Haskell/hana
0N/A $(RM) Haskell/wrap
0N/A $(RM) Syntax/hetpa
0N/A $(RM) Static/hetana
0N/A $(RM) GUI/hetdg
0N/A $(RM) hetpa
0N/A $(RM) hetana
0N/A $(RM) hetdg
0N/A $(RM) atctest2
0N/A $(RM) atctest
0N/A $(RM) Common/annos
0N/A $(RM) Haskell/Hatchet/hatch
0N/A $(RM) ToHaskell/translateAna
0N/A $(RM) Taxonomy/taxonomyTool
0N/A
0N/A### additonally removes *.d (dependency files) in every include directory
0N/A### also delete *.d.bak (dependency file backups)
0N/Ad_clean: clean
0N/A for p in $(subst :, ,$(CLEAN_PATH)) . ; do \
0N/A (cd $$p ; $(RM) *.d *.d.bak) ; done
0N/A
0N/A### remove files also in own libraries
0N/Alib_clean:
0N/A for p in $(subst :, ,$(COMMONLIB_PATH)) . ; do \
0N/A (cd $$p ; $(RM) *.hi *.d *.o) ; done
0N/A
0N/A### additionally removes the files that define the sources-variable
0N/Areal_clean: bin_clean lib_clean clean
0N/A $(RM) hetcats-make sources_hetcats.mk
0N/A
0N/A### additionally removes files not in CVS tree
0N/Adistclean: real_clean clean_genRules d_clean
0N/A $(RM) hetcats/Version.hs
0N/A $(RM) $(drifted_file) $(inline_axiom_files)
0N/A $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
0N/A# $(RM) $(happy_files)
0N/A
0N/A####################################################################
0N/A### test targets
0N/A####################################################################
0N/A
0N/A### a parser to test annotation parser and Id parsers
0N/Atest_parser: Common/test_parser
0N/A
0N/ACommon/test_parser: Common/test_parser.hs Common/AS_Annotation.der.hs
0N/A $(RM) $@
0N/A $(HC) --make -o $@ $< $(HC_OPTS)
0N/A
0N/A### interactive
0N/Aghci:
0N/A $(HC)i $(HCI_OPTS)
0N/A
0N/A### christian's target
0N/A### CASL parser
0N/Acapa: CASL/capa
0N/A
0N/ACASL/capa: CASL/capa.hs Common/*.hs CASL/*.hs
0N/A $(RM) $@
0N/A $(HC) --make -o $@ $< $(HC_OPTS)
0N/A
0N/A### HasCASL parser
0N/Ahacapa: HasCASL/hacapa
0N/A
0N/AHasCASL/hacapa: HasCASL/hacapa.hs Common/*.hs HasCASL/*.hs
0N/A $(RM) $@
0N/A $(HC) --make -o $@ $< $(HC_OPTS)
0N/A
0N/A### Haskell parser
0N/Ahapa: Haskell/hapa
0N/A
0N/AHaskell/hapa: Haskell/hapa.hs Haskell/Hatchet/*.hs $(happy_files)
0N/A $(RM) $@
0N/A $(HC) --make -o $@ $< $(HC_OPTS)
0N/A
0N/A### Haskell analysis
0N/Ahana: Haskell/hana
0N/A
0N/AHaskell/hana: Haskell/hana.hs Haskell/HatAna.hs Haskell/Hatchet/*.hs $(happy_files)
0N/A $(RM) $@
0N/A $(HC) --make -o $@ $< $(HC_OPTS)
0N/A
0N/A### HetCASL parser
0N/Ahetpa: Syntax/hetpa.hs Syntax/*.hs
0N/A $(RM) $@
0N/A $(HC) --make -o $@ $< $(HC_OPTS)
0N/A
0N/A### HetCASL parser
0N/Ahetana: Static/hetana.hs Static/*.hs
0N/A $(RM) $@
0N/A $(HC) --make -o $@ $< $(HC_OPTS)
0N/A
0N/A### ATC test system
0N/Aatctest: ATC/ATCTest.hs ATC/*.hs
0N/A $(RM) $@
0N/A $(HC) --make -o $@ $< $(HC_OPTS)
0N/A
0N/Aatctest2: Common/ATerm/ATermLibTest.hs Common/SimpPretty.hs Common/ATerm/*.hs Common/Lib/*.hs
0N/A $(RM) $@
0N/A $(HC) --make -o $@ $< $(HC_OPTS)
0N/A
0N/A### ATerm.Lib test system
0N/Aatermlibtest: Common/ATerm/ATermLibTest.hs Common/ATerm/*.hs Common/SimpPretty.hs
0N/A $(RM) $@
0N/A $(HC) --make -o $@ $< $(HC_OPTS)
0N/A
0N/A### HetCASL with dev graph
0N/Ahetdg: GUI/hetdg.hs $(drifted_files) *.hs
0N/A $(RM) $@
0N/A $(HC) --make -o $@ $< $(HC_OPTS) -package-conf ../uni/uni-package.conf -package uni-davinci -package uni-server
0N/A
0N/A
0N/A### run tests in other directories
0N/Acheck: hetcats
0N/A for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
0N/A
0N/A####################################################################
0N/A## Preparing the version of HetCATS
0N/Ahetcats/Version.hs: hetcats/Version.in version_nr
0N/A $(PERL) utils/build_version.pl version_nr < hetcats/Version.in > $@
0N/A
0N/A## two hardcoded dependencies for a correct generation of Version.hs
0N/Ahetcats/Options.hs hetcats/WriteFn.hs hetcats/ReadFn.hs: hetcats/Version.hs
0N/Ahets.hs: hetcats/Version.hs
0N/A####################################################################
0N/A## rules for DrIFT
0N/A
0N/A%.hs: %.ly
0N/A $(HAPPY) $<
0N/A
0N/A%.hs: %.der.hs utils/DrIFT
0N/A $(DRIFT) $(DRIFT_OPTS) $< > $@
0N/A
0N/A## rules for inlineAxioms
0N/A%.hs: %.inline.hs $(INLINEAXIOMS)
0N/A $(INLINEAXIOMS) $< > $@
0N/A
0N/A## rule for cpp and haddock
0N/A%.hspp: %.hs
0N/A $(HC) -E -cpp -DUNI_PACKAGE -optP -P $<
0N/A
0N/A## compiling rules for object and interface files
0N/A%.o %.hi: %.hs
0N/A $(HC) -c $< $(HC_OPTS)
0N/A
0N/A%.o %.hi: %.lhs
0N/A $(HC) -c $< $(HC_OPTS)
0N/A
0N/A## compiling rules for dependencies
0N/A%.d : %.hs
0N/A $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
0N/A
0N/A%.d : %.lhs
0N/A $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
0N/A
0N/A## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
0N/AModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in utils/genTransMFormFunc.pl $(INLINEAXIOMS)
0N/A $(PERL) utils/genTransMFormFunc.pl $< $@
0N/A
0N/A
0N/A####################################################################
0N/A## Setting a global search path (for dependency files)
0N/A
0N/Aifneq ($(MAKECMDGOALS),clean)
0N/Aifneq ($(MAKECMDGOALS),bin_clean)
0N/Aifneq ($(MAKECMDGOALS),lib_clean)
0N/Aifneq ($(MAKECMDGOALS),d_clean)
0N/Aifneq ($(MAKECMDGOALS),real_clean)
0N/Aifneq ($(MAKECMDGOALS),distclean)
0N/Aifneq ($(MAKECMDGOALS),genRules)
0N/Aifneq ($(MAKECMDGOALS),utils/genRules)
0N/Aifneq ($(MAKECMDGOALS),derivedSources)
0N/Aifneq ($(MAKECMDGOALS),release)
0N/Aifneq ($(MAKECMDGOALS),clean_genRules)
0N/Aifeq ($(MAKECMDGOALS),hets-old)
0N/A## include every .d file in INCLUDE_PATH
0N/A-include $(objects:.o=.d)
0N/Aendif
0N/A
0N/Asources_hetcats.mk: hetcats-make hetcats/Version.hs hets.hs utils/create_sources.pl $(drifted_files) $(happy_files)
0N/A $(PERL) utils/create_sources.pl hetcats-make sources_hetcats.mk
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/Aendif
0N/A