From c4b9b4e3bb702472aa650aff91dfefb779f949e9 Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Sat, 7 Jan 2023 04:39:23 +0200 Subject: A cleaner build for the Debian package. Forwarded: not-needed Last-Update: 2019-12-27 Use install(1) to install programs and manual pages, thus taking care of not always stripping the debug symbols, too (leave that to debhelper) Gbp-Pq: Name debian-build.patch --- spipe/Makefile | 9 ++------- spiped/Makefile | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/spipe/Makefile b/spipe/Makefile index 467ee92..203a783 100644 --- a/spipe/Makefile +++ b/spipe/Makefile @@ -20,16 +20,11 @@ all: install:${PROG} mkdir -p ${BINDIR} - cp ${PROG} ${BINDIR}/_inst.${PROG}.$$$$_ && \ - strip ${BINDIR}/_inst.${PROG}.$$$$_ && \ - chmod 0555 ${BINDIR}/_inst.${PROG}.$$$$_ && \ - mv -f ${BINDIR}/_inst.${PROG}.$$$$_ ${BINDIR}/${PROG} + install -c -m 755 ${PROG} ${BINDIR} if ! [ -z "${MAN1DIR}" ]; then \ mkdir -p ${MAN1DIR}; \ for MPAGE in ${MAN1}; do \ - cp $$MPAGE ${MAN1DIR}/_inst.$$MPAGE.$$$$_ && \ - chmod 0444 ${MAN1DIR}/_inst.$$MPAGE.$$$$_ && \ - mv -f ${MAN1DIR}/_inst.$$MPAGE.$$$$_ ${MAN1DIR}/$$MPAGE; \ + install -c -m 644 $$MPAGE ${MAN1DIR}; \ done; \ fi diff --git a/spiped/Makefile b/spiped/Makefile index 85b451b..964a636 100644 --- a/spiped/Makefile +++ b/spiped/Makefile @@ -20,16 +20,11 @@ all: install:${PROG} mkdir -p ${BINDIR} - cp ${PROG} ${BINDIR}/_inst.${PROG}.$$$$_ && \ - strip ${BINDIR}/_inst.${PROG}.$$$$_ && \ - chmod 0555 ${BINDIR}/_inst.${PROG}.$$$$_ && \ - mv -f ${BINDIR}/_inst.${PROG}.$$$$_ ${BINDIR}/${PROG} + install -c -m 755 ${PROG} ${BINDIR} if ! [ -z "${MAN1DIR}" ]; then \ mkdir -p ${MAN1DIR}; \ for MPAGE in ${MAN1}; do \ - cp $$MPAGE ${MAN1DIR}/_inst.$$MPAGE.$$$$_ && \ - chmod 0444 ${MAN1DIR}/_inst.$$MPAGE.$$$$_ && \ - mv -f ${MAN1DIR}/_inst.$$MPAGE.$$$$_ ${MAN1DIR}/$$MPAGE; \ + install -c -m 644 $$MPAGE ${MAN1DIR}; \ done; \ fi -- cgit v1.2.3