From 294d2f4f7845cb5a111a3da6f1008ad678dc963d Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 28 Jul 2005 19:40:07 +0000 Subject: r8838: Add ugly hack to prevent make from barfing out because it doesn't know how to create heimdal C files. (This used to be commit 403ed4abf5d9061c1d8e66e94766ae1ccefb585d) --- source4/build/smb_build/makefile.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source4/build/smb_build') diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm index 01d2de770a..197f506e2a 100644 --- a/source4/build/smb_build/makefile.pm +++ b/source4/build/smb_build/makefile.pm @@ -216,10 +216,16 @@ __EOD__ sub _prepare_depend_CC_rule() { return << '__EOD__'; -.c.d: + +%.d: %.c @echo "Generating dependencies for $<" @$(CC) -MM -MG -MT $(<:.c=.o) -MF $@ $(CFLAGS) $< +# Ugly fallback used for generating a dependency file when +# make doesn't know how to build the related C file +%.d: + @touch $@ + __EOD__ } -- cgit