author | Anselm R. Garbe <garbeam@gmail.com> |
Sat, 22 Sep 2007 08:57:24 +0200 | |
changeset 1005 | 2acc60d6dfe2 |
parent 1001 | 2477f818215c |
child 1009 | 00d2fc91a2c7 |
permissions | -rw-r--r-- |
34 | 1 |
# dwm - dynamic window manager |
858
b797071ebbd4
yet another fix of copyright compactisition
Anselm R. Garbe <arg@suckless.org>
parents:
796
diff
changeset
|
2 |
# © 2006-2007 Anselm R. Garbe, Sander van Dijk |
0 | 3 |
|
4 |
include config.mk |
|
5 |
||
1001
2477f818215c
made all stuff non-static - so you can choose wether to use dwm the static or the extern way when extending it
arg@suckless.org
parents:
990
diff
changeset
|
6 |
SRC += dwm.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 |
||
990 | 21 |
${OBJ}: config.h config.mk |
172
af781faa40d6
implemented the idea presented by Sander for dwm target
arg@10ksloc.org
parents:
143
diff
changeset
|
22 |
|
34 | 23 |
dwm: ${OBJ} |
729
9c3bf42bdbf4
got rid of LD (inspired by JGs patch to wmii)
Anselm R. Garbe <arg@suckless.org>
parents:
643
diff
changeset
|
24 |
@echo CC -o $@ |
9c3bf42bdbf4
got rid of LD (inspired by JGs patch to wmii)
Anselm R. Garbe <arg@suckless.org>
parents:
643
diff
changeset
|
25 |
@${CC} -o $@ ${OBJ} ${LDFLAGS} |
0 | 26 |
|
27 |
clean: |
|
180 | 28 |
@echo cleaning |
184 | 29 |
@rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz |
1 | 30 |
|
31 |
dist: clean |
|
180 | 32 |
@echo creating dist tarball |
33 |
@mkdir -p dwm-${VERSION} |
|
986
2d6f17254ba8
renamed config.default.h into config.h
Anselm R. Garbe <garbeam@gmail.com>
parents:
985
diff
changeset
|
34 |
@cp -R LICENSE Makefile README config.h config.mk \ |
990 | 35 |
dwm.1 ${SRC} dwm-${VERSION} |
180 | 36 |
@tar -cf dwm-${VERSION}.tar dwm-${VERSION} |
37 |
@gzip dwm-${VERSION}.tar |
|
38 |
@rm -rf dwm-${VERSION} |
|
1 | 39 |
|
40 |
install: all |
|
180 | 41 |
@echo installing executable file to ${DESTDIR}${PREFIX}/bin |
1 | 42 |
@mkdir -p ${DESTDIR}${PREFIX}/bin |
180 | 43 |
@cp -f dwm ${DESTDIR}${PREFIX}/bin |
44 |
@chmod 755 ${DESTDIR}${PREFIX}/bin/dwm |
|
45 |
@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 |
|
1 | 46 |
@mkdir -p ${DESTDIR}${MANPREFIX}/man1 |
796
75b1b25fe0d7
fixed quoting and a comment
Anselm R. Garbe <arg@suckless.org>
parents:
793
diff
changeset
|
47 |
@sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1 |
180 | 48 |
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1 |
1 | 49 |
|
50 |
uninstall: |
|
180 | 51 |
@echo removing executable file from ${DESTDIR}${PREFIX}/bin |
52 |
@rm -f ${DESTDIR}${PREFIX}/bin/dwm |
|
53 |
@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 |
|
54 |
@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
|
55 |
|
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
|
56 |
.PHONY: all options clean dist install uninstall |