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