diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | include config.mk | 4 | include config.mk |
5 | 5 | ||
6 | all: options dmenu | 6 | all: options dmenu dmenu_path |
7 | 7 | ||
8 | options: | 8 | options: |
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 | ||
14 | dmenu.o: dmenu.c config.mk | 14 | dmenu: dmenu.c config.mk |
15 | @echo CC $< | 15 | dmenu_path: dmenu_path.c |
16 | @${CC} -c ${CFLAGS} $< | ||
17 | 16 | ||
18 | dmenu: dmenu.o | 17 | dmenu dmenu_path: |
19 | @echo CC -o $@ | 18 | @echo CC -o $@ |
20 | @${CC} -o $@ $+ ${LDFLAGS} | 19 | @${CC} -o $@ $< ${CFLAGS} ${LDFLAGS} |
21 | 20 | ||
22 | clean: | 21 | clean: |
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 | ||
26 | dist: clean | 25 | dist: 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} |