dwm-meillo

annotate Makefile @ 2:a79188fe4a40

added new stuff
author Anselm R. Garbe <garbeam@wmii.de>
date Mon, 10 Jul 2006 18:35:39 +0200
parents f10194d4b76d
children e969f3575b7a
rev   line source
garbeam@0 1 # gridwm - grid window manager
garbeam@0 2 # (C)opyright MMVI Anselm R. Garbe
garbeam@0 3
garbeam@0 4 include config.mk
garbeam@0 5
garbeam@2 6 WMSRC = wm.c draw.c util.c
garbeam@2 7 WMOBJ = ${WMSRC:.c=.o}
garbeam@1 8 MAN = gridwm.1
garbeam@1 9 BIN = gridwm gridmenu
garbeam@0 10
garbeam@1 11 all: config gridwm
garbeam@0 12 @echo finished
garbeam@0 13
garbeam@1 14 config:
garbeam@1 15 @echo gridwm build options:
garbeam@1 16 @echo "LIBS = ${LIBS}"
garbeam@1 17 @echo "CFLAGS = ${CFLAGS}"
garbeam@1 18 @echo "LDFLAGS = ${LDFLAGS}"
garbeam@1 19 @echo "CC = ${CC}"
garbeam@1 20
garbeam@0 21 .c.o:
garbeam@0 22 @echo CC $<
garbeam@0 23 @${CC} -c ${CFLAGS} $<
garbeam@0 24
garbeam@2 25 ${WMOBJ}: wm.h draw.h config.h
garbeam@0 26
garbeam@2 27 gridwm: ${WMOBJ}
garbeam@0 28 @echo LD $@
garbeam@2 29 @${CC} -o $@ ${WMOBJ} ${LDFLAGS}
garbeam@0 30
garbeam@0 31 clean:
garbeam@0 32 rm -f gridwm *.o
garbeam@1 33
garbeam@1 34 dist: clean
garbeam@1 35 mkdir -p gridwm-${VERSION}
garbeam@2 36 cp -R Makefile README LICENSE config.mk ${WMSRC} ${MAN} gridwm-${VERSION}
garbeam@1 37 tar -cf gridwm-${VERSION}.tar gridwm-${VERSION}
garbeam@1 38 gzip gridwm-${VERSION}.tar
garbeam@1 39 rm -rf gridwm-${VERSION}
garbeam@1 40
garbeam@1 41 install: all
garbeam@1 42 @mkdir -p ${DESTDIR}${PREFIX}/bin
garbeam@1 43 @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
garbeam@1 44 @echo installed executable files to ${DESTDIR}${PREFIX}/bin
garbeam@1 45 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
garbeam@1 46 @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
garbeam@1 47 @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
garbeam@1 48
garbeam@1 49 uninstall:
garbeam@1 50 for i in ${BIN}; do \
garbeam@1 51 rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
garbeam@1 52 done
garbeam@1 53 for i in ${MAN1}; do \
garbeam@1 54 rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
garbeam@1 55 done