Browse Source

"patch" target

dwm6.4
Ivan Polyakov 3 years ago
parent
commit
05ee101f85
  1. 6
      Makefile
  2. 1
      config.mk

6
Makefile

@ -8,6 +8,7 @@ OBJ = ${SRC:.c=.o}
all: options dwm all: options dwm
options: options:
@echo dwm build options: @echo dwm build options:
@echo "CFLAGS = ${CFLAGS}" @echo "CFLAGS = ${CFLAGS}"
@ -22,7 +23,7 @@ ${OBJ}: config.h config.mk
config.h: config.h:
cp config.def.h $@ cp config.def.h $@
dwm: ${OBJ} dwm: ${OBJ} patch
${CC} -o $@ ${OBJ} ${LDFLAGS} ${CC} -o $@ ${OBJ} ${LDFLAGS}
clean: clean:
@ -48,4 +49,7 @@ uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/dwm\ rm -f ${DESTDIR}${PREFIX}/bin/dwm\
${DESTDIR}${MANPREFIX}/man1/dwm.1 ${DESTDIR}${MANPREFIX}/man1/dwm.1
patch: patches/*.diff
find ${PATCHESDIR} -iname '*.diff' -exec sh -c 'patch < $$0' {} \;
.PHONY: all options clean dist install uninstall .PHONY: all options clean dist install uninstall

1
config.mk

@ -6,6 +6,7 @@ VERSION = 6.2
# paths # paths
PREFIX = /usr/local PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man MANPREFIX = ${PREFIX}/share/man
PATCHESDIR = patches
X11INC = /usr/X11R6/include X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib X11LIB = /usr/X11R6/lib

Loading…
Cancel
Save