diff --git a/Makefile b/Makefile index 77bcbc0..cb4c969 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ OBJ = ${SRC:.c=.o} all: options dwm + options: @echo dwm build options: @echo "CFLAGS = ${CFLAGS}" @@ -22,7 +23,7 @@ ${OBJ}: config.h config.mk config.h: cp config.def.h $@ -dwm: ${OBJ} +dwm: ${OBJ} patch ${CC} -o $@ ${OBJ} ${LDFLAGS} clean: @@ -48,4 +49,7 @@ uninstall: rm -f ${DESTDIR}${PREFIX}/bin/dwm\ ${DESTDIR}${MANPREFIX}/man1/dwm.1 +patch: patches/*.diff + find ${PATCHESDIR} -iname '*.diff' -exec sh -c 'patch < $$0' {} \; + .PHONY: all options clean dist install uninstall diff --git a/config.mk b/config.mk index 6d36cb7..75169d7 100644 --- a/config.mk +++ b/config.mk @@ -6,6 +6,7 @@ VERSION = 6.2 # paths PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man +PATCHESDIR = patches X11INC = /usr/X11R6/include X11LIB = /usr/X11R6/lib