Make all the rsync objects dependent on all the header files except the
authorDavid Dykstra <dwd@samba.org>
Mon, 10 Jan 2000 22:39:45 +0000 (22:39 +0000)
committerDavid Dykstra <dwd@samba.org>
Mon, 10 Jan 2000 22:39:45 +0000 (22:39 +0000)
zlib header fiels in Makefile.in.  I've been burned several times because
objects did not get rebuilt when header files changed.

Makefile.in

index 03c1ca6..353caa3 100644 (file)
@@ -20,6 +20,8 @@ SHELL=/bin/sh
 .SUFFIXES:
 .SUFFIXES: .c .o
 
+HEADS=byteorder.h config.h errcode.h proto.h rsync.h version.h \
+       lib/fnmatch.h lib/getopt.h lib/mdfour.h
 LIBOBJ=lib/getopt.o lib/fnmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o
 ZLIBOBJ=zlib/deflate.o zlib/infblock.o zlib/infcodes.o zlib/inffast.o \
        zlib/inflate.o zlib/inftrees.o zlib/infutil.o zlib/trees.o \
@@ -53,6 +55,8 @@ install-strip:
 rsync: $(OBJS)
        $(CC) $(CFLAGS) $(LDFLAGS) -o rsync $(OBJS) $(LIBS)
 
+$(OBJS): $(HEADS)
+
 rsync.1: rsync.yo
        yodl2man -o rsync.1 rsync.yo