forked from soccera/rdo
Merge pull request 'Allow specifying custom installation directory' (#16) from henriquehbr/rdo:custom-destdir into main
Reviewed-on: https://codeberg.org/sw1tchbl4d3/rdo/pulls/16
This commit is contained in:
commit
c1acb73270
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}
|
||||
|
||||
install: rdo
|
||||
cp rdo /usr/bin/rdo
|
||||
chown root:root /usr/bin/rdo
|
||||
chmod 755 /usr/bin/rdo
|
||||
chmod u+s /usr/bin/rdo
|
||||
cp rdo_sample.conf /etc/rdo.conf
|
||||
chmod 600 /etc/rdo.conf
|
||||
cp rdo ${DESTDIR}/usr/bin/rdo
|
||||
chown root:root ${DESTDIR}/usr/bin/rdo
|
||||
chmod 755 ${DESTDIR}/usr/bin/rdo
|
||||
chmod u+s ${DESTDIR}/usr/bin/rdo
|
||||
cp rdo_sample.conf ${DESTDIR}/etc/rdo.conf
|
||||
chmod 600 ${DESTDIR}/etc/rdo.conf
|
||||
|
||||
uninstall:
|
||||
rm /usr/bin/rdo
|
||||
|
|
Loading…
Add table
Reference in a new issue