t* My version of sent
URI git clone git://git.codevoid.de/sent-sdk.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
tMakefile (1408B)
---
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 @echo CC $<
22 @${CC} -c ${CFLAGS} $<
23
24 ${OBJ}: config.h config.mk
25
26 sent: ${OBJ}
27 @echo CC -o $@
28 @${CC} -o $@ ${OBJ} ${LDFLAGS}
29
30 cscope: ${SRC} config.h
31 @echo cScope
32 @cscope -R -b || echo cScope not installed
33
34 clean:
35 @echo cleaning
36 @rm -f sent ${OBJ} sent-${VERSION}.tar.gz
37
38 dist: clean
39 @echo creating dist tarball
40 @mkdir -p sent-${VERSION}
41 @cp -R LICENSE Makefile config.mk config.def.h ${SRC} sent-${VERSION}
42 @tar -cf sent-${VERSION}.tar sent-${VERSION}
43 @gzip sent-${VERSION}.tar
44 @rm -rf sent-${VERSION}
45
46 install: all
47 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
48 @mkdir -p ${DESTDIR}${PREFIX}/bin
49 @cp -f sent ${DESTDIR}${PREFIX}/bin
50 @chmod 755 ${DESTDIR}${PREFIX}/bin/sent
51 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
52 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
53 @cp sent.1 ${DESTDIR}${MANPREFIX}/man1/sent.1
54 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/sent.1
55
56 uninstall:
57 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
58 @rm -f ${DESTDIR}${PREFIX}/bin/sent
59
60 .PHONY: all options clean dist install uninstall cscope