aewl

view 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
line source
1 # dwm - dynamic window manager
2 # (C)opyright MMVI-MMVII Anselm R. Garbe
4 include config.mk
7 all: options dwm
9 options:
10 @echo dwm build options:
11 @echo "CFLAGS = ${CFLAGS}"
12 @echo "LDFLAGS = ${LDFLAGS}"
13 @echo "CC = ${CC}"
15 dwm.o: dwm.c config.h config.mk
16 @echo CC $<
17 @${CC} -c ${CFLAGS} $<
19 dwm: dwm.o
20 @echo CC -o $@
21 @${CC} -o $@ dwm.o ${LDFLAGS}
22 @strip $@
24 clean:
25 @echo cleaning
26 @rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
28 dist: clean
29 @echo creating dist tarball
30 @mkdir -p dwm-${VERSION}
31 @cp -R LICENSE Makefile README config.*.h config.mk \
32 dwm.1 dwm.h ${SRC} dwm-${VERSION}
33 @tar -cf dwm-${VERSION}.tar dwm-${VERSION}
34 @gzip dwm-${VERSION}.tar
35 @rm -rf dwm-${VERSION}
37 install: all
38 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
39 @mkdir -p ${DESTDIR}${PREFIX}/bin
40 @cp -f dwm ${DESTDIR}${PREFIX}/bin
41 @chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
42 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
43 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
44 @sed 's/VERSION/${VERSION}/g' < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
45 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
47 uninstall:
48 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
49 @rm -f ${DESTDIR}${PREFIX}/bin/dwm
50 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
51 @rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1
53 .PHONY: all options clean dist install uninstall