syslog support in rsync daemon has been broken since I added the "log
[rsync/rsync.git] / Makefile.in
index fb9956b..246e465 100644 (file)
@@ -3,8 +3,8 @@
 
 prefix=@prefix@
 exec_prefix=@exec_prefix@
-INSTALL_BIN=$(exec_prefix)/bin
-INSTALL_MAN=$(prefix)/man
+bindir=@bindir@
+mandir=@mandir@
 
 LIBS=@LIBS@
 CC=@CC@
@@ -12,15 +12,15 @@ CFLAGS=@CFLAGS@
 
 INSTALLCMD=@INSTALL@
 
-VPATH=@srcdir@
 srcdir=@srcdir@
+VPATH=$(srcdir)
 SHELL=/bin/sh
 
 
 .SUFFIXES:
 .SUFFIXES: .c .o
 
-LIBOBJ=lib/getopt.o lib/fnmatch.o lib/compat.o
+LIBOBJ=lib/getopt.o lib/fnmatch.o lib/compat.o lib/snprintf.o
 ZLIBOBJ=zlib/deflate.o zlib/infblock.o zlib/infcodes.o zlib/inffast.o \
        zlib/inflate.o zlib/inftrees.o zlib/infutil.o zlib/trees.o \
        zlib/zutil.o zlib/adler32.o
@@ -38,12 +38,15 @@ all: rsync
 man: rsync.1 rsyncd.conf.5
 
 install: all
-       -mkdir -p ${INSTALL_BIN}
-       ${INSTALLCMD} -m 755 rsync ${INSTALL_BIN}
-       -mkdir -p ${INSTALL_MAN}/man1
-       -mkdir -p ${INSTALL_MAN}/man5
-       ${INSTALLCMD} -m 644 $(srcdir)/rsync.1 ${INSTALL_MAN}/man1
-       ${INSTALLCMD} -m 644 $(srcdir)/rsyncd.conf.5 ${INSTALL_MAN}/man5
+       -mkdir -p ${bindir}
+       ${INSTALLCMD} -m 755 rsync ${bindir}
+       -mkdir -p ${mandir}/man1
+       -mkdir -p ${mandir}/man5
+       ${INSTALLCMD} -m 644 $(srcdir)/rsync.1 ${mandir}/man1
+       ${INSTALLCMD} -m 644 $(srcdir)/rsyncd.conf.5 ${mandir}/man5
+
+install-strip:
+       $(MAKE) INSTALLCMD='$(INSTALLCMD) -s' install
 
 rsync: $(OBJS)
        $(CC) $(CFLAGS) $(LDFLAGS) -o rsync $(OBJS) $(LIBS)
@@ -60,3 +63,11 @@ proto:
 clean:
        rm -f *~ $(OBJS) rsync config.cache config.log config.status
 
+
+# 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