equal
deleted
inserted
replaced
3 |
3 |
4 include config.mk |
4 include config.mk |
5 |
5 |
6 SRC = client.c draw.c event.c main.c tag.c util.c |
6 SRC = client.c draw.c event.c main.c tag.c util.c |
7 OBJ = ${SRC:.c=.o} |
7 OBJ = ${SRC:.c=.o} |
|
8 CONFIG ?= config.default.h |
8 |
9 |
9 all: options dwm |
10 all: options dwm |
10 @echo finished |
11 @echo finished |
11 |
12 |
12 options: |
13 options: |
19 @echo CC $< |
20 @echo CC $< |
20 @${CC} -c ${CFLAGS} $< |
21 @${CC} -c ${CFLAGS} $< |
21 |
22 |
22 ${OBJ}: dwm.h config.h |
23 ${OBJ}: dwm.h config.h |
23 |
24 |
24 config.h: |
25 config.h: ${CONFIG} |
25 @echo creating default $@ |
26 @echo creating $@ from $> |
26 @cp config.default.h $@ |
27 @cp $> $@ |
27 |
28 |
28 dwm: ${OBJ} |
29 dwm: ${OBJ} |
29 @echo LD $@ |
30 @echo LD $@ |
30 @${CC} -o $@ ${OBJ} ${LDFLAGS} |
31 @${CC} -o $@ ${OBJ} ${LDFLAGS} |
31 |
32 |
32 clean: |
33 clean: |
33 @echo cleaning |
34 @echo cleaning |
34 @rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz |
35 @rm -f dwm ${OBJ} config.h dwm-${VERSION}.tar.gz |
35 |
36 |
36 dist: clean |
37 dist: clean |
37 @echo creating dist tarball |
38 @echo creating dist tarball |
38 @mkdir -p dwm-${VERSION} |
39 @mkdir -p dwm-${VERSION} |
39 @cp -R LICENSE Makefile README config.*.h config.mk \ |
40 @cp -R LICENSE Makefile README config.*.h config.mk \ |