make makefile portable

This commit is contained in:
phillbush 2020-10-06 13:41:49 -03:00
parent 1b566a9054
commit 1ca0d0d6dc

View File

@ -17,8 +17,10 @@ clean:
-rm ${OBJS} ${PROG} -rm ${OBJS} ${PROG}
install: all install: all
install -D -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG} mkdir -p ${DESTDIR}${PREFIX}/bin
install -D -m 644 ${PROG}.1 ${DESTDIR}${MANPREFIX}/man1/${PROG}.1 install -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG}
mkdir -p ${DESTDIR}${MANPREFIX}/man1
install -m 644 ${PROG}.1 ${DESTDIR}${MANPREFIX}/man1/${PROG}.1
uninstall: uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/${PROG} rm -f ${DESTDIR}${PREFIX}/bin/${PROG}