author | arg@10ksloc.org |
Wed, 02 Aug 2006 16:52:02 +0200 | |
changeset 167 | c11f86db4550 |
parent 143 | 36cabfe408cd |
child 172 | af781faa40d6 |
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 |
||
43 | 24 |
${OBJ}: dwm.h |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
25 |
|
34 | 26 |
dwm: ${OBJ} |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
27 |
@echo LD $@ |
32 | 28 |
@${CC} -o $@ ${OBJ} ${LDFLAGS} |
0 | 29 |
|
30 |
clean: |
|
143 | 31 |
rm -f dwm *.o dwm-${VERSION}.tar.gz |
1 | 32 |
|
33 |
dist: clean |
|
34 | 34 |
mkdir -p dwm-${VERSION} |
68 | 35 |
cp -R Makefile README LICENSE config.mk *.h *.c ${MAN1} dwm-${VERSION} |
34 | 36 |
tar -cf dwm-${VERSION}.tar dwm-${VERSION} |
37 |
gzip dwm-${VERSION}.tar |
|
38 |
rm -rf dwm-${VERSION} |
|
1 | 39 |
|
40 |
install: all |
|
41 |
@mkdir -p ${DESTDIR}${PREFIX}/bin |
|
42 |
@cp -f ${BIN} ${DESTDIR}${PREFIX}/bin |
|
116
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
43 |
@for i in ${BIN}; do \ |
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
44 |
chmod 755 ${DESTDIR}${PREFIX}/bin/`basename $$i`; \ |
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
45 |
done |
1 | 46 |
@echo installed executable files to ${DESTDIR}${PREFIX}/bin |
47 |
@mkdir -p ${DESTDIR}${MANPREFIX}/man1 |
|
48 |
@cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 |
|
116
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
49 |
@for i in ${MAN1}; do \ |
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
50 |
chmod 444 ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ |
eca09aac3ccc
makefile now sets permissions for executables and man pages
arg@10ksloc.org
parents:
91
diff
changeset
|
51 |
done |
1 | 52 |
@echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1 |
53 |
||
54 |
uninstall: |
|
55 |
for i in ${BIN}; do \ |
|
56 |
rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \ |
|
57 |
done |
|
58 |
for i in ${MAN1}; do \ |
|
59 |
rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ |
|
60 |
done |