Skip to content

Commit

Permalink
Replace install -D with mkdir
Browse files Browse the repository at this point in the history
The -D flag of install is not portable (for example,
it is not present in the FreeBSD version of the
utility). Use mkdir instead.
  • Loading branch information
0mp authored Oct 6, 2020
1 parent 64397f2 commit 91d52b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ clean:
-rm ${OBJS} ${PROG}

install: all
install -D -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG}
install -D -m 644 ${PROG}.1 ${DESTDIR}${MANPREFIX}/man1/${PROG}.1
mkdir -p ${DESTDIR}${PREFIX}/bin
install -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG}
mkdir -p ${DESTDIR}${MANPREFIX}/man1
install -m 644 ${PROG}.1 ${DESTDIR}${MANPREFIX}/man1/${PROG}.1

uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/${PROG}
Expand Down

0 comments on commit 91d52b3

Please sign in to comment.