summaryrefslogtreecommitdiff
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 @@
include config.mk
-all: options dmenu
+all: options dmenu dmenu_path
options:
@echo dmenu build options:
@@ -11,22 +11,21 @@ options:
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
-dmenu.o: dmenu.c config.mk
- @echo CC $<
- @${CC} -c ${CFLAGS} $<
+dmenu: dmenu.c config.mk
+dmenu_path: dmenu_path.c
-dmenu: dmenu.o
+dmenu dmenu_path:
@echo CC -o $@
- @${CC} -o $@ $+ ${LDFLAGS}
+ @${CC} -o $@ $< ${CFLAGS} ${LDFLAGS}
clean:
@echo cleaning
- @rm -f dmenu dmenu.o dmenu-${VERSION}.tar.gz
+ @rm -f dmenu dmenu_path dmenu-${VERSION}.tar.gz
dist: clean
@echo creating dist tarball
@mkdir -p dmenu-${VERSION}
- @cp LICENSE Makefile README config.mk dmenu.1 dmenu.c dmenu_path dmenu_run dmenu-${VERSION}
+ @cp LICENSE Makefile README config.mk dmenu.1 dmenu.c dmenu_path.c dmenu_run dmenu-${VERSION}
@tar -cf dmenu-${VERSION}.tar dmenu-${VERSION}
@gzip dmenu-${VERSION}.tar
@rm -rf dmenu-${VERSION}