$NetBSD: patch-aa,v 1.2 2008/05/25 11:46:33 tnn Exp $ --- Makefile.orig 2008-05-10 18:39:01.000000000 +0200 +++ Makefile @@ -20,6 +20,7 @@ ${OBJ}: config.h config.mk dvtm: ${OBJ} @echo CC -o $@ @${CC} -o $@ ${OBJ} ${LDFLAGS} + @sed "s/VERSION/${VERSION}/g" < dvtm.1 > dvtm.1.out unicode: clean @make LIBS='${LIBS_UTF8}' CFLAGS='${CFLAGS} -DUSE_UTF8' @@ -45,15 +46,12 @@ install: dvtm @echo stripping executable @strip -s dvtm @echo installing executable file to ${DESTDIR}${PREFIX}/bin - @mkdir -p ${DESTDIR}${PREFIX}/bin - @cp -f dvtm ${DESTDIR}${PREFIX}/bin - @chmod 755 ${DESTDIR}${PREFIX}/bin/dvtm - @cp -f dvtm-status ${DESTDIR}${PREFIX}/bin - @chmod 755 ${DESTDIR}${PREFIX}/bin/dvtm-status + @install -m 755 -d ${DESTDIR}${PREFIX}/bin + @install -m 755 -c dvtm ${DESTDIR}${PREFIX}/bin + @install -m 755 -c dvtm-status ${DESTDIR}${PREFIX}/bin @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 - @mkdir -p ${DESTDIR}${MANPREFIX}/man1 - @sed "s/VERSION/${VERSION}/g" < dvtm.1 > ${DESTDIR}${MANPREFIX}/man1/dvtm.1 - @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dvtm.1 + @install -m 755 -d ${DESTDIR}${MANPREFIX}/man1 + @install -m 644 -c dvtm.1.out ${DESTDIR}${MANPREFIX}/man1/dvtm.1 uninstall: @echo removing executable file from ${DESTDIR}${PREFIX}/bin