dwm-meillo

view Makefile @ 17:aaf520f53110

updated README
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 18:59:09 +0200
parents ea9c08ec4b48
children 1efa34c6e1b6
line source
1 # gridwm - grid window manager
2 # (C)opyright MMVI Anselm R. Garbe
4 include config.mk
6 WMSRC = bar.c client.c cmd.c draw.c event.c key.c util.c wm.c
7 WMOBJ = ${WMSRC:.c=.o}
8 MENSRC = menu.c draw.c util.c
9 MENOBJ = ${MENSRC:.c=.o}
10 MAN1 = gridwm.1 gridmenu.1
11 BIN = gridwm gridmenu
13 all: config gridwm gridmenu
14 @echo finished
16 config:
17 @echo gridwm build options:
18 @echo "LIBS = ${LIBS}"
19 @echo "CFLAGS = ${CFLAGS}"
20 @echo "LDFLAGS = ${LDFLAGS}"
21 @echo "CC = ${CC}"
23 .c.o:
24 @echo CC $<
25 @${CC} -c ${CFLAGS} $<
27 ${WMOBJ}: wm.h draw.h config.h util.h
29 gridmenu: ${MENOBJ}
30 @echo LD $@
31 @${CC} -o $@ ${MENOBJ} ${LDFLAGS}
33 gridwm: ${WMOBJ}
34 @echo LD $@
35 @${CC} -o $@ ${WMOBJ} ${LDFLAGS}
37 clean:
38 rm -f gridwm gridmenu *.o core
40 dist: clean
41 mkdir -p gridwm-${VERSION}
42 cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION}
43 tar -cf gridwm-${VERSION}.tar gridwm-${VERSION}
44 gzip gridwm-${VERSION}.tar
45 rm -rf gridwm-${VERSION}
47 install: all
48 @mkdir -p ${DESTDIR}${PREFIX}/bin
49 @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
50 @echo installed executable files to ${DESTDIR}${PREFIX}/bin
51 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
52 @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
53 @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
55 uninstall:
56 for i in ${BIN}; do \
57 rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
58 done
59 for i in ${MAN1}; do \
60 rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
61 done