|
|
@ -20,14 +20,14 @@ options: |
|
|
|
|
|
|
|
|
|
|
|
${OBJ}: config.h config.mk |
|
|
|
${OBJ}: config.h config.mk |
|
|
|
|
|
|
|
|
|
|
|
config.h: |
|
|
|
config.h: patch |
|
|
|
cp config.def.h $@
|
|
|
|
cp config.def.h $@
|
|
|
|
|
|
|
|
|
|
|
|
dwm: ${OBJ} patch |
|
|
|
dwm: ${OBJ} |
|
|
|
${CC} -o $@ ${OBJ} ${LDFLAGS}
|
|
|
|
${CC} -o $@ ${OBJ} ${LDFLAGS}
|
|
|
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
clean: restore |
|
|
|
rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
|
|
|
|
rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz *.rej $.orig
|
|
|
|
|
|
|
|
|
|
|
|
dist: clean |
|
|
|
dist: clean |
|
|
|
mkdir -p dwm-${VERSION}
|
|
|
|
mkdir -p dwm-${VERSION}
|
|
|
@ -49,7 +49,14 @@ 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 |
|
|
|
orig: |
|
|
|
|
|
|
|
find . -iname '*.[ch]' -exec sh -c 'cp $$0 $$0.unpatched' {} \;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
restore: |
|
|
|
|
|
|
|
find . -iname '*.unpatched' \
|
|
|
|
|
|
|
|
-exec sh -c 'mv $$0 "$${0%.unpatched}"' {} \;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
patch: orig |
|
|
|
find ${PATCHESDIR} -iname '*.diff' -exec sh -c 'patch < $$0' {} \;
|
|
|
|
find ${PATCHESDIR} -iname '*.diff' -exec sh -c 'patch < $$0' {} \;
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all options clean dist install uninstall |
|
|
|
.PHONY: all options clean dist install uninstall orig patch restore |
|
|
|