added this so the lib directory gets created when using VPATH
[rsync/rsync.git] / Makefile.in
... / ...
CommitLineData
1# Makefile for rsync. This is processed by configure to produce the final
2# Makefile
3
4prefix=@prefix@
5exec_prefix=@exec_prefix@
6INSTALL_BIN=$(exec_prefix)/bin
7INSTALL_MAN=$(prefix)/man
8
9LIBS=@LIBS@
10CC=@CC@
11CFLAGS=@CFLAGS@
12
13INSTALLCMD=@INSTALL@
14
15VPATH=@srcdir@
16srcdir=@srcdir@
17SHELL=/bin/sh
18
19
20.SUFFIXES:
21.SUFFIXES: .c .o
22
23LIBOBJ=lib/getopt.o lib/fnmatch.o lib/zlib.o lib/compat.o
24OBJS1=rsync.o exclude.o util.o md4.o main.o checksum.o match.o syscall.o
25OBJS=$(OBJS1) flist.o io.o compat.o hlink.o token.o uidlist.o $(LIBOBJ)
26
27.c.o:
28 $(CC) -I$(srcdir) $(CFLAGS) -c $*.c -o $*.o
29
30all: rsync
31
32install: all
33 -mkdir -p ${INSTALL_BIN}
34 ${INSTALLCMD} -m 755 rsync ${INSTALL_BIN}
35 -mkdir -p ${INSTALL_MAN}/man1
36 ${INSTALLCMD} -m 644 $(srcdir)/rsync.1 ${INSTALL_MAN}/man1
37
38rsync: $(OBJS)
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
47dist:
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