1 # -----------------------------------------------------------------------------
3 # (c) 2009 The University of Glasgow
5 # This file is part of the GHC build system.
7 # To understand how the build system works and how to modify it, see
8 # http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
9 # http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
11 # -----------------------------------------------------------------------------
13 $(MKDEPENDC) : utils/mkdependC/mkdependC.prl $(MKDIRHIER)
14 "$(MKDIRHIER)" $(dir $@)
16 echo '#!$(PERL)' >> $@
17 echo '$$DEFAULT_TMPDIR = "$(DEFAULT_TMPDIR)";' >> $@
18 echo '$$CPP = "$(CPP)";' >> $@
19 echo '$$BUILDPLATFORM = "$(BUILDPLATFORM)";' >> $@
20 cat utils/mkdependC/mkdependC.prl >> $@
23 $(eval $(call all-target,utils/mkdependC,$(MKDEPENDC)))
24 $(eval $(call clean-target,utils/mkdependC,,$(MKDEPENDC)))