Add safety check for local --remove-source-files.
[rsync.git] / prepare-source.mak
index 9acd3e4c2e859e5b27f1c5831022557f57723c2a..12027cb10b83904980c5b4996a762af9f700bcaa 100644 (file)
@@ -1,27 +1,13 @@
-gen: gen_no_man man
+SHELL=/bin/sh
 
-gen_no_man: configure.sh config.h.in proto.h
+conf: configure.sh config.h.in
+.PHONY: conf
 
-configure.sh: configure.in aclocal.m4
+aclocal.m4: m4/*.m4
+       aclocal -I m4
+
+configure.sh: configure.ac aclocal.m4
        autoconf -o configure.sh
 
-config.h.in: configure.in aclocal.m4
+config.h.in: configure.ac aclocal.m4
        autoheader && touch config.h.in
-
-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 2>&1; then \
-         rm proto.h.new; \
-       else \
-         mv proto.h.new proto.h; \
-       fi
-
-man: rsync.1 rsyncd.conf.5
-
-rsync.1: rsync.yo
-       yodl2man -o rsync.1 rsync.yo
-       -./tweak_manpage rsync.1
-
-rsyncd.conf.5: rsyncd.conf.yo
-       yodl2man -o rsyncd.conf.5 rsyncd.conf.yo
-       -./tweak_manpage rsyncd.conf.5