Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile - seturgent - set urgency hints for X applications
git clone git://git.codemadness.org/seturgent
Log
Files
Refs
README
LICENSE
---
Makefile (1637B)
---
1 # seturgent - set an applications urgency hint (or not)
2 # See LICENSE file for copyright and license details.
3
4 include config.mk
5
6 SRC = seturgent.c
7 OBJ = ${SRC:.c=.o}
8
9 all: options seturgent
10
11 options:
12 @echo seturgent build options:
13 @echo "CFLAGS = ${CFLAGS}"
14 @echo "LDFLAGS = ${LDFLAGS}"
15 @echo "CC = ${CC}"
16
17 .c.o:
18 @echo CC $<
19 @${CC} -c ${CFLAGS} $<
20
21 ${OBJ}: config.mk
22
23 seturgent: ${OBJ}
24 @echo CC -o $@
25 @${CC} -o $@ ${OBJ} ${LDFLAGS}
26
27 readme:
28 @echo creating README
29 @groff -T utf8 -man < seturgent.1 | col -bx | \
30 sed "s@VERSION@${VERSION}@g" > README
31
32 clean:
33 @echo cleaning
34 @rm -f seturgent ${OBJ} seturgent-${VERSION}.tar.gz
35
36 dist: clean
37 @echo creating dist tarball
38 @mkdir -p seturgent-${VERSION}
39 @cp -R LICENSE Makefile config.mk \
40 seturgent.1 ${SRC} seturgent-${VERSION}
41 @tar -cf seturgent-${VERSION}.tar seturgent-${VERSION}
42 @gzip seturgent-${VERSION}.tar
43 @rm -rf seturgent-${VERSION}
44
45 install: all
46 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
47 @mkdir -p ${DESTDIR}${PREFIX}/bin
48 @cp -f seturgent ${DESTDIR}${PREFIX}/bin
49 @chmod 755 ${DESTDIR}${PREFIX}/bin/seturgent
50 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
51 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
52 @sed "s/VERSION/${VERSION}/g" < seturgent.1 > ${DESTDIR}${MANPRE…
53 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/seturgent.1
54
55 uninstall:
56 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
57 @rm -f ${DESTDIR}${PREFIX}/bin/seturgent
58 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
59 @rm -f ${DESTDIR}${MANPREFIX}/man1/seturgent.1
60
61 .PHONY: all readme options clean dist install uninstall
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.