File: Makefile.in

package info (click to toggle)
ccache 2.3-1.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 508 kB
  • ctags: 239
  • sloc: sh: 2,888; ansic: 2,860; makefile: 109
file content (64 lines) | stat: -rw-r--r-- 1,624 bytes parent folder | download
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
srcdir=@srcdir@
VPATH=@srcdir@

prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
mandir=@mandir@
libdir=@libdir@
INSTALLCMD=@INSTALL@

CC=@CC@
CFLAGS=@CFLAGS@ -I.
EXEEXT=@EXEEXT@

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$(EXEEXT)

docs: ccache.1 web/ccache-man.html

ccache$(EXEEXT): $(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: ccache$(EXEEXT) ccache.1
	${INSTALLCMD} -d $(DESTDIR)${bindir}
	${INSTALLCMD} -m 755 ccache$(EXEEXT) $(DESTDIR)${bindir}
	${INSTALLCMD} -d $(DESTDIR)${mandir}/man1
	${INSTALLCMD} -m 644 ${srcdir}/ccache.1 $(DESTDIR)${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++
	set -e; for ver in 2.95 3.0 3.2 3.3; do \
		ln -sf ../../bin/ccache ${libdir}/ccache/gcc-$$ver; \
		ln -sf ../../bin/ccache ${libdir}/ccache/g++-$$ver; \
	done

clean:
	/bin/rm -f $(OBJS) *~ ccache$(EXEEXT)

test: test.sh
	./test.sh

check: test.sh
	./test.sh

distclean: clean
	/bin/rm -f Makefile config.h config.sub config.log build-stamp config.status

# FIXME: To fix this, test.sh needs to be able to take ccache from the
# installed prefix, not from the source dir.
installcheck: 
	@echo "WARNING!  This is not really \"installcheck\" yet."
	$(MAKE) check