Make sure that the test programs get rebuilt when a header
authorWayne Davison <wayned@samba.org>
Fri, 30 Nov 2007 07:44:40 +0000 (23:44 -0800)
committerWayne Davison <wayned@samba.org>
Fri, 30 Nov 2007 07:44:40 +0000 (23:44 -0800)
file changes.

Makefile.in

index 8d814ee..9e61f4e 100644 (file)
@@ -75,8 +75,6 @@ install-strip:
 rsync$(EXEEXT): $(OBJS)
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
 
-$(OBJS): $(HEADERS)
-
 flist.o: rounding.h
 
 rounding.h: mkrounding$(EXEEXT)
@@ -104,6 +102,8 @@ T_UNSAFE_OBJ = t_unsafe.o syscall.o util.o t_stub.o lib/compat.o lib/snprintf.o
 t_unsafe$(EXEEXT): $(T_UNSAFE_OBJ)
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(T_UNSAFE_OBJ) $(LIBS)
 
+$(OBJS) $(TLS_OBJ) $(TRIMSLASH_OBJ) $(T_UNSAFE_OBJ): $(HEADERS)
+
 gen: conf proto.h man
 
 gensend: gen
@@ -186,7 +186,7 @@ check: all $(CHECK_PROGS) $(CHECK_SYMLINKS)
 check29: all $(CHECK_PROGS) $(CHECK_SYMLINKS)
        rsync_bin=`pwd`/rsync$(EXEEXT) $(srcdir)/runtests.sh --protocol=29
 
-wildtest.o: wildtest.c lib/wildmatch.c rsync.h
+wildtest.o: wildtest.c lib/wildmatch.c rsync.h config.h
 wildtest$(EXEEXT): wildtest.o lib/compat.o lib/snprintf.o @BUILD_POPT@
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ wildtest.o lib/compat.o lib/snprintf.o @BUILD_POPT@ $(LIBS)