Debian Codegraph @

Makefile

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 # sent - plain text presentation tool
2 # See LICENSE file for copyright and license details.
3
4 include config.mk
5
6 SRC = sent.c drw.c util.c
7 OBJ = ${SRC:.c=.o}
8
9 all: options sent
10
11 options:
12 @echo sent build options:
13 @echo "CFLAGS = ${CFLAGS}"
14 @echo "LDFLAGS = ${LDFLAGS}"
15 @echo "CC = ${CC}"
16
17 config.h:
18 cp config.def.h config.h
19
20 .c.o:
•21 ${CC} -c ${CFLAGS} $<
22
23 ${OBJ}: config.h config.mk
24
25 sent: ${OBJ}
•26 ${CC} -o $@ ${OBJ} ${LDFLAGS}
27
28 cscope: ${SRC} config.h
29 @echo cScope
30 @cscope -R -b || echo cScope not installed
31
32 clean:
33 @echo cleaning
34 @rm -f sent ${OBJ} sent-${VERSION}.tar.gz
35
36 dist: clean
37 @echo creating dist tarball
38 @mkdir -p sent-${VERSION}
39 @cp -R LICENSE Makefile config.mk config.def.h ${SRC} sent-${VERSION}
40 @tar -cf sent-${VERSION}.tar sent-${VERSION}
41 @gzip sent-${VERSION}.tar
42 @rm -rf sent-${VERSION}
43
44 install: all
45 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
46 @mkdir -p ${DESTDIR}${PREFIX}/bin
47 @cp -f sent ${DESTDIR}${PREFIX}/bin
48 @chmod 755 ${DESTDIR}${PREFIX}/bin/sent
49 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
50 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
51 @cp sent.1 ${DESTDIR}${MANPREFIX}/man1/sent.1
52 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/sent.1
53
54 uninstall:
55 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
56 @rm -f ${DESTDIR}${PREFIX}/bin/sent
57
58 .PHONY: all options clean dist install uninstall cscope