equal
deleted
inserted
replaced
1 # dwm - dynamic window manager |
1 # dwm - dynamic window manager |
2 # © 2006-2007 Anselm R. Garbe, Sander van Dijk |
2 # © 2006-2007 Anselm R. Garbe, Sander van Dijk |
3 |
3 |
4 include config.mk |
4 include config.mk |
5 |
5 |
6 SRC += bar.c client.c event.c main.c screen.c util.c |
6 SRC = dwm.c |
7 OBJ = ${SRC:.c=.o} |
7 OBJ = ${SRC:.c=.o} |
8 |
8 |
9 all: options dwm |
9 all: options dwm |
10 |
10 |
11 options: |
11 options: |
16 |
16 |
17 .c.o: |
17 .c.o: |
18 @echo CC $< |
18 @echo CC $< |
19 @${CC} -c ${CFLAGS} $< |
19 @${CC} -c ${CFLAGS} $< |
20 |
20 |
21 ${OBJ}: dwm.h config.h config.mk |
21 ${OBJ}: config.h config.mk |
22 |
22 |
23 dwm: ${OBJ} |
23 dwm: ${OBJ} |
24 @echo CC -o $@ |
24 @echo CC -o $@ |
25 @${CC} -o $@ ${OBJ} ${LDFLAGS} |
25 @${CC} -o $@ ${OBJ} ${LDFLAGS} |
26 |
26 |
30 |
30 |
31 dist: clean |
31 dist: clean |
32 @echo creating dist tarball |
32 @echo creating dist tarball |
33 @mkdir -p dwm-${VERSION} |
33 @mkdir -p dwm-${VERSION} |
34 @cp -R LICENSE Makefile README config.h config.mk \ |
34 @cp -R LICENSE Makefile README config.h config.mk \ |
35 dwm.1 dwm.h tile.h ${SRC} dwm-${VERSION} |
35 dwm.1 ${SRC} dwm-${VERSION} |
36 @tar -cf dwm-${VERSION}.tar dwm-${VERSION} |
36 @tar -cf dwm-${VERSION}.tar dwm-${VERSION} |
37 @gzip dwm-${VERSION}.tar |
37 @gzip dwm-${VERSION}.tar |
38 @rm -rf dwm-${VERSION} |
38 @rm -rf dwm-${VERSION} |
39 |
39 |
40 install: all |
40 install: all |