2002-04-11 00:29:30 +02:00
|
|
|
srcdir=@srcdir@
|
|
|
|
VPATH=@srcdir@
|
|
|
|
|
2002-03-31 11:02:21 +02:00
|
|
|
prefix=@prefix@
|
|
|
|
exec_prefix=@exec_prefix@
|
|
|
|
bindir=@bindir@
|
|
|
|
mandir=@mandir@
|
|
|
|
INSTALLCMD=@INSTALL@
|
|
|
|
|
|
|
|
CC=@CC@
|
2002-04-11 00:29:30 +02:00
|
|
|
CFLAGS=@CFLAGS@ -I.
|
2002-03-31 11:02:21 +02:00
|
|
|
|
2002-03-31 16:31:30 +02:00
|
|
|
OBJS= ccache.o mdfour.o hash.o execute.o util.o args.o stats.o \
|
|
|
|
cleanup.o snprintf.o unify.o
|
2002-03-31 11:02:21 +02:00
|
|
|
HEADERS = ccache.h mdfour.h
|
|
|
|
|
2002-04-01 02:23:31 +02:00
|
|
|
all: ccache
|
|
|
|
|
|
|
|
docs: ccache.1 web/ccache-man.html
|
2002-03-31 11:02:21 +02:00
|
|
|
|
|
|
|
ccache: $(OBJS) $(HEADERS)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS)
|
|
|
|
|
|
|
|
ccache.1: ccache.yo
|
|
|
|
yodl2man -o ccache.1 ccache.yo
|
2002-04-01 02:23:31 +02:00
|
|
|
|
|
|
|
web/ccache-man.html: ccache.yo
|
|
|
|
mkdir -p man
|
2002-03-31 11:02:21 +02:00
|
|
|
yodl2html -o web/ccache-man.html ccache.yo
|
|
|
|
|
|
|
|
install:
|
2003-01-06 00:47:05 +01:00
|
|
|
${INSTALLCMD} -d $(DESTDIR)${bindir}
|
|
|
|
${INSTALLCMD} -m 755 ccache $(DESTDIR)${bindir}
|
|
|
|
${INSTALLCMD} -d $(DESTDIR)${mandir}/man1/
|
|
|
|
${INSTALLCMD} -m 644 ${srcdir}/ccache.1 $(DESTDIR)${mandir}/man1/
|
2002-03-31 11:02:21 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
/bin/rm -f $(OBJS) *~ ccache
|
2002-03-31 14:38:07 +02:00
|
|
|
|
2003-02-17 01:46:43 +01:00
|
|
|
test: test.sh
|
|
|
|
./test.sh
|
|
|
|
|
2003-02-17 02:09:12 +01:00
|
|
|
check: test.sh
|
|
|
|
./test.sh
|
|
|
|
|
2002-04-03 06:10:55 +02:00
|
|
|
distclean: clean
|
2002-03-31 14:38:07 +02:00
|
|
|
/bin/rm -f Makefile config.h config.sub config.log build-stamp config.status
|