dwm-meillo

view Makefile @ 165:4d828b431b72

added Acroread.* and MPlayer.* to config.arg.h rules
author arg@10ksloc.org
date Wed, 02 Aug 2006 16:38:21 +0200
parents eca09aac3ccc
children af781faa40d6
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}
8 MAN1 = dwm.1
9 BIN = dwm
11 all: options dwm
12 @echo finished
14 options:
15 @echo dwm build options:
16 @echo "CFLAGS = ${CFLAGS}"
17 @echo "LDFLAGS = ${LDFLAGS}"
18 @echo "CC = ${CC}"
20 .c.o:
21 @echo CC $<
22 @${CC} -c ${CFLAGS} $<
24 ${OBJ}: dwm.h
26 dwm: ${OBJ}
27 @echo LD $@
28 @${CC} -o $@ ${OBJ} ${LDFLAGS}
30 clean:
31 rm -f dwm *.o dwm-${VERSION}.tar.gz
33 dist: clean
34 mkdir -p dwm-${VERSION}
35 cp -R Makefile README LICENSE config.mk *.h *.c ${MAN1} dwm-${VERSION}
36 tar -cf dwm-${VERSION}.tar dwm-${VERSION}
37 gzip dwm-${VERSION}.tar
38 rm -rf dwm-${VERSION}
40 install: all
41 @mkdir -p ${DESTDIR}${PREFIX}/bin
42 @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
43 @for i in ${BIN}; do \
44 chmod 755 ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
45 done
46 @echo installed executable files to ${DESTDIR}${PREFIX}/bin
47 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
48 @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
49 @for i in ${MAN1}; do \
50 chmod 444 ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
51 done
52 @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
54 uninstall:
55 for i in ${BIN}; do \
56 rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
57 done
58 for i in ${MAN1}; do \
59 rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
60 done