aewl

view Makefile @ 758:bc512840e5a5

removed union arg (using const char* cmd now) whole bar toggles view if clicked now
author meillo@marmaro.de
date Fri, 30 May 2008 21:57:51 +0200
parents 4c12dccc288d
children 45f23169563e
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 *.o 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