this is a little test script to test some of rsyncs features
[rsync.git] / Makefile.in
1 # Makefile for rsync. This is processed by configure to produce the final
2 # Makefile
3
4 prefix=@prefix@
5 exec_prefix=@exec_prefix@
6 INSTALL_BIN=$(exec_prefix)/bin
7 INSTALL_MAN=$(prefix)/man
8
9 LIBS=@LIBS@
10 CC=@CC@
11 CFLAGS=@CFLAGS@
12
13 INSTALLCMD=@INSTALL@
14
15 VPATH=@srcdir@
16 srcdir=@srcdir@
17 SHELL=/bin/sh
18
19
20 .SUFFIXES:
21 .SUFFIXES: .c .o
22
23 LIBOBJ=lib/getopt.o lib/fnmatch.o lib/zlib.o lib/compat.o
24 OBJS1=rsync.o exclude.o util.o md4.o main.o checksum.o match.o syscall.o
25 OBJS=$(OBJS1) flist.o io.o compat.o hlink.o token.o uidlist.o $(LIBOBJ)
26
27 # note that the -I. is needed to handle config.h when using VPATH
28 .c.o:
29         $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< -o $@
30
31 all: rsync
32
33 install: all
34         -mkdir -p ${INSTALL_BIN}
35         ${INSTALLCMD} -m 755 rsync ${INSTALL_BIN}
36         -mkdir -p ${INSTALL_MAN}/man1
37         ${INSTALLCMD} -m 644 $(srcdir)/rsync.1 ${INSTALL_MAN}/man1
38
39 rsync: $(OBJS)
40         $(CC) $(CFLAGS) -o rsync $(OBJS) $(LIBS)
41
42 proto:
43         cat *.c | awk -f mkproto.awk > proto.h
44
45 clean:
46         rm -f *~ $(OBJS) rsync config.cache config.log config.status
47
48 dist:
49         tar --exclude-from .ignore -czf dist.tar.gz .
50         -mkdir rsync-$(VERSION)
51         (cd rsync-$(VERSION) ; tar xzf ../dist.tar.gz)
52         tar -czf rsync-$(VERSION).tar.gz rsync-$(VERSION)
53         rm -f dist.tar.gz
54         echo rsync-$(VERSION) >> .cvsignore