author | arg@10ksloc.org |
Thu, 03 Aug 2006 15:29:28 +0200 | |
changeset 184 | 2d05df09253c |
parent 183 | ca8d8b7bd16f |
child 185 | 4b770a585866 |
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} |
181 | 8 |
CONFIG ?= config.default.h |
0 | 9 |
|
91 | 10 |
all: options dwm |
0 | 11 |
@echo finished |
12 |
||
91 | 13 |
options: |
34 | 14 |
@echo dwm build options: |
1 | 15 |
@echo "CFLAGS = ${CFLAGS}" |
16 |
@echo "LDFLAGS = ${LDFLAGS}" |
|
17 |
@echo "CC = ${CC}" |
|
18 |
||
0 | 19 |
.c.o: |
20 |
@echo CC $< |
|
21 |
@${CC} -c ${CFLAGS} $< |
|
22 |
||
172
af781faa40d6
implemented the idea presented by Sander for dwm target
arg@10ksloc.org
parents:
143
diff
changeset
|
23 |
${OBJ}: dwm.h config.h |
af781faa40d6
implemented the idea presented by Sander for dwm target
arg@10ksloc.org
parents:
143
diff
changeset
|
24 |
|
181 | 25 |
config.h: ${CONFIG} |
183 | 26 |
@echo creating $@ from ${CONFIG} |
27 |
@cp ${CONFIG} $@ |
|
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 $@ |
32 | 31 |
@${CC} -o $@ ${OBJ} ${LDFLAGS} |
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 |
180 | 53 |
@cp -f dwm.1 ${DESTDIR}${MANPREFIX}/man1 |
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 |