X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/0582cdae8dfedc0435dc24de4040509307b4287a..5303941021034f9b6272d5c1512096e125aece1e:/Makefile.in diff --git a/Makefile.in b/Makefile.in index 2e2f1cad..69b6db49 100644 --- a/Makefile.in +++ b/Makefile.in @@ -2,6 +2,7 @@ # Makefile prefix=@prefix@ +datarootdir=@datarootdir@ exec_prefix=@exec_prefix@ bindir=@bindir@ mandir=@mandir@ @@ -90,29 +91,14 @@ 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) -gen: $(srcdir)/configure $(srcdir)/config.h.in proto man +gen: + cd $(srcdir) && $(MAKE) -f prepare-source.mak gen -man: $(srcdir)/rsync.1 $(srcdir)/rsyncd.conf.5 - -$(srcdir)/configure: $(srcdir)/configure.in $(srcdir)/aclocal.m4 - cd $(srcdir); autoconf - -$(srcdir)/config.h.in: $(srcdir)/configure.in $(srcdir)/aclocal.m4 - cd $(srcdir); autoheader - -$(srcdir)/rsync.1: $(srcdir)/rsync.yo - yodl2man -o $(srcdir)/rsync.1 $(srcdir)/rsync.yo - -$(srcdir)/rsyncd.conf.5: $(srcdir)/rsyncd.conf.yo - yodl2man -o $(srcdir)/rsyncd.conf.5 $(srcdir)/rsyncd.conf.yo +man: + cd $(srcdir) && $(MAKE) -f prepare-source.mak man proto: - cat $(srcdir)/*.c $(srcdir)/lib/compat.c | awk -f $(srcdir)/mkproto.awk >$(srcdir)/proto.h.new - if diff $(srcdir)/proto.h $(srcdir)/proto.h.new >/dev/null; then \ - rm $(srcdir)/proto.h.new; \ - else \ - mv $(srcdir)/proto.h.new $(srcdir)/proto.h; \ - fi + cd $(srcdir) && $(MAKE) -f prepare-source.mak proto.h clean: cleantests rm -f *~ $(OBJS) $(TLS_OBJ) $(CHECK_PROGS) $(CHECK_OBJS) @@ -157,11 +143,11 @@ test: check # might lose in the future where POSIX diverges from old sh. check: all $(CHECK_PROGS) - POSIXLY_CORRECT=1 TOOLDIR=`pwd` rsync_bin=`pwd`/rsync$(EXEEXT) srcdir="$(srcdir)" $(srcdir)/runtests.sh + rsync_bin=`pwd`/rsync$(EXEEXT) $(srcdir)/runtests.sh wildtest.o: wildtest.c lib/wildmatch.c rsync.h -wildtest$(EXEEXT): wildtest.o - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ wildtest.o @BUILD_POPT@ $(LIBS) +wildtest$(EXEEXT): wildtest.o lib/compat.o lib/snprintf.o + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ wildtest.o lib/compat.o lib/snprintf.o @BUILD_POPT@ $(LIBS) # This does *not* depend on building or installing: you can use it to # check a version installed from a binary or some other source tree,