Browse Source

make makefile portable

master
phillbush 4 years ago
parent
commit
1ca0d0d6dc
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      Makefile

+ 4
- 2
Makefile 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}
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: uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/${PROG} rm -f ${DESTDIR}${PREFIX}/bin/${PROG}


Loading…
Cancel
Save