aewl

view Makefile @ 772:0c1e9952a278

naming change from dwm to aewl; cleanups
author meillo@marmaro.de
date Sat, 06 Dec 2008 11:15:51 +0100
parents 427608ef0687
children 794a83e74023
line source
1 # aewl - a fork of dwm, the dynamic window manager
2 # (C)opyright MMVI-MMVII Anselm R. Garbe
4 include config.mk
7 all: options aewl
9 options:
10 @echo aewl build options:
11 @echo "CFLAGS = ${CFLAGS}"
12 @echo "LDFLAGS = ${LDFLAGS}"
13 @echo "CC = ${CC}"
15 aewl.o: aewl.c config.h config.mk
16 @echo CC $<
17 @${CC} -c ${CFLAGS} $<
19 aewl: aewl.o
20 @echo CC -o $@
21 @${CC} -o $@ aewl.o ${LDFLAGS}
22 @strip $@
24 clean:
25 @echo cleaning
26 @rm -f aewl *.o aewl-*.tar.gz
28 dist: clean
29 @echo creating dist tarball
30 @mkdir -p aewl-${VERSION}
31 @cp -R LICENSE Makefile README config.h config.mk \
32 aewl.1 aewl.h ${SRC} aewl-${VERSION}
33 @tar -cf aewl-${VERSION}.tar aewl-${VERSION}
34 @gzip aewl-${VERSION}.tar
35 @rm -rf aewl-${VERSION}
37 install: all
38 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
39 @mkdir -p ${DESTDIR}${PREFIX}/bin
40 @cp -f aewl ${DESTDIR}${PREFIX}/bin
41 @chmod 755 ${DESTDIR}${PREFIX}/bin/aewl
42 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
43 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
44 @sed 's/VERSION/${VERSION}/g' < aewl.1 > ${DESTDIR}${MANPREFIX}/man1/aewl.1
45 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/aewl.1
47 uninstall:
48 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
49 @rm -f ${DESTDIR}${PREFIX}/bin/aewl
50 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
51 @rm -f ${DESTDIR}${MANPREFIX}/man1/aewl.1
53 .PHONY: all options clean dist install uninstall