diff options
author | Connor Lane Smith <cls@lubutu.com> | 2010-07-30 13:40:56 +0100 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2010-07-30 13:40:56 +0100 |
commit | 7d5fe17391fefd978eab281a6cbebe2aa601e9ce (patch) | |
tree | 07d003a35241fb2c24e66fc30498c16ccdb39be2 /Makefile | |
parent | 7f36736d11418b0b11d02da8aa0cb663406706c2 (diff) |
merged dmenu & dinput (clunky interface)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | include config.mk | 4 | include config.mk |
5 | 5 | ||
6 | SRC = dinput.c dmenu.c common.c | 6 | SRC = dmenu.c |
7 | OBJ = ${SRC:.c=.o} | 7 | OBJ = ${SRC:.c=.o} |
8 | 8 | ||
9 | all: options dinput dmenu | 9 | all: options dinput dmenu |
@@ -24,17 +24,13 @@ 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 | dinput: dinput.o common.o | 27 | dmenu: ${OBJ} |
28 | @echo CC -o $@ | ||
29 | @${CC} -o $@ $+ ${LDFLAGS} | ||
30 | |||
31 | dmenu: dmenu.o common.o | ||
32 | @echo CC -o $@ | 28 | @echo CC -o $@ |
33 | @${CC} -o $@ $+ ${LDFLAGS} | 29 | @${CC} -o $@ $+ ${LDFLAGS} |
34 | 30 | ||
35 | clean: | 31 | clean: |
36 | @echo cleaning | 32 | @echo cleaning |
37 | @rm -f dinput dmenu ${OBJ} dmenu-${VERSION}.tar.gz | 33 | @rm -f dmenu ${OBJ} dmenu-${VERSION}.tar.gz |
38 | 34 | ||
39 | dist: clean | 35 | dist: clean |
40 | @echo creating dist tarball | 36 | @echo creating dist tarball |
@@ -47,8 +43,7 @@ dist: clean | |||
47 | install: all | 43 | install: all |
48 | @echo installing executable file to ${DESTDIR}${PREFIX}/bin | 44 | @echo installing executable file to ${DESTDIR}${PREFIX}/bin |
49 | @mkdir -p ${DESTDIR}${PREFIX}/bin | 45 | @mkdir -p ${DESTDIR}${PREFIX}/bin |
50 | @cp -f dinput dmenu dmenu_path dmenu_run ${DESTDIR}${PREFIX}/bin | 46 | @cp -f dmenu dmenu_path dmenu_run ${DESTDIR}${PREFIX}/bin |
51 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dinput | ||
52 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu | 47 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu |
53 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_path | 48 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_path |
54 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_run | 49 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_run |
@@ -60,7 +55,7 @@ install: all | |||
60 | uninstall: | 55 | uninstall: |
61 | @echo removing executable file from ${DESTDIR}${PREFIX}/bin | 56 | @echo removing executable file from ${DESTDIR}${PREFIX}/bin |
62 | @rm -f ${DESTDIR}${PREFIX}/bin/dmenu ${DESTDIR}${PREFIX}/bin/dmenu_path | 57 | @rm -f ${DESTDIR}${PREFIX}/bin/dmenu ${DESTDIR}${PREFIX}/bin/dmenu_path |
63 | @rm -f ${DESTDIR}${PREFIX}/bin/dinput ${DESTDIR}${PREFIX}/bin/dmenu_run | 58 | @rm -f ${DESTDIR}${PREFIX}/bin/dmenu_run |
64 | @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 | 59 | @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 |
65 | @rm -f ${DESTDIR}${MANPREFIX}/man1/dmenu.1 | 60 | @rm -f ${DESTDIR}${MANPREFIX}/man1/dmenu.1 |
66 | 61 | ||