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} @@ -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 @@ -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: @@ -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

1
config.mk

@ -6,6 +6,7 @@ VERSION = 6.2 @@ -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

Loading…
Cancel
Save