1 # dwm - dynamic window manager
2 # See LICENSE file for copyright and license details.
6 SRC
= drw.c dwm.c util.c
12 @echo dwm build options
:
13 @echo
"CFLAGS = ${CFLAGS}"
14 @echo
"LDFLAGS = ${LDFLAGS}"
20 ${OBJ}: config.h config.mk
26 ${CC} -o
$@
${OBJ} ${LDFLAGS}
29 rm -f dwm
${OBJ} dwm-
${VERSION}.
tar.gz
32 mkdir
-p dwm-
${VERSION}
33 cp
-R LICENSE Makefile README config.def.h config.mk\
34 dwm
.1 drw.h util.h
${SRC} dwm.png transient.c dwm-
${VERSION}
35 tar -cf dwm-
${VERSION}.
tar dwm-
${VERSION}
36 gzip dwm-
${VERSION}.
tar
40 mkdir
-p
${DESTDIR}${PREFIX}/bin
41 cp
-f dwm
${DESTDIR}${PREFIX}/bin
42 chmod
755 ${DESTDIR}${PREFIX}/bin
/dwm
43 mkdir
-p
${DESTDIR}${MANPREFIX}/man1
44 sed
"s/VERSION/${VERSION}/g" < dwm
.1 > ${DESTDIR}${MANPREFIX}/man1
/dwm
.1
45 chmod
644 ${DESTDIR}${MANPREFIX}/man1
/dwm
.1
48 rm -f
${DESTDIR}${PREFIX}/bin
/dwm\
49 ${DESTDIR}${MANPREFIX}/man1
/dwm
.1
51 .PHONY
: all options
clean dist install uninstall