summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2020-07-29 11:51:55 -0700
committerWayne Davison <wayne@opencoder.net>2020-07-29 11:51:55 -0700
commitdfe3b77cb5c51358749e8613ba90210c2595fc99 (patch)
treea7e016bc730abcdd21c1bd6124d122090794bbce /Makefile.in
parentcbe3b2bfe5ced19838e9175b07fbfa9a6c2f32d2 (diff)
downloadrsync-dfe3b77cb5c51358749e8613ba90210c2595fc99.tar.gz
Some Makefile improvements.
- Improve distclean. - Remove proto.h from GENFILES (we don't need to distribute it). - Improve finddead target.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in20
1 files changed, 8 insertions, 12 deletions
diff --git a/Makefile.in b/Makefile.in
index 1c040172..1c53af6a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -32,7 +32,7 @@ SHELL=/bin/sh
SIMD_x86_64=simd-checksum-x86_64.o
ASM_x86_64=lib/md5-asm-x86_64.o
-GENFILES=configure.sh aclocal.m4 config.h.in proto.h proto.h-tstamp rsync.1 rsync.1.html \
+GENFILES=configure.sh aclocal.m4 config.h.in rsync.1 rsync.1.html \
rsync-ssl.1 rsync-ssl.1.html rsyncd.conf.5 rsyncd.conf.5.html
HEADERS=byteorder.h config.h errcode.h proto.h rsync.h ifuncs.h itypes.h inums.h \
lib/pool_alloc.h lib/mdigest.h lib/md-defines.h version.h
@@ -250,7 +250,7 @@ rsyncd.conf.5: rsyncd.conf.5.md md2man version.h Makefile
clean: cleantests
rm -f *~ $(OBJS) $(CHECK_PROGS) $(CHECK_OBJS) $(CHECK_SYMLINKS) \
rounding rounding.h *.old rsync*.1 rsync*.5 rsync*.html \
- daemon-parm.h help-*.h default-*.h
+ daemon-parm.h help-*.h default-*.h proto.h proto.h-tstamp
.PHONY: cleantests
cleantests:
@@ -261,16 +261,11 @@ cleantests:
# the source directory.
.PHONY: distclean
distclean: clean
- rm -f Makefile config.h config.status
- rm -f stunnel-rsyncd.conf
- rm -f lib/dummy popt/dummy zlib/dummy
- rm -f $(srcdir)/Makefile $(srcdir)/config.h $(srcdir)/config.status
- rm -f $(srcdir)/lib/dummy $(srcdir)/popt/dummy $(srcdir)/zlib/dummy
- rm -f config.cache config.log
- rm -f $(srcdir)/config.cache $(srcdir)/config.log
- rm -f shconfig $(srcdir)/shconfig
- rm -f $(GENFILES)
- rm -rf autom4te.cache
+ for dir in $(srcdir) . ; do \
+ (cd "$$dir" && rm -rf Makefile config.h config.status stunnel-rsyncd.conf \
+ lib/dummy popt/dummy zlib/dummy config.cache config.log shconfig \
+ $(GENFILES) autom4te.cache) ; \
+ done
# 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
@@ -280,6 +275,7 @@ 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
+ @rm nmused.txt nmfns.txt
# 'check' is the GNU name, 'test' is the name for everybody else :-)
.PHONY: test