summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSwindles McCoop <swindlesmccoop@gmail.com>2023-07-28 04:22:29 -0400
committerSwindles McCoop <swindlesmccoop@gmail.com>2023-07-28 04:22:29 -0400
commit938e1244a313a46a24068330f89dd56563ebb015 (patch)
treec28b901adcac39c06fafc296d2a92b20392c3a4e
parent71560451d171b4fce469d1e6f6c3d21a0900a3ee (diff)
Use install instead of cp
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index fe9df31..11a49c4 100644
--- a/Makefile
+++ b/Makefile
@@ -35,14 +35,12 @@ dist: clean
install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
- cp -f dwm ${DESTDIR}${PREFIX}/bin
- chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
+ install -Dm755 ./dwm ${DESTDIR}${PREFIX}/bin
mkdir -p ${DESTDIR}${MANPREFIX}/man1
sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
mkdir -p ${DESTDIR}${PREFIX}/share/dwm
- cp -f larbs.mom ${DESTDIR}${PREFIX}/share/dwm
- chmod 644 ${DESTDIR}${PREFIX}/share/dwm/larbs.mom
+ install -Dm644 ./larbs.mom ${DESTDIR}${PREFIX}/share/dwm
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/dwm\