X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=Makefile;h=c2a45639e24e8762af95f8f90a63117843f1ea0f;hp=3433894d194ead8eb09c297b37b7e0f0fa1a740e;hb=dc5c070c44d9af434405c8d6538abd06299d3298;hpb=dba23062bad40afb1a90f60b6897cf9e1ca5035b diff --git a/Makefile b/Makefile index 3433894..c2a4563 100644 --- a/Makefile +++ b/Makefile @@ -8,12 +8,11 @@ OBJ = ${SRC:.c=.o} MAN1 = dwm.1 BIN = dwm -all: config dwm +all: options dwm @echo finished -config: +options: @echo dwm build options: - @echo "LIBS = ${LIBS}" @echo "CFLAGS = ${CFLAGS}" @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" @@ -22,14 +21,18 @@ config: @echo CC $< @${CC} -c ${CFLAGS} $< -${OBJ}: dwm.h +${OBJ}: dwm.h config.h + +config.h: + @echo missing config.h created + @cp config.default.h $@ dwm: ${OBJ} @echo LD $@ @${CC} -o $@ ${OBJ} ${LDFLAGS} clean: - rm -f dwm *.o core dwm-${VERSION}.tar.gz + rm -f dwm *.o dwm-${VERSION}.tar.gz dist: clean mkdir -p dwm-${VERSION} @@ -41,9 +44,15 @@ dist: clean install: all @mkdir -p ${DESTDIR}${PREFIX}/bin @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin + @for i in ${BIN}; do \ + chmod 755 ${DESTDIR}${PREFIX}/bin/`basename $$i`; \ + done @echo installed executable files to ${DESTDIR}${PREFIX}/bin @mkdir -p ${DESTDIR}${MANPREFIX}/man1 @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 + @for i in ${MAN1}; do \ + chmod 444 ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ + done @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1 uninstall: @@ -53,3 +62,5 @@ uninstall: for i in ${MAN1}; do \ rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ done + +.PHONY: all options clean dist install uninstall