dwm-meillo

view Makefile @ 243:bcf67e28a2b7

Added tag 0.8 for changeset cd15de32e173f8ce97bfe1c9b6607937b59056b4
author Anselm R.Garbe <arg@10ksloc.org>
date Thu, 10 Aug 2006 15:19:31 +0200
parents f9774fba6e17
children a47b3b0d7bf4
line source
1 # dwm - dynamic window manager
2 # (C)opyright MMVI Anselm R. Garbe
4 include config.mk
6 SRC = client.c draw.c event.c main.c tag.c util.c
7 OBJ = ${SRC:.c=.o}
9 all: options dwm
10 @echo finished
12 options:
13 @echo dwm build options:
14 @echo "CFLAGS = ${CFLAGS}"
15 @echo "LDFLAGS = ${LDFLAGS}"
16 @echo "CC = ${CC}"
18 .c.o:
19 @echo CC $<
20 @${CC} -c ${CFLAGS} $<
22 ${OBJ}: dwm.h config.h config.mk
24 config.h:
25 @echo creating $@ from config.default.h
26 @cp config.default.h $@
28 dwm: ${OBJ}
29 @echo LD $@
30 @${CC} -o $@ ${OBJ} ${LDFLAGS}
31 @strip $@
33 clean:
34 @echo cleaning
35 @rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
37 dist: clean
38 @echo creating dist tarball
39 @mkdir -p dwm-${VERSION}
40 @cp -R LICENSE Makefile README config.*.h config.mk \
41 dwm.1 dwm.h ${SRC} dwm-${VERSION}
42 @tar -cf dwm-${VERSION}.tar dwm-${VERSION}
43 @gzip dwm-${VERSION}.tar
44 @rm -rf dwm-${VERSION}
46 install: all
47 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
48 @mkdir -p ${DESTDIR}${PREFIX}/bin
49 @cp -f dwm ${DESTDIR}${PREFIX}/bin
50 @chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
51 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
52 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
53 @sed 's/VERSION/${VERSION}/g' < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
54 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
56 uninstall:
57 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
58 @rm -f ${DESTDIR}${PREFIX}/bin/dwm
59 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
60 @rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1
62 .PHONY: all options clean dist install uninstall