aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-07-30 13:40:56 +0100
committerConnor Lane Smith <cls@lubutu.com>2010-07-30 13:40:56 +0100
commit7d5fe17391fefd978eab281a6cbebe2aa601e9ce (patch)
tree07d003a35241fb2c24e66fc30498c16ccdb39be2 /Makefile
parent7f36736d11418b0b11d02da8aa0cb663406706c2 (diff)
merged dmenu & dinput (clunky interface)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 5 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 7274923..0d16e38 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
3 3
4include config.mk 4include config.mk
5 5
6SRC = dinput.c dmenu.c common.c 6SRC = dmenu.c
7OBJ = ${SRC:.c=.o} 7OBJ = ${SRC:.c=.o}
8 8
9all: options dinput dmenu 9all: 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
27dinput: dinput.o common.o 27dmenu: ${OBJ}
28 @echo CC -o $@
29 @${CC} -o $@ $+ ${LDFLAGS}
30
31dmenu: dmenu.o common.o
32 @echo CC -o $@ 28 @echo CC -o $@
33 @${CC} -o $@ $+ ${LDFLAGS} 29 @${CC} -o $@ $+ ${LDFLAGS}
34 30
35clean: 31clean:
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
39dist: clean 35dist: clean
40 @echo creating dist tarball 36 @echo creating dist tarball
@@ -47,8 +43,7 @@ dist: clean
47install: all 43install: 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
60uninstall: 55uninstall:
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