author | Anselm R. Garbe <arg@suckless.org> |
Mon, 19 Feb 2007 13:00:29 +0100 | |
changeset 769 | dc60583894e0 |
parent 741 | 7c5d5b1e49c9 |
child 773 | 81c5237a53b8 |
permissions | -rw-r--r-- |
34 | 1 |
# dwm - dynamic window manager |
741
7c5d5b1e49c9
fixed copyright notice in Makefile
Anselm R. Garbe <arg@suckless.org>
parents:
729
diff
changeset
|
2 |
# (C)opyright MMVI-MMVII Anselm R. Garbe |
0 | 3 |
|
4 |
include config.mk |
|
5 |
||
769
dc60583894e0
introduced tile.c, some refactoring of functions
Anselm R. Garbe <arg@suckless.org>
parents:
741
diff
changeset
|
6 |
SRC = client.c draw.c event.c main.c tile.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}" |
|
16 |
||
0 | 17 |
.c.o: |
18 |
@echo CC $< |
|
19 |
@${CC} -c ${CFLAGS} $< |
|
20 |
||
222
770233c1df06
applied Sanders tiny patches
Anselm R.Garbe <arg@10ksloc.org>
parents:
213
diff
changeset
|
21 |
${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
|
22 |
|
185 | 23 |
config.h: |
186 | 24 |
@echo creating $@ from config.default.h |
25 |
@cp config.default.h $@ |
|
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
26 |
|
34 | 27 |
dwm: ${OBJ} |
729
9c3bf42bdbf4
got rid of LD (inspired by JGs patch to wmii)
Anselm R. Garbe <arg@suckless.org>
parents:
643
diff
changeset
|
28 |
@echo CC -o $@ |
9c3bf42bdbf4
got rid of LD (inspired by JGs patch to wmii)
Anselm R. Garbe <arg@suckless.org>
parents:
643
diff
changeset
|
29 |
@${CC} -o $@ ${OBJ} ${LDFLAGS} |
204 | 30 |
@strip $@ |
0 | 31 |
|
32 |
clean: |
|
180 | 33 |
@echo cleaning |
184 | 34 |
@rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz |
1 | 35 |
|
36 |
dist: clean |
|
180 | 37 |
@echo creating dist tarball |
38 |
@mkdir -p dwm-${VERSION} |
|
39 |
@cp -R LICENSE Makefile README config.*.h config.mk \ |
|
40 |
dwm.1 dwm.h ${SRC} dwm-${VERSION} |
|
41 |
@tar -cf dwm-${VERSION}.tar dwm-${VERSION} |
|
42 |
@gzip dwm-${VERSION}.tar |
|
43 |
@rm -rf dwm-${VERSION} |
|
1 | 44 |
|
45 |
install: all |
|
180 | 46 |
@echo installing executable file to ${DESTDIR}${PREFIX}/bin |
1 | 47 |
@mkdir -p ${DESTDIR}${PREFIX}/bin |
180 | 48 |
@cp -f dwm ${DESTDIR}${PREFIX}/bin |
49 |
@chmod 755 ${DESTDIR}${PREFIX}/bin/dwm |
|
50 |
@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 |
|
1 | 51 |
@mkdir -p ${DESTDIR}${MANPREFIX}/man1 |
213 | 52 |
@sed 's/VERSION/${VERSION}/g' < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1 |
180 | 53 |
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1 |
1 | 54 |
|
55 |
uninstall: |
|
180 | 56 |
@echo removing executable file from ${DESTDIR}${PREFIX}/bin |
57 |
@rm -f ${DESTDIR}${PREFIX}/bin/dwm |
|
58 |
@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 |
|
59 |
@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
|
60 |
|
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 |
.PHONY: all options clean dist install uninstall |