cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 8e9e8f8f86af3a7eab08d6cfd61dcd0d0362db2c
parent 6e6178bb92eb6d4d63dd30fe3201d4add13e6229
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 30 Apr 2020 20:46:41 +0300

Makefile: portability fixes

Diffstat:
MMakefile | 13++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -4,15 +4,22 @@ MANPREFIX = ${PREFIX}/share/man MAN1 = ${MANPREFIX}/man1 install: - install -Dm755 -t ${DESTDIR}${BINDIR} kiss - install -Dm755 -t ${DESTDIR}${BINDIR} contrib/* - install -Dm644 -t ${DESTDIR}${MAN1} man/*.1 + mkdir -p ${DESTDIR}${BINDIR} + cp kiss ${DESTDIR}${BINDIR}/kiss + chmod 755 ${DESTDIR}${BINDIR}/kiss + for bin in contrib/* ; do cp $${bin} ${DESTDIR}${BINDIR}/$${bin##*/}; \ + chmod 755 ${DESTDIR}${BINDIR}/$${bin##*/} ; done + + mkdir -p ${DESTDIR}${MAN1} + for man in man/*.1 ; do cp $${man} ${DESTDIR}${MAN1}/$${man##*/}; \ + chmod 644 ${DESTDIR}${MAN1}/$${man##*/} ; done uninstall: rm -f ${DESTDIR}${BINDIR}/kiss for bin in contrib/* ; do rm -f ${DESTDIR}${BINDIR}/$${bin##*/} ; done rm -f ${DESTDIR}${MAN1}/kiss.1 ${DESTDIR}${MAN1}/kiss.1 + rm -f ${DESTDIR}${MAN1}/kiss-contrib.1 ${DESTDIR}${MAN1}/kiss-contrib.1 .PHONY: install uninstall