diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | include config.mk | 4 | include config.mk |
5 | 5 | ||
6 | all: options dmenu dmenu_path | 6 | all: options dmenu |
7 | 7 | ||
8 | options: | 8 | options: |
9 | @echo dmenu build options: | 9 | @echo dmenu build options: |
@@ -15,22 +15,18 @@ dmenu: dmenu.o draw.o | |||
15 | @echo CC -o $@ | 15 | @echo CC -o $@ |
16 | @${CC} -o $@ dmenu.o draw.o ${LDFLAGS} | 16 | @${CC} -o $@ dmenu.o draw.o ${LDFLAGS} |
17 | 17 | ||
18 | dmenu_path: dmenu_path.o | ||
19 | @echo CC -o $@ | ||
20 | @${CC} -o $@ dmenu_path.o ${LDFLAGS} | ||
21 | |||
22 | .c.o: config.mk | 18 | .c.o: config.mk |
23 | @echo CC -c $< | 19 | @echo CC -c $< |
24 | @${CC} -c $< ${CFLAGS} | 20 | @${CC} -c $< ${CFLAGS} |
25 | 21 | ||
26 | clean: | 22 | clean: |
27 | @echo cleaning | 23 | @echo cleaning |
28 | @rm -f dmenu dmenu.o draw.o dmenu_path dmenu_path.o dmenu-${VERSION}.tar.gz | 24 | @rm -f dmenu dmenu.o draw.o dmenu-${VERSION}.tar.gz |
29 | 25 | ||
30 | dist: clean | 26 | dist: clean |
31 | @echo creating dist tarball | 27 | @echo creating dist tarball |
32 | @mkdir -p dmenu-${VERSION} | 28 | @mkdir -p dmenu-${VERSION} |
33 | @cp LICENSE Makefile README config.mk dmenu.1 dmenu.c draw.c draw.h dmenu_path.c dmenu_run dmenu-${VERSION} | 29 | @cp LICENSE Makefile README config.mk dmenu.1 dmenu.c draw.c draw.h dmenu_path dmenu_run dmenu-${VERSION} |
34 | @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} | 30 | @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} |
35 | @gzip dmenu-${VERSION}.tar | 31 | @gzip dmenu-${VERSION}.tar |
36 | @rm -rf dmenu-${VERSION} | 32 | @rm -rf dmenu-${VERSION} |