diff options
author | merakor <cem@ckyln.com> | 2020-04-30 17:46:40 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-04-30 17:46:40 +0000 |
commit | 706f63e053c7079fcea43f24f5d9a4366e379fd0 (patch) | |
tree | 17fa55d7fc76161d4e1ee1281cd4dc095715d8ef | |
parent | c31f84523d6a313f3f372da574048474b1a28bd5 (diff) | |
download | cpt-706f63e053c7079fcea43f24f5d9a4366e379fd0.tar.gz |
Makefile: portability fixes
FossilOrigin-Name: 8e350a7fa8720f8b85fa8c9eba0482888e618f47f11c02875b230a6bdc4c7c77
-rw-r--r-- | Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 |