|
|
@ -37,7 +37,7 @@ dist: clean |
|
|
|
gzip dwm-${VERSION}.tar
|
|
|
|
gzip dwm-${VERSION}.tar
|
|
|
|
rm -rf dwm-${VERSION}
|
|
|
|
rm -rf dwm-${VERSION}
|
|
|
|
|
|
|
|
|
|
|
|
install: all |
|
|
|
install: |
|
|
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
|
|
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
|
|
|
cp -f dwm ${DESTDIR}${PREFIX}/bin
|
|
|
|
cp -f dwm ${DESTDIR}${PREFIX}/bin
|
|
|
|
chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
|
|
|
|
chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
|
|
|
@ -49,14 +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
|
|
|
|
|
|
|
|
|
|
|
|
orig: |
|
|
|
backup: |
|
|
|
find . -iname '*.[ch]' -exec sh -c 'cp $$0 $$0.unpatched' {} \;
|
|
|
|
find . -iname '*.[ch]' -exec sh -c 'cp $$0 $$0.backup' {} \;
|
|
|
|
|
|
|
|
|
|
|
|
restore: |
|
|
|
restore: |
|
|
|
find . -iname '*.unpatched' \
|
|
|
|
find . -iname '*.backup' \
|
|
|
|
-exec sh -c 'mv $$0 "$${0%.unpatched}"' {} \;
|
|
|
|
-exec sh -c 'mv $$0 "$${0%.backup}"' {} \;
|
|
|
|
|
|
|
|
|
|
|
|
patch: orig |
|
|
|
patch: backup |
|
|
|
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 orig patch restore |
|
|
|
.PHONY: all options clean dist install uninstall backup patch restore |
|
|
|