author | Anselm R.Garbe <arg@10ksloc.org> |
Mon, 14 Aug 2006 08:43:19 +0200 | |
changeset 268 | a47b3b0d7bf4 |
parent 222 | 770233c1df06 |
child 280 | 87cdbff4962e |
permissions | -rw-r--r-- |
34 | 1 |
# dwm - dynamic window manager |
0 | 2 |
# (C)opyright MMVI Anselm R. Garbe |
3 |
||
4 |
include config.mk |
|
5 |
||
75 | 6 |
SRC = client.c draw.c event.c main.c tag.c util.c |
32 | 7 |
OBJ = ${SRC:.c=.o} |
0 | 8 |
|
91 | 9 |
all: options dwm |
0 | 10 |
@echo finished |
11 |
||
91 | 12 |
options: |
34 | 13 |
@echo dwm build options: |
1 | 14 |
@echo "CFLAGS = ${CFLAGS}" |
15 |
@echo "LDFLAGS = ${LDFLAGS}" |
|
16 |
@echo "CC = ${CC}" |
|
268
a47b3b0d7bf4
applied Sanders LD and resize patches
Anselm R.Garbe <arg@10ksloc.org>
parents:
222
diff
changeset
|
17 |
@echo "LD = ${LD}" |
1 | 18 |
|
0 | 19 |
.c.o: |
20 |
@echo CC $< |
|
21 |
@${CC} -c ${CFLAGS} $< |
|
22 |
||
222
770233c1df06
applied Sanders tiny patches
Anselm R.Garbe <arg@10ksloc.org>
parents:
213
diff
changeset
|
23 |
${OBJ}: dwm.h config.h config.mk |
172
af781faa40d6
implemented the idea presented by Sander for dwm target
arg@10ksloc.org
parents:
143
diff
changeset
|
24 |
|
185 | 25 |
config.h: |
186 | 26 |
@echo creating $@ from config.default.h |
27 |
@cp config.default.h $@ |
|
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
28 |
|
34 | 29 |
dwm: ${OBJ} |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
30 |
@echo LD $@ |
268
a47b3b0d7bf4
applied Sanders LD and resize patches
Anselm R.Garbe <arg@10ksloc.org>
parents:
222
diff
changeset
|
31 |
@${LD} -o $@ ${OBJ} ${LDFLAGS} |
204 | 32 |
@strip $@ |
0 | 33 |
|
34 |
clean: |
|
180 | 35 |
@echo cleaning |
184 | 36 |
@rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz |
1 | 37 |
|
38 |
dist: clean |
|
180 | 39 |
@echo creating dist tarball |
40 |
@mkdir -p dwm-${VERSION} |
|
41 |
@cp -R LICENSE Makefile README config.*.h config.mk \ |
|
42 |
dwm.1 dwm.h ${SRC} dwm-${VERSION} |
|
43 |
@tar -cf dwm-${VERSION}.tar dwm-${VERSION} |
|
44 |
@gzip dwm-${VERSION}.tar |
|
45 |
@rm -rf dwm-${VERSION} |
|
1 | 46 |
|
47 |
install: all |
|
180 | 48 |
@echo installing executable file to ${DESTDIR}${PREFIX}/bin |
1 | 49 |
@mkdir -p ${DESTDIR}${PREFIX}/bin |
180 | 50 |
@cp -f dwm ${DESTDIR}${PREFIX}/bin |
51 |
@chmod 755 ${DESTDIR}${PREFIX}/bin/dwm |
|
52 |
@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 |
|
1 | 53 |
@mkdir -p ${DESTDIR}${MANPREFIX}/man1 |
213 | 54 |
@sed 's/VERSION/${VERSION}/g' < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1 |
180 | 55 |
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1 |
1 | 56 |
|
57 |
uninstall: |
|
180 | 58 |
@echo removing executable file from ${DESTDIR}${PREFIX}/bin |
59 |
@rm -f ${DESTDIR}${PREFIX}/bin/dwm |
|
60 |
@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 |
|
61 |
@rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1 |
|
174
48c820470858
applied Sanders doc changes, added a PHONY line and changed the output of config.h creation somewhat
arg@10ksloc.org
parents:
172
diff
changeset
|
62 |
|
48c820470858
applied Sanders doc changes, added a PHONY line and changed the output of config.h creation somewhat
arg@10ksloc.org
parents:
172
diff
changeset
|
63 |
.PHONY: all options clean dist install uninstall |