diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -3,10 +3,10 @@ | |||
3 | 3 | ||
4 | include config.mk | 4 | include config.mk |
5 | 5 | ||
6 | SRC = dmenu.c | 6 | SRC = dinput.c dmenu.c draw.c |
7 | OBJ = ${SRC:.c=.o} | 7 | OBJ = ${SRC:.c=.o} |
8 | 8 | ||
9 | all: options dmenu | 9 | all: options dinput dmenu |
10 | 10 | ||
11 | options: | 11 | options: |
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 | ||
23 | config.h: | 23 | config.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 | ||
27 | dmenu: ${OBJ} | 27 | .o: |
28 | @echo CC -o $@ | 28 | @echo CC -o $@ |
29 | @${CC} -o $@ ${OBJ} ${LDFLAGS} | 29 | @${CC} -o $@ $< ${LDFLAGS} |
30 | 30 | ||
31 | clean: | 31 | clean: |
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 | ||
35 | dist: clean | 35 | dist: clean |
36 | @echo creating dist tarball | 36 | @echo creating dist tarball |
@@ -43,7 +43,8 @@ dist: clean | |||
43 | install: all | 43 | install: 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 | |||
55 | uninstall: | 56 | uninstall: |
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 | ||