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