commit 531cb39c1fb922082dd22a846eb7474230a10da7 parent cb0a601f08208245331447ec00db5de4b447ce50 Author: Christoph Lohmann <20h@r-36.net> Date: Sat, 26 Feb 2011 21:39:30 +0100 Making the installation abit more user friendly. Diffstat:
Makefile | | | 10 | +++++----- |
README.md | | | 9 | +++++++++ |
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile @@ -37,19 +37,19 @@ dist: clean @gzip ${NAME}-${VERSION}.tar @rm -rf ${NAME}-${VERSION} +etc: + @echo installing etc files into ${DESTDIR}/etc/${NAME} + @mkdir -p ${DESTDIR}/etc/${NAME} + @cp -R etc/${NAME}/* ${DESTDIR}/etc/${NAME} + install: all @echo installing executable file to ${DESTDIR}${PREFIX}/bin @mkdir -p ${DESTDIR}${PREFIX}/bin @cp -f ${NAME} ${DESTDIR}${PREFIX}/bin @chmod 755 ${DESTDIR}${PREFIX}/bin/${NAME} - @echo installing etc files into ${DESTDIR}/etc/${NAME} - @mkdir -p ${DESTDIR}/etc/${NAME} - @cp -R etc/${NAME} ${DESTDIR}/etc/${NAME} uninstall: @echo removing executable file from ${DESTDIR}${PREFIX}/bin @rm -f ${DESTDIR}${PREFIX}/bin/${NAME} - @echo removing etc files from ${DESTDIR}/etc/${NAME} - @rm -rf ${DESTDIR}/etc/${NAME} .PHONY: all options clean dist install uninstall diff --git a/README.md b/README.md @@ -13,6 +13,15 @@ Included are rc.d and conf.d files for being used in Archlinux. It is recommended to run this in conjunction with conn [0]. +## Installation + + # For compiling rfkilld. + make + # For installing just the rfkilld binary. + make install + # For installing the /etc/rfkilld files. + make etc + Have fun!