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