diff options
author | Connor Lane Smith <cls@lubutu.com> | 2011-05-15 02:37:49 +0100 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2011-05-15 02:37:49 +0100 |
commit | 1654d6cd6269bc784ee99045edd89e4bda24149f (patch) | |
tree | 9d440b1133201d2083e99213412f92d094adc516 /Makefile | |
parent | 6cc0b0dc086feaf944b166d0b459ac407192ea5e (diff) |
cleanup
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -3,6 +3,9 @@ | |||
3 | 3 | ||
4 | include config.mk | 4 | include config.mk |
5 | 5 | ||
6 | SRC = dmenu.c draw.c | ||
7 | OBJ = ${SRC:.c=.o} | ||
8 | |||
6 | all: options dmenu | 9 | all: options dmenu |
7 | 10 | ||
8 | options: | 11 | options: |
@@ -11,22 +14,24 @@ options: | |||
11 | @echo "LDFLAGS = ${LDFLAGS}" | 14 | @echo "LDFLAGS = ${LDFLAGS}" |
12 | @echo "CC = ${CC}" | 15 | @echo "CC = ${CC}" |
13 | 16 | ||
14 | dmenu: dmenu.o draw.o | 17 | .c.o: |
15 | @echo CC -o $@ | ||
16 | @${CC} -o $@ dmenu.o draw.o ${LDFLAGS} | ||
17 | |||
18 | .c.o: config.mk | ||
19 | @echo CC -c $< | 18 | @echo CC -c $< |
20 | @${CC} -c $< ${CFLAGS} | 19 | @${CC} -c $< ${CFLAGS} |
21 | 20 | ||
21 | ${OBJ}: config.mk | ||
22 | |||
23 | dmenu: ${OBJ} | ||
24 | @echo CC -o $@ | ||
25 | @${CC} -o $@ ${OBJ} ${LDFLAGS} | ||
26 | |||
22 | clean: | 27 | clean: |
23 | @echo cleaning | 28 | @echo cleaning |
24 | @rm -f dmenu dmenu.o draw.o dmenu-${VERSION}.tar.gz | 29 | @rm -f dmenu ${OBJ} dmenu-${VERSION}.tar.gz |
25 | 30 | ||
26 | dist: clean | 31 | dist: clean |
27 | @echo creating dist tarball | 32 | @echo creating dist tarball |
28 | @mkdir -p dmenu-${VERSION} | 33 | @mkdir -p dmenu-${VERSION} |
29 | @cp LICENSE Makefile README config.mk dmenu.1 dmenu.c draw.c draw.h dmenu_path dmenu_run dmenu-${VERSION} | 34 | @cp LICENSE Makefile README config.mk dmenu.1 draw.h dmenu_path dmenu_run ${SRC} dmenu-${VERSION} |
30 | @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} | 35 | @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} |
31 | @gzip dmenu-${VERSION}.tar | 36 | @gzip dmenu-${VERSION}.tar |
32 | @rm -rf dmenu-${VERSION} | 37 | @rm -rf dmenu-${VERSION} |