1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
mandir=@mandir@
libdir=@libdir@
INSTALLCMD=@INSTALL@
CC=@CC@
CFLAGS=@CFLAGS@
OBJS= ccache.o mdfour.o hash.o execute.o util.o args.o stats.o \
cleanup.o snprintf.o unify.o
HEADERS = ccache.h mdfour.h
all: ccache
docs: ccache.1 web/ccache-man.html
ccache: $(OBJS) $(HEADERS)
$(CC) $(CFLAGS) -o $@ $(OBJS)
ccache.1: ccache.yo
yodl2man -o ccache.1 ccache.yo
web/ccache-man.html: ccache.yo
mkdir -p man
yodl2html -o web/ccache-man.html ccache.yo
install:
${INSTALLCMD} -m 755 ccache ${bindir}
${INSTALLCMD} -m 644 ccache.1 ${mandir}/man1
[ -d ${libdir}/ccache ] || mkdir -p ${libdir}/ccache
ln -sf ../../bin/ccache ${libdir}/ccache/cc
ln -sf ../../bin/ccache ${libdir}/ccache/gcc
ln -sf ../../bin/ccache ${libdir}/ccache/c++
ln -sf ../../bin/ccache ${libdir}/ccache/g++
clean:
/bin/rm -f $(OBJS) *~ ccache
distclean: clean
/bin/rm -f Makefile config.h config.sub config.log build-stamp config.status
|