~goorzhel/rstdm

c9ccc2f05b56c550a055e8722ae01553ab7fc36d — Antonio Gurgel 28 days ago 6641551
Add Makefile
2 files changed, 28 insertions(+), 1 deletions(-)

M Makefile
M README.md
M Makefile => Makefile +21 -0
@@ 1,2 1,23 @@
target/release/rstdm:
	cargo build --release

res/rstdm.1:
	pandoc -f markdown -t man res/rstdm.1.md -o res/rstdm.1

.PHONY: install
install: target/release/rstdm res/rstdm.1
	install -m 755 -o root -g root target/release/rstdm /usr/bin/
	install -m 644 -o root -g root res/rstdm.1 /usr/share/man/man1/

.PHONY: install-with-runit
install-with-runit: install
	mkdir -p /etc/sv/rstdm
	install -m 755 -o root -g root res/runit/run /etc/sv/rstdm

.PHONY: install-with-rsyslog
install-with-rsyslog: install
	install -m 644 -o root -g root res/rsyslog.d/rstdm /etc/rsyslog.d

uninstall:
	rm /usr/bin/rstdm
	rm /usr/share/man/man1/rstdm.1

M README.md => README.md +7 -1
@@ 21,7 21,13 @@ Desktop choice [1]:

## Installation

TBD
```
sudo make install
# or
sudo make install-with-runit
# and/or
sudo make install-with-rsyslogd
```

## Configuration