mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-11 02:48:35 -04:00
- handle directory ownership and permissions much better. - fix bug where links caused the permissions of files to be set incorrectly - override the default umask in setting file permissions - better handling -o and -D being passed to non-root users - handle rsync to a destination of / - fix the handling of mismatched file types at either end of the link. For example, if the destination is a link and the source is not.
50 lines
1017 B
Makefile
50 lines
1017 B
Makefile
# Makefile for rsync. This is processed by configure to produce the final
|
|
# Makefile
|
|
|
|
INSTALL_BIN=@prefix@/bin
|
|
INSTALL_MAN=@prefix@/man
|
|
|
|
CCOPTFLAGS = -O
|
|
|
|
LIBS=@LIBS@
|
|
CC=@CC@ $(CCOPTFLAGS)
|
|
|
|
INSTALLCMD=@INSTALL@
|
|
|
|
SRC=@srcdir@
|
|
SHELL=/bin/sh
|
|
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .c .o
|
|
|
|
LIBOBJ=lib/getopt.o lib/fnmatch.o lib/zlib.o
|
|
OBJS1=rsync.o exclude.o util.o md4.o main.o checksum.o match.o
|
|
OBJS=$(OBJS1) flist.o io.o compat.o hlink.o token.o $(LIBOBJ)
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $*.c -o $*.o
|
|
|
|
all: rsync
|
|
|
|
install: all
|
|
${INSTALLCMD} -m 755 rsync ${INSTALL_BIN}
|
|
${INSTALLCMD} -m 644 rsync.1 ${INSTALL_MAN}/man1
|
|
|
|
rsync: $(OBJS)
|
|
$(CC) $(CFLAGS) -o rsync $(OBJS) $(LIBS)
|
|
|
|
proto:
|
|
cat *.c | awk -f mkproto.awk > proto.h
|
|
|
|
clean:
|
|
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
|