projects
/
xmenu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1b566a9
)
make makefile portable
author
phillbush
<phillbush@cock.li>
Tue, 6 Oct 2020 16:41:49 +0000
(13:41 -0300)
committer
phillbush
<phillbush@cock.li>
Tue, 6 Oct 2020 16:41:49 +0000
(13:41 -0300)
Makefile
patch
|
blob
|
blame
|
history
diff --git
a/Makefile
b/Makefile
index
58079ce
..
3a3b05d
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-17,8
+17,10
@@
clean:
-rm ${OBJS} ${PROG}
install: all
-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}
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/${PROG}