author | arg@10ksloc.org |
Wed, 02 Aug 2006 17:49:21 +0200 | |
changeset 172 | af781faa40d6 |
parent 143 | 36cabfe408cd |
child 174 | 48c820470858 |
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: |
af781faa40d6
implemented the idea presented by Sander for dwm target
arg@10ksloc.org
parents:
143
diff
changeset
|
27 |
cp config.default.h config.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 $@ |
32 | 31 |
@${CC} -o $@ ${OBJ} ${LDFLAGS} |
0 | 32 |
|
33 |
clean: |
|
143 | 34 |
rm -f dwm *.o dwm-${VERSION}.tar.gz |
1 | 35 |
|
36 |
dist: clean |
|
34 | 37 |
mkdir -p dwm-${VERSION} |
68 | 38 |
cp -R Makefile README LICENSE config.mk *.h *.c ${MAN1} dwm-${VERSION} |
34 | 39 |
tar -cf dwm-${VERSION}.tar dwm-${VERSION} |
40 |
gzip dwm-${VERSION}.tar |
|
41 |
rm -rf dwm-${VERSION} |
|
1 | 42 |
|
43 |
install: all |
|
44 |
@mkdir -p ${DESTDIR}${PREFIX}/bin |
|
45 |
@cp -f ${BIN} ${DESTDIR}${PREFIX}/bin |
|
116
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
46 |
@for i in ${BIN}; do \ |
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
47 |
chmod 755 ${DESTDIR}${PREFIX}/bin/`basename $$i`; \ |
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
48 |
done |
1 | 49 |
@echo installed executable files to ${DESTDIR}${PREFIX}/bin |
50 |
@mkdir -p ${DESTDIR}${MANPREFIX}/man1 |
|
51 |
@cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 |
|
116
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
52 |
@for i in ${MAN1}; do \ |
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
53 |
chmod 444 ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ |
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
54 |
done |
1 | 55 |
@echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1 |
56 |
||
57 |
uninstall: |
|
58 |
for i in ${BIN}; do \ |
|
59 |
rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \ |
|
60 |
done |
|
61 |
for i in ${MAN1}; do \ |
|
62 |
rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ |
|
63 |
done |