Use install instead of cp

This commit is contained in:
Swindles McCoop 2023-07-28 04:22:29 -04:00
parent 71560451d1
commit 938e1244a3

View file

@ -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\