- rm -f *~ $(OBJS) rsync config.cache config.log config.status
-
-dist:
- tar --exclude-from .ignore -czf dist.tar.gz .
- -mkdir rsync-$(VERSION)
- (cd rsync-$(VERSION) ; tar xzf ../dist.tar.gz)
- tar -czf rsync-$(VERSION).tar.gz rsync-$(VERSION)
- rm -f dist.tar.gz
- echo rsync-$(VERSION) >> .cvsignore
+ rm -f *~ $(OBJS) rsync
+
+distclean: clean
+ rm -f config.h config.cache config.status Makefile
+
+
+# this target is really just for my use. It only works on a limited
+# range of machines and is used to produce a list of potentially
+# dead (ie. unused) functions in the code. (tridge)
+finddead:
+ nm *.o */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
+ nm *.o */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
+ comm -13 nmused.txt nmfns.txt
+
+# 'check' is the GNU name, 'test' is the name for everybody else :-)
+.PHONY: check test
+
+test: check
+
+check:
+ rsync_bin=`pwd`/rsync testdir=$(srcdir)/testsuite $(srcdir)/testsuite/master.test