Allow specifying custom installation directory
This commit is contained in:
parent
7ab7f4bd65
commit
415eab0e6b
1 changed files with 6 additions and 6 deletions
12
Makefile
12
Makefile
|
@ -15,12 +15,12 @@ debug: rdo.c
|
||||||
${CC} ${CFLAGS_DEBUG} rdo.c -o rdo ${LIBS}
|
${CC} ${CFLAGS_DEBUG} rdo.c -o rdo ${LIBS}
|
||||||
|
|
||||||
install: rdo
|
install: rdo
|
||||||
cp rdo /usr/bin/rdo
|
cp rdo ${DESTDIR}/usr/bin/rdo
|
||||||
chown root:root /usr/bin/rdo
|
chown root:root ${DESTDIR}/usr/bin/rdo
|
||||||
chmod 755 /usr/bin/rdo
|
chmod 755 ${DESTDIR}/usr/bin/rdo
|
||||||
chmod u+s /usr/bin/rdo
|
chmod u+s ${DESTDIR}/usr/bin/rdo
|
||||||
cp rdo_sample.conf /etc/rdo.conf
|
cp rdo_sample.conf ${DESTDIR}/etc/rdo.conf
|
||||||
chmod 600 /etc/rdo.conf
|
chmod 600 ${DESTDIR}/etc/rdo.conf
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm /usr/bin/rdo
|
rm /usr/bin/rdo
|
||||||
|
|
Loading…
Add table
Reference in a new issue