summaryrefslogtreecommitdiff
path: root/utils/mkdependC/ghc.mk
blob: 4f43cc72dc8de21150ad41ac662a4921acf4cc11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$(MKDEPENDC) : utils/mkdependC/mkdependC.prl $(MKDIRHIER)
	$(MKDIRHIER) $(dir $@)
	$(RM) -f $@
	echo '#!$(PERL)'                               >> $@
	echo '$$DEFAULT_TMPDIR = "$(DEFAULT_TMPDIR)";' >> $@
	echo '$$CPP            = "$(CPP)";'            >> $@
	echo '$$BUILDPLATFORM  = "$(BUILDPLATFORM)";'  >> $@
	cat utils/mkdependC/mkdependC.prl              >> $@
	$(EXECUTABLE_FILE) $@

$(eval $(call all-target,utils/mkdependC,$(MKDEPENDC)))
$(eval $(call clean-target,utils/mkdependC,,$(MKDEPENDC)))