dwm-meillo

annotate Makefile @ 171:dac0793bf3f7

changing MASTERW value from 52 to 60 (in both, default and arg), I feel this is better now
author arg@10ksloc.org
date Wed, 02 Aug 2006 17:19:22 +0200
parents eca09aac3ccc
children af781faa40d6
rev   line source
garbeam@34 1 # dwm - dynamic window manager
garbeam@0 2 # (C)opyright MMVI Anselm R. Garbe
garbeam@0 3
garbeam@0 4 include config.mk
garbeam@0 5
garbeam@75 6 SRC = client.c draw.c event.c main.c tag.c util.c
garbeam@32 7 OBJ = ${SRC:.c=.o}
garbeam@34 8 MAN1 = dwm.1
garbeam@34 9 BIN = dwm
garbeam@0 10
garbeam@91 11 all: options dwm
garbeam@0 12 @echo finished
garbeam@0 13
garbeam@91 14 options:
garbeam@34 15 @echo dwm build options:
garbeam@1 16 @echo "CFLAGS = ${CFLAGS}"
garbeam@1 17 @echo "LDFLAGS = ${LDFLAGS}"
garbeam@1 18 @echo "CC = ${CC}"
garbeam@1 19
garbeam@0 20 .c.o:
garbeam@0 21 @echo CC $<
garbeam@0 22 @${CC} -c ${CFLAGS} $<
garbeam@0 23
garbeam@43 24 ${OBJ}: dwm.h
garbeam@3 25
garbeam@34 26 dwm: ${OBJ}
garbeam@3 27 @echo LD $@
garbeam@32 28 @${CC} -o $@ ${OBJ} ${LDFLAGS}
garbeam@0 29
garbeam@0 30 clean:
arg@143 31 rm -f dwm *.o dwm-${VERSION}.tar.gz
garbeam@1 32
garbeam@1 33 dist: clean
garbeam@34 34 mkdir -p dwm-${VERSION}
garbeam@68 35 cp -R Makefile README LICENSE config.mk *.h *.c ${MAN1} dwm-${VERSION}
garbeam@34 36 tar -cf dwm-${VERSION}.tar dwm-${VERSION}
garbeam@34 37 gzip dwm-${VERSION}.tar
garbeam@34 38 rm -rf dwm-${VERSION}
garbeam@1 39
garbeam@1 40 install: all
garbeam@1 41 @mkdir -p ${DESTDIR}${PREFIX}/bin
garbeam@1 42 @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
arg@116 43 @for i in ${BIN}; do \
arg@116 44 chmod 755 ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
arg@116 45 done
garbeam@1 46 @echo installed executable files to ${DESTDIR}${PREFIX}/bin
garbeam@1 47 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
garbeam@1 48 @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
arg@116 49 @for i in ${MAN1}; do \
arg@116 50 chmod 444 ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
arg@116 51 done
garbeam@1 52 @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
garbeam@1 53
garbeam@1 54 uninstall:
garbeam@1 55 for i in ${BIN}; do \
garbeam@1 56 rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
garbeam@1 57 done
garbeam@1 58 for i in ${MAN1}; do \
garbeam@1 59 rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
garbeam@1 60 done