r8838: Add ugly hack to prevent make from barfing out because it doesn't know
authorJelmer Vernooij <jelmer@samba.org>
Thu, 28 Jul 2005 19:40:07 +0000 (19:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:30:10 +0000 (13:30 -0500)
how to create heimdal C files.
(This used to be commit 403ed4abf5d9061c1d8e66e94766ae1ccefb585d)

source4/build/smb_build/makefile.pm

index 01d2de770a10f049a832da6293b7430dddeb1240..197f506e2aac197ff819d14fe591b710f09bae65 100644 (file)
@@ -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__
 }