aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-10-08 23:24:22 +0100
committerConnor Lane Smith <cls@lubutu.com>2010-10-08 23:24:22 +0100
commitbf7b8e37ee2a53f0f1bed75dd84e5214269cfac8 (patch)
treee1e6e3ef7c82e062fe86b088a9741d63aa9325c1 /Makefile
parent610a0a8d126b5caa7fec60632c999ca326ca2eff (diff)
dmenu_path.c (shell is a bottleneck)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 1082697..c183779 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
3 3
4include config.mk 4include config.mk
5 5
6all: options dmenu 6all: options dmenu dmenu_path
7 7
8options: 8options:
9 @echo dmenu build options: 9 @echo dmenu build options:
@@ -11,22 +11,21 @@ options:
11 @echo "LDFLAGS = ${LDFLAGS}" 11 @echo "LDFLAGS = ${LDFLAGS}"
12 @echo "CC = ${CC}" 12 @echo "CC = ${CC}"
13 13
14dmenu.o: dmenu.c config.mk 14dmenu: dmenu.c config.mk
15 @echo CC $< 15dmenu_path: dmenu_path.c
16 @${CC} -c ${CFLAGS} $<
17 16
18dmenu: dmenu.o 17dmenu dmenu_path:
19 @echo CC -o $@ 18 @echo CC -o $@
20 @${CC} -o $@ $+ ${LDFLAGS} 19 @${CC} -o $@ $< ${CFLAGS} ${LDFLAGS}
21 20
22clean: 21clean:
23 @echo cleaning 22 @echo cleaning
24 @rm -f dmenu dmenu.o dmenu-${VERSION}.tar.gz 23 @rm -f dmenu dmenu_path dmenu-${VERSION}.tar.gz
25 24
26dist: clean 25dist: clean
27 @echo creating dist tarball 26 @echo creating dist tarball
28 @mkdir -p dmenu-${VERSION} 27 @mkdir -p dmenu-${VERSION}
29 @cp LICENSE Makefile README config.mk dmenu.1 dmenu.c dmenu_path dmenu_run dmenu-${VERSION} 28 @cp LICENSE Makefile README config.mk dmenu.1 dmenu.c dmenu_path.c dmenu_run dmenu-${VERSION}
30 @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} 29 @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION}
31 @gzip dmenu-${VERSION}.tar 30 @gzip dmenu-${VERSION}.tar
32 @rm -rf dmenu-${VERSION} 31 @rm -rf dmenu-${VERSION}