diff options
author | Connor Lane Smith <cls@lubutu.com> | 2010-08-02 14:22:54 +0100 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2010-08-02 14:22:54 +0100 |
commit | a7aee433ccfd2590e0785a7b93a89d8d0593a234 (patch) | |
tree | 5a6fcb7a210c164c22194674a7b01c7e8cfe2458 /Makefile | |
parent | a3606ecb0eeaffa752fdf26565ebaaba29b83239 (diff) |
fixed bugs, no more config.h, updated manpage, new libdraw
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 8 insertions, 16 deletions
@@ -3,9 +3,6 @@ | |||
3 | 3 | ||
4 | include config.mk | 4 | include config.mk |
5 | 5 | ||
6 | SRC = dmenu.c | ||
7 | OBJ = ${SRC:.c=.o} | ||
8 | |||
9 | all: options dmenu | 6 | all: options dmenu |
10 | 7 | ||
11 | options: | 8 | options: |
@@ -14,34 +11,28 @@ options: | |||
14 | @echo "LDFLAGS = ${LDFLAGS}" | 11 | @echo "LDFLAGS = ${LDFLAGS}" |
15 | @echo "CC = ${CC}" | 12 | @echo "CC = ${CC}" |
16 | 13 | ||
17 | .c.o: | 14 | dmenu.o: dmenu.c config.mk |
18 | @echo CC $< | 15 | @echo CC $< |
19 | @${CC} -c ${CFLAGS} $< | 16 | @${CC} -c ${CFLAGS} $< |
20 | 17 | ||
21 | ${OBJ}: config.h config.mk | 18 | dmenu: dmenu.o |
22 | |||
23 | config.h: | ||
24 | @echo creating $@ from config.def.h | ||
25 | @cp config.def.h $@ | ||
26 | |||
27 | dmenu: ${OBJ} | ||
28 | @echo CC -o $@ | 19 | @echo CC -o $@ |
29 | @${CC} -o $@ $+ ${LDFLAGS} | 20 | @${CC} -o $@ $+ ${LDFLAGS} |
30 | 21 | ||
31 | clean: | 22 | clean: |
32 | @echo cleaning | 23 | @echo cleaning |
33 | @rm -f dmenu ${OBJ} dmenu-${VERSION}.tar.gz | 24 | @rm -f dmenu dmenu.o dmenu-${VERSION}.tar.gz |
34 | 25 | ||
35 | dist: clean | 26 | dist: clean |
36 | @echo creating dist tarball | 27 | @echo creating dist tarball |
37 | @mkdir -p dmenu-${VERSION} | 28 | @mkdir -p dmenu-${VERSION} |
38 | @cp -R LICENSE Makefile README config.mk dmenu.1 config.def.h dmenu_path dmenu_run ${SRC} dmenu-${VERSION} | 29 | @cp -R LICENSE Makefile README config.mk dmenu.1 dmenu.c dmenu_path dmenu_run dmenu-${VERSION} |
39 | @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} | 30 | @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} |
40 | @gzip dmenu-${VERSION}.tar | 31 | @gzip dmenu-${VERSION}.tar |
41 | @rm -rf dmenu-${VERSION} | 32 | @rm -rf dmenu-${VERSION} |
42 | 33 | ||
43 | install: all | 34 | install: all |
44 | @echo installing executable file to ${DESTDIR}${PREFIX}/bin | 35 | @echo installing executables to ${DESTDIR}${PREFIX}/bin |
45 | @mkdir -p ${DESTDIR}${PREFIX}/bin | 36 | @mkdir -p ${DESTDIR}${PREFIX}/bin |
46 | @cp -f dmenu dmenu_path dmenu_run ${DESTDIR}${PREFIX}/bin | 37 | @cp -f dmenu dmenu_path dmenu_run ${DESTDIR}${PREFIX}/bin |
47 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu | 38 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu |
@@ -53,8 +44,9 @@ install: all | |||
53 | @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dmenu.1 | 44 | @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dmenu.1 |
54 | 45 | ||
55 | uninstall: | 46 | uninstall: |
56 | @echo removing executable file from ${DESTDIR}${PREFIX}/bin | 47 | @echo removing executables from ${DESTDIR}${PREFIX}/bin |
57 | @rm -f ${DESTDIR}${PREFIX}/bin/dmenu ${DESTDIR}${PREFIX}/bin/dmenu_path | 48 | @rm -f ${DESTDIR}${PREFIX}/bin/dmenu |
49 | @rm -f ${DESTDIR}${PREFIX}/bin/dmenu_path | ||
58 | @rm -f ${DESTDIR}${PREFIX}/bin/dmenu_run | 50 | @rm -f ${DESTDIR}${PREFIX}/bin/dmenu_run |
59 | @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 | 51 | @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 |
60 | @rm -f ${DESTDIR}${MANPREFIX}/man1/dmenu.1 | 52 | @rm -f ${DESTDIR}${MANPREFIX}/man1/dmenu.1 |