Improved makefile; install is not specified in posix
This commit is contained in:
parent
6bc088c80e
commit
5ea366a162
11
GNUmakefile
11
GNUmakefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue