aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 5ea6729..d5884da 100644
--- a/Makefile
+++ b/Makefile
@@ -3,10 +3,10 @@
3 3
4include config.mk 4include config.mk
5 5
6SRC = dmenu.c 6SRC = dinput.c dmenu.c draw.c
7OBJ = ${SRC:.c=.o} 7OBJ = ${SRC:.c=.o}
8 8
9all: options dmenu 9all: options dinput dmenu
10 10
11options: 11options:
12 @echo dmenu build options: 12 @echo dmenu build options:
@@ -18,19 +18,19 @@ options:
18 @echo CC $< 18 @echo CC $<
19 @${CC} -c ${CFLAGS} $< 19 @${CC} -c ${CFLAGS} $<
20 20
21${OBJ}: config.h config.mk 21${OBJ}: config.h config.mk draw.c
22 22
23config.h: 23config.h:
24 @echo creating $@ from config.def.h 24 @echo creating $@ from config.def.h
25 @cp config.def.h $@ 25 @cp config.def.h $@
26 26
27dmenu: ${OBJ} 27.o:
28 @echo CC -o $@ 28 @echo CC -o $@
29 @${CC} -o $@ ${OBJ} ${LDFLAGS} 29 @${CC} -o $@ $< ${LDFLAGS}
30 30
31clean: 31clean:
32 @echo cleaning 32 @echo cleaning
33 @rm -f dmenu ${OBJ} dmenu-${VERSION}.tar.gz 33 @rm -f dinput dmenu ${OBJ} dmenu-${VERSION}.tar.gz
34 34
35dist: clean 35dist: clean
36 @echo creating dist tarball 36 @echo creating dist tarball
@@ -43,7 +43,8 @@ dist: clean
43install: all 43install: all
44 @echo installing executable file to ${DESTDIR}${PREFIX}/bin 44 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
45 @mkdir -p ${DESTDIR}${PREFIX}/bin 45 @mkdir -p ${DESTDIR}${PREFIX}/bin
46 @cp -f dmenu dmenu_path dmenu_run ${DESTDIR}${PREFIX}/bin 46 @cp -f dinput dmenu dmenu_path dmenu_run ${DESTDIR}${PREFIX}/bin
47 @chmod 755 ${DESTDIR}${PREFIX}/bin/dinput
47 @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu 48 @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu
48 @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_path 49 @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_path
49 @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_run 50 @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_run
@@ -55,7 +56,7 @@ install: all
55uninstall: 56uninstall:
56 @echo removing executable file from ${DESTDIR}${PREFIX}/bin 57 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
57 @rm -f ${DESTDIR}${PREFIX}/bin/dmenu ${DESTDIR}${PREFIX}/bin/dmenu_path 58 @rm -f ${DESTDIR}${PREFIX}/bin/dmenu ${DESTDIR}${PREFIX}/bin/dmenu_path
58 @rm -f ${DESTDIR}${PREFIX}/bin/dmenu ${DESTDIR}${PREFIX}/bin/dmenu_run 59 @rm -f ${DESTDIR}${PREFIX}/bin/dinput ${DESTDIR}${PREFIX}/bin/dmenu_run
59 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 60 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
60 @rm -f ${DESTDIR}${MANPREFIX}/man1/dmenu.1 61 @rm -f ${DESTDIR}${MANPREFIX}/man1/dmenu.1
61 62