Use "order only constraints" for directories
[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 | $$(dir $$@)/.
14         "$(RM)" $(RM_OPTS) $@
15         echo '#!$(PERL)'                               >> $@
16         echo '$$DEFAULT_TMPDIR = "$(DEFAULT_TMPDIR)";' >> $@
17         echo '$$CPP            = "$(CPP)";'            >> $@
18         echo '$$BUILDPLATFORM  = "$(BUILDPLATFORM)";'  >> $@
19         cat utils/mkdependC/mkdependC.prl              >> $@
20         $(EXECUTABLE_FILE) $@
21
22 $(eval $(call all-target,utils/mkdependC,$(MKDEPENDC)))
23 $(eval $(call clean-target,utils/mkdependC,,$(MKDEPENDC)))