- Add install-strip target as per gnu makefile standards
Contributed by Fred Sanchez <wsanchez@apple.com>
prefix=@prefix@
exec_prefix=@exec_prefix@
prefix=@prefix@
exec_prefix=@exec_prefix@
-INSTALL_BIN=$(exec_prefix)/bin
-INSTALL_MAN=$(prefix)/man
+bindir=@bindir@
+mandir=@mandir@
man: rsync.1 rsyncd.conf.5
install: all
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)
rsync: $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o rsync $(OBJS) $(LIBS)