author | arg@10ksloc.org |
Thu, 03 Aug 2006 10:58:29 +0200 | |
changeset 174 | 48c820470858 |
parent 172 | af781faa40d6 |
child 175 | f0b81c08a588 |
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} |
34 | 8 |
MAN1 = dwm.1 |
9 |
BIN = dwm |
|
0 | 10 |
|
91 | 11 |
all: options dwm |
0 | 12 |
@echo finished |
13 |
||
91 | 14 |
options: |
34 | 15 |
@echo dwm build options: |
1 | 16 |
@echo "CFLAGS = ${CFLAGS}" |
17 |
@echo "LDFLAGS = ${LDFLAGS}" |
|
18 |
@echo "CC = ${CC}" |
|
19 |
||
0 | 20 |
.c.o: |
21 |
@echo CC $< |
|
22 |
@${CC} -c ${CFLAGS} $< |
|
23 |
||
172
af781faa40d6
implemented the idea presented by Sander for dwm target
arg@10ksloc.org
parents:
143
diff
changeset
|
24 |
${OBJ}: dwm.h config.h |
af781faa40d6
implemented the idea presented by Sander for dwm target
arg@10ksloc.org
parents:
143
diff
changeset
|
25 |
|
af781faa40d6
implemented the idea presented by Sander for dwm target
arg@10ksloc.org
parents:
143
diff
changeset
|
26 |
config.h: |
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
|
27 |
@echo missing config.h created |
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
|
28 |
@cp config.default.h $@ |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
29 |
|
34 | 30 |
dwm: ${OBJ} |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
31 |
@echo LD $@ |
32 | 32 |
@${CC} -o $@ ${OBJ} ${LDFLAGS} |
0 | 33 |
|
34 |
clean: |
|
143 | 35 |
rm -f dwm *.o dwm-${VERSION}.tar.gz |
1 | 36 |
|
37 |
dist: clean |
|
34 | 38 |
mkdir -p dwm-${VERSION} |
68 | 39 |
cp -R Makefile README LICENSE config.mk *.h *.c ${MAN1} dwm-${VERSION} |
34 | 40 |
tar -cf dwm-${VERSION}.tar dwm-${VERSION} |
41 |
gzip dwm-${VERSION}.tar |
|
42 |
rm -rf dwm-${VERSION} |
|
1 | 43 |
|
44 |
install: all |
|
45 |
@mkdir -p ${DESTDIR}${PREFIX}/bin |
|
46 |
@cp -f ${BIN} ${DESTDIR}${PREFIX}/bin |
|
116
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
47 |
@for i in ${BIN}; do \ |
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
48 |
chmod 755 ${DESTDIR}${PREFIX}/bin/`basename $$i`; \ |
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
49 |
done |
1 | 50 |
@echo installed executable files to ${DESTDIR}${PREFIX}/bin |
51 |
@mkdir -p ${DESTDIR}${MANPREFIX}/man1 |
|
52 |
@cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 |
|
116
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
53 |
@for i in ${MAN1}; do \ |
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
54 |
chmod 444 ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ |
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
55 |
done |
1 | 56 |
@echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1 |
57 |
||
58 |
uninstall: |
|
59 |
for i in ${BIN}; do \ |
|
60 |
rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \ |
|
61 |
done |
|
62 |
for i in ${MAN1}; do \ |
|
63 |
rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ |
|
64 |
done |
|
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
|
65 |
|
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
|
66 |
.PHONY: all options clean dist install uninstall |