aewl

annotate Makefile @ 754:4c12dccc288d

this is the (second) begin of aewl - my personal stipped down dwm
author meillo@marmaro.de
date Thu, 29 May 2008 23:12:30 +0200
parents c459e05a61a8
children 427608ef0687
rev   line source
garbeam@34 1 # dwm - dynamic window manager
arg@741 2 # (C)opyright MMVI-MMVII Anselm R. Garbe
garbeam@0 3
garbeam@0 4 include config.mk
garbeam@0 5
garbeam@0 6
garbeam@91 7 all: options dwm
garbeam@0 8
garbeam@91 9 options:
garbeam@34 10 @echo dwm build options:
garbeam@1 11 @echo "CFLAGS = ${CFLAGS}"
garbeam@1 12 @echo "LDFLAGS = ${LDFLAGS}"
garbeam@1 13 @echo "CC = ${CC}"
garbeam@1 14
meillo@754 15 dwm.o: dwm.c config.h config.mk
garbeam@0 16 @echo CC $<
garbeam@0 17 @${CC} -c ${CFLAGS} $<
garbeam@0 18
meillo@754 19 dwm: dwm.o
arg@729 20 @echo CC -o $@
meillo@754 21 @${CC} -o $@ dwm.o ${LDFLAGS}
arg@204 22 @strip $@
garbeam@0 23
garbeam@0 24 clean:
arg@180 25 @echo cleaning
arg@184 26 @rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
garbeam@1 27
garbeam@1 28 dist: clean
arg@180 29 @echo creating dist tarball
arg@180 30 @mkdir -p dwm-${VERSION}
arg@180 31 @cp -R LICENSE Makefile README config.*.h config.mk \
arg@180 32 dwm.1 dwm.h ${SRC} dwm-${VERSION}
arg@180 33 @tar -cf dwm-${VERSION}.tar dwm-${VERSION}
arg@180 34 @gzip dwm-${VERSION}.tar
arg@180 35 @rm -rf dwm-${VERSION}
garbeam@1 36
garbeam@1 37 install: all
arg@180 38 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
garbeam@1 39 @mkdir -p ${DESTDIR}${PREFIX}/bin
arg@180 40 @cp -f dwm ${DESTDIR}${PREFIX}/bin
arg@180 41 @chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
arg@180 42 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
garbeam@1 43 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
arg@213 44 @sed 's/VERSION/${VERSION}/g' < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
arg@180 45 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
garbeam@1 46
garbeam@1 47 uninstall:
arg@180 48 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
arg@180 49 @rm -f ${DESTDIR}${PREFIX}/bin/dwm
arg@180 50 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
arg@180 51 @rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1
arg@174 52
arg@174 53 .PHONY: all options clean dist install uninstall