1 # dwm - dynamic window manager
2 # See LICENSE file for copyright and license details.
6 SRC
= drw.c dwm.c util.c
14 ${OBJ}: config.h config.mk
20 ${CC} -o
$@
${OBJ} ${LDFLAGS}
23 rm -f dwm
${OBJ} dwm-
${VERSION}.
tar.gz
26 mkdir
-p dwm-
${VERSION}
27 cp
-R LICENSE Makefile README config.def.h config.mk\
28 dwm
.1 drw.h util.h
${SRC} dwm.png transient.c dwm-
${VERSION}
29 tar -cf dwm-
${VERSION}.
tar dwm-
${VERSION}
30 gzip dwm-
${VERSION}.
tar
34 mkdir
-p
${DESTDIR}${PREFIX}/bin
35 cp
-f dwm
${DESTDIR}${PREFIX}/bin
36 chmod
755 ${DESTDIR}${PREFIX}/bin
/dwm
37 mkdir
-p
${DESTDIR}${MANPREFIX}/man1
38 sed
"s/VERSION/${VERSION}/g" < dwm
.1 > ${DESTDIR}${MANPREFIX}/man1
/dwm
.1
39 chmod
644 ${DESTDIR}${MANPREFIX}/man1
/dwm
.1
42 rm -f
${DESTDIR}${PREFIX}/bin
/dwm\
43 ${DESTDIR}${MANPREFIX}/man1
/dwm
.1
45 .PHONY
: all clean dist install uninstall