aewl

view Makefile @ 69:cc68153c9a8a

Added tag 0.1 for changeset d31b5ad96b0ba7b5b0a30928fcf000428339a577
author Anselm R. Garbe <garbeam@wmii.de>
date Fri, 14 Jul 2006 18:40:36 +0200
parents f005d46462e8
children e5fff8249705
line source
1 # dwm - dynamic window manager
2 # (C)opyright MMVI Anselm R. Garbe
4 include config.mk
6 SRC = bar.c client.c dev.c draw.c event.c main.c util.c
7 OBJ = ${SRC:.c=.o}
8 MAN1 = dwm.1
9 BIN = dwm
11 all: config dwm
12 @echo finished
14 config:
15 @echo dwm build options:
16 @echo "LIBS = ${LIBS}"
17 @echo "CFLAGS = ${CFLAGS}"
18 @echo "LDFLAGS = ${LDFLAGS}"
19 @echo "CC = ${CC}"
21 .c.o:
22 @echo CC $<
23 @${CC} -c ${CFLAGS} $<
25 ${OBJ}: dwm.h
27 dwm: ${OBJ}
28 @echo LD $@
29 @${CC} -o $@ ${OBJ} ${LDFLAGS}
31 clean:
32 rm -f dwm *.o core
34 dist: clean
35 mkdir -p dwm-${VERSION}
36 cp -R Makefile README LICENSE config.mk *.h *.c ${MAN1} dwm-${VERSION}
37 tar -cf dwm-${VERSION}.tar dwm-${VERSION}
38 gzip dwm-${VERSION}.tar
39 rm -rf dwm-${VERSION}
41 install: all
42 @mkdir -p ${DESTDIR}${PREFIX}/bin
43 @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
44 @echo installed executable files to ${DESTDIR}${PREFIX}/bin
45 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
46 @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
47 @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
49 uninstall:
50 for i in ${BIN}; do \
51 rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
52 done
53 for i in ${MAN1}; do \
54 rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
55 done