aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-08-02 14:22:54 +0100
committerConnor Lane Smith <cls@lubutu.com>2010-08-02 14:22:54 +0100
commita7aee433ccfd2590e0785a7b93a89d8d0593a234 (patch)
tree5a6fcb7a210c164c22194674a7b01c7e8cfe2458 /Makefile
parenta3606ecb0eeaffa752fdf26565ebaaba29b83239 (diff)
fixed bugs, no more config.h, updated manpage, new libdraw
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 8 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 269bc27..7b21a25 100644
--- a/Makefile
+++ b/Makefile
@@ -3,9 +3,6 @@
3 3
4include config.mk 4include config.mk
5 5
6SRC = dmenu.c
7OBJ = ${SRC:.c=.o}
8
9all: options dmenu 6all: options dmenu
10 7
11options: 8options:
@@ -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: 14dmenu.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 18dmenu: dmenu.o
22
23config.h:
24 @echo creating $@ from config.def.h
25 @cp config.def.h $@
26
27dmenu: ${OBJ}
28 @echo CC -o $@ 19 @echo CC -o $@
29 @${CC} -o $@ $+ ${LDFLAGS} 20 @${CC} -o $@ $+ ${LDFLAGS}
30 21
31clean: 22clean:
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
35dist: clean 26dist: 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
43install: all 34install: 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
55uninstall: 46uninstall:
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