author | arg@mig29 |
Tue, 31 Oct 2006 09:02:16 +0100 | |
changeset 556 | 12deea36603d |
parent 327 | 96d09fd98e89 |
child 643 | e90bf387bf6f |
permissions | -rw-r--r-- |
34 | 1 |
# dwm - dynamic window manager |
0 | 2 |
# (C)opyright MMVI Anselm R. Garbe |
3 |
||
4 |
include config.mk |
|
5 |
||
327
96d09fd98e89
separated several functions into view.c
Anselm R. Garbe <arg@10kloc.org>
parents:
280
diff
changeset
|
6 |
SRC = client.c draw.c event.c main.c tag.c util.c view.c |
32 | 7 |
OBJ = ${SRC:.c=.o} |
0 | 8 |
|
91 | 9 |
all: options dwm |
0 | 10 |
|
91 | 11 |
options: |
34 | 12 |
@echo dwm build options: |
1 | 13 |
@echo "CFLAGS = ${CFLAGS}" |
14 |
@echo "LDFLAGS = ${LDFLAGS}" |
|
15 |
@echo "CC = ${CC}" |
|
268
a47b3b0d7bf4
applied Sanders LD and resize patches
Anselm R.Garbe <arg@10ksloc.org>
parents:
222
diff
changeset
|
16 |
@echo "LD = ${LD}" |
1 | 17 |
|
0 | 18 |
.c.o: |
19 |
@echo CC $< |
|
20 |
@${CC} -c ${CFLAGS} $< |
|
21 |
||
222
770233c1df06
applied Sanders tiny patches
Anselm R.Garbe <arg@10ksloc.org>
parents:
213
diff
changeset
|
22 |
${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
|
23 |
|
185 | 24 |
config.h: |
186 | 25 |
@echo creating $@ from config.default.h |
26 |
@cp config.default.h $@ |
|
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
27 |
|
34 | 28 |
dwm: ${OBJ} |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
29 |
@echo LD $@ |
268
a47b3b0d7bf4
applied Sanders LD and resize patches
Anselm R.Garbe <arg@10ksloc.org>
parents:
222
diff
changeset
|
30 |
@${LD} -o $@ ${OBJ} ${LDFLAGS} |
204 | 31 |
@strip $@ |
0 | 32 |
|
33 |
clean: |
|
180 | 34 |
@echo cleaning |
184 | 35 |
@rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz |
1 | 36 |
|
37 |
dist: clean |
|
180 | 38 |
@echo creating dist tarball |
39 |
@mkdir -p dwm-${VERSION} |
|
40 |
@cp -R LICENSE Makefile README config.*.h config.mk \ |
|
41 |
dwm.1 dwm.h ${SRC} dwm-${VERSION} |
|
42 |
@tar -cf dwm-${VERSION}.tar dwm-${VERSION} |
|
43 |
@gzip dwm-${VERSION}.tar |
|
44 |
@rm -rf dwm-${VERSION} |
|
1 | 45 |
|
46 |
install: all |
|
180 | 47 |
@echo installing executable file to ${DESTDIR}${PREFIX}/bin |
1 | 48 |
@mkdir -p ${DESTDIR}${PREFIX}/bin |
180 | 49 |
@cp -f dwm ${DESTDIR}${PREFIX}/bin |
50 |
@chmod 755 ${DESTDIR}${PREFIX}/bin/dwm |
|
51 |
@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 |
|
1 | 52 |
@mkdir -p ${DESTDIR}${MANPREFIX}/man1 |
213 | 53 |
@sed 's/VERSION/${VERSION}/g' < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1 |
180 | 54 |
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1 |
1 | 55 |
|
56 |
uninstall: |
|
180 | 57 |
@echo removing executable file from ${DESTDIR}${PREFIX}/bin |
58 |
@rm -f ${DESTDIR}${PREFIX}/bin/dwm |
|
59 |
@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 |
|
60 |
@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
|
61 |
|
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 |
.PHONY: all options clean dist install uninstall |