Add a header to all build system files:
[ghc-hetmet.git] / utils / mkdependC / ghc.mk
1 # -----------------------------------------------------------------------------
2 #
3 # (c) 2009 The University of Glasgow
4 #
5 # This file is part of the GHC build system.
6 #
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
10 #
11 # -----------------------------------------------------------------------------
12
13 $(MKDEPENDC) : utils/mkdependC/mkdependC.prl $(MKDIRHIER)
14         $(MKDIRHIER) $(dir $@)
15         $(RM) -f $@
16         echo '#!$(PERL)'                               >> $@
17         echo '$$DEFAULT_TMPDIR = "$(DEFAULT_TMPDIR)";' >> $@
18         echo '$$CPP            = "$(CPP)";'            >> $@
19         echo '$$BUILDPLATFORM  = "$(BUILDPLATFORM)";'  >> $@
20         cat utils/mkdependC/mkdependC.prl              >> $@
21         $(EXECUTABLE_FILE) $@
22
23 $(eval $(call all-target,utils/mkdependC,$(MKDEPENDC)))
24 $(eval $(call clean-target,utils/mkdependC,,$(MKDEPENDC)))