build: generate :: rules for automatic dependencies
authorStefan Metzmacher <metze@samba.org>
Tue, 26 Aug 2008 08:32:28 +0000 (10:32 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 26 Aug 2008 09:12:32 +0000 (11:12 +0200)
metze
(This used to be commit 66d8da17a4c3543e133452f9a87702a2a8fb609c)

source4/build/make/rules.mk

index f8df8f0b5353e3053f27b14323176a41d93b97e8..0beb0e2e111dfc75c8412dfef09ae222702df09a 100644 (file)
@@ -2,10 +2,10 @@
 # This relies on GNU make.
 #
 # Dependencies command
-DEPENDS = $(CC) -M -MG -MP -MT $(<:.c=.o) -MT $@ \
+DEPENDS = $(CC) -M -MG -MP -MT $(<:.c=.o) -MT $@ -MT : \
     $(CFLAGS) $(CPPFLAGS) $< -o $@
 # Dependencies for host objects
-HDEPENDS = $(CC) -M -MG -MP -MT $(<:.c=.ho) -MT $@ \
+HDEPENDS = $(CC) -M -MG -MP -MT $(<:.c=.ho) -MT $@ -MT : \
     $(HOSTCC_FLAGS) $(CPPFLAGS) $< -o $@
 # Dependencies for precompiled headers
 PCHDEPENDS = $(CC) -M -MG -MT include/includes.h.gch -MT $@ \