Add safety check for local --remove-source-files.
[rsync.git] / prepare-source.mak
index b54beeeef427c45c499976445c18b9512bcae6db..12027cb10b83904980c5b4996a762af9f700bcaa 100644 (file)
@@ -1,24 +1,13 @@
-gen: configure config.h.in proto.h man
+SHELL=/bin/sh
 
-configure: configure.in aclocal.m4
-       autoconf
+conf: configure.sh config.h.in
+.PHONY: conf
 
-config.h.in: configure.in aclocal.m4
-       autoheader
-       touch config.h.in
+aclocal.m4: m4/*.m4
+       aclocal -I m4
 
-proto.h: *.c lib/compat.c
-       cat *.c lib/compat.c | awk -f mkproto.awk >proto.h.new
-       if diff proto.h proto.h.new >/dev/null; then \
-         rm proto.h.new; \
-       else \
-         mv proto.h.new proto.h; \
-       fi
+configure.sh: configure.ac aclocal.m4
+       autoconf -o configure.sh
 
-man: rsync.1 rsyncd.conf.5
-
-rsync.1: rsync.yo
-       yodl2man -o rsync.1 rsync.yo
-
-rsyncd.conf.5: rsyncd.conf.yo
-       yodl2man -o rsyncd.conf.5 rsyncd.conf.yo
+config.h.in: configure.ac aclocal.m4
+       autoheader && touch config.h.in