Improved makefile; install is not specified in posix

This commit is contained in:
Ashish Kumar Yadav 2021-03-08 22:12:22 +05:30
parent 6bc088c80e
commit 5ea366a162

View file

@ -38,13 +38,14 @@ xgetrootname/xgetrootname: xgetrootname/xgetrootname.c
clean: clean:
rm -f dwmblocks sigdwmblocks/sigdwmblocks xgetrootname/xgetrootname rm -f dwmblocks sigdwmblocks/sigdwmblocks xgetrootname/xgetrootname
BINDIR = ${DESTDIR}${PREFIX}/bin
install: all install: all
mkdir -p ${DESTDIR}${PREFIX}/bin mkdir -p ${BINDIR}
install -m 0755 dwmblocks ${DESTDIR}${PREFIX}/bin/dwmblocks cp -f dwmblocks sigdwmblocks/sigdwmblocks xgetrootname/xgetrootname ${BINDIR}
install -m 0755 sigdwmblocks/sigdwmblocks ${DESTDIR}${PREFIX}/bin/sigdwmblocks chmod 755 ${BINDIR}/dwmblocks ${BINDIR}/sigdwmblocks ${BINDIR}/xgetrootname
install -m 0755 xgetrootname/xgetrootname ${DESTDIR}${PREFIX}/bin/xgetrootname
uninstall: uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/dwmblocks ${DESTDIR}${PREFIX}/bin/sigdwmblocks ${DESTDIR}${PREFIX}/bin/xgetrootname rm -f ${BINDIR}/dwmblocks ${BINDIR}/sigdwmblocks ${BINDIR}/xgetrootname
.PHONY: all clean install uninstall .PHONY: all clean install uninstall