Makefile revision b19eec475ae84d2ae2b45c495d96f666f5ce4360
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Author: Klaus L�ttich
199767f8919635c4928607450d9e0abb932109ceToomas Soome# This Makefile will compile the new hetcats system and provides also
199767f8919635c4928607450d9e0abb932109ceToomas Soome# targets for test programs during implementation phases.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# !!! Note: This makefile is written for GNU make !!!
199767f8919635c4928607450d9e0abb932109ceToomas Soome# (gmake on solaris ; make on linux)
199767f8919635c4928607450d9e0abb932109ceToomas Soome####################################################################
199767f8919635c4928607450d9e0abb932109ceToomas Soome## Some varibles, which control the compilation
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMMONLIB_PATH = Common/Lib:Common/Lib/Parsec:Common/ATerm
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCLEAN_PATH = Common:Logic:CASL:Syntax:Static:GUI:HasCASL:Haskell:Haskell/Language:Modal:CspCASL:ATC:ToHaskell:Proofs:Comorphisms:$(INCLUDE_PATH):Haskell/Hatchet
199767f8919635c4928607450d9e0abb932109ceToomas SoomeDRIFT_ENV = DERIVEPATH='.:ghc:hetcats:/home/linux-bkb/ghc/ghc-latest/lib/ghc-6.0.1/imports'
#.PRECIOUS: sources_hetcats.mk
$(RM) $@
--read-interface=http://www.haskell.org/ghc/docs/latest/html/libraries/base,/home/linux-bkb/ghc/ghc-6.0.1/share/ghc-6.0.1/html/base/base.haddock \
utils/genRules -r $(rule) -o ATC -h ATC/$(basename $(basename $(notdir $(file)))).header.hs $(file); \
### also delete *.d.bak (dependency file backups)
$(RM) $@
ghci:
$(RM) $@
$(RM) $@
$(RM) $@
$(RM) $@
$(RM) $@
$(RM) $@
$(RM) $@
### ATerm.Lib test system
$(RM) $@
$(RM) $@
$(HC) --make -o $@ $< $(HC_OPTS) -package-conf ../uni/uni-package.conf -package uni-davinci -package uni-server
## two hardcoded dependencies for a correct generation of Version.hs
$(HAPPY) $<
#%.hs: %.ag.hs
$(DRIFT) $< > $@
%.d : %.hs
%.d : %.lhs