fixed a bug in the handling of the new --relative option. The file was
[rsync/rsync.git] / Makefile.in
... / ...
CommitLineData
1# Makefile for rsync. This is processed by configure to produce the final
2# Makefile
3
4INSTALL_BIN=@prefix@/bin
5INSTALL_MAN=@prefix@/man
6
7LIBS=@LIBS@
8CC=@CC@
9CFLAGS=@CFLAGS@
10
11INSTALLCMD=@INSTALL@
12
13SRC=@srcdir@
14SHELL=/bin/sh
15
16
17.SUFFIXES:
18.SUFFIXES: .c .o
19
20LIBOBJ=lib/getopt.o lib/fnmatch.o lib/zlib.o
21OBJS1=rsync.o exclude.o util.o md4.o main.o checksum.o match.o
22OBJS=$(OBJS1) flist.o io.o compat.o hlink.o token.o $(LIBOBJ)
23
24.c.o:
25 $(CC) $(CFLAGS) -c $*.c -o $*.o
26
27all: rsync
28
29install: all
30 ${INSTALLCMD} -m 755 rsync ${INSTALL_BIN}
31 ${INSTALLCMD} -m 644 rsync.1 ${INSTALL_MAN}/man1
32
33rsync: $(OBJS)
34 $(CC) $(CFLAGS) -o rsync $(OBJS) $(LIBS)
35
36proto:
37 cat *.c | awk -f mkproto.awk > proto.h
38
39clean:
40 rm -f *~ $(OBJS) rsync config.cache config.log config.status
41
42dist:
43 tar --exclude-from .ignore -czf dist.tar.gz .
44 -mkdir rsync-$(VERSION)
45 (cd rsync-$(VERSION) ; tar xzf ../dist.tar.gz)
46 tar -czf rsync-$(VERSION).tar.gz rsync-$(VERSION)
47 rm -f dist.tar.gz
48 echo rsync-$(VERSION) >> .cvsignore