diff -ru optipng-0.5.4/src/scripts/gcc.mak optipng-0.5.4.patched/src/scripts/gcc.mak --- optipng-0.5.4/src/scripts/gcc.mak 2006-11-23 11:55:25.000000000 +0100 +++ optipng-0.5.4.patched/src/scripts/gcc.mak 2006-11-23 11:56:28.000000000 +0100 @@ -64,17 +64,17 @@ install: $(OPTIPNG) - -@if [ ! -d ${bindir} ]; then mkdir -p ${bindir}; fi - -@if [ ! -d ${man1dir} ]; then mkdir -p ${man1dir}; fi - -@rm -f ${bindir}/$(OPTIPNG) - -@rm -f ${man1dir}/optipng.1 - cp -p $(OPTIPNG) ${bindir} - cp -p ../man/optipng.1 ${man1dir} + -@if [ ! -d ${DESTDIR}/${bindir} ]; then mkdir -p ${DESTDIR}/${bindir}; fi + -@if [ ! -d ${DESTDIR}/${man1dir} ]; then mkdir -p ${DESTDIR}/${man1dir}; fi + -@rm -f ${DESTDIR}/${bindir}/$(OPTIPNG) + -@rm -f ${DESTDIR}/${man1dir}/optipng.1 + cp -p $(OPTIPNG) ${DESTDIR}/${bindir} + cp -p ../man/optipng.1 ${DESTDIR}/${man1dir} uninstall: - rm -f ${bindir}/$(OPTIPNG) - rm -f ${man1dir}/optipng.1 + rm -f ${DESTDIR}/${bindir}/$(OPTIPNG) + rm -f ${DESTDIR}/${man1dir}/optipng.1 clean: