~goorzhel/radm

a08914c219955cae905550fc5734d852a6e5bca3 — Antonio Gurgel 4 months ago d1c1a98
Rework Makefile
1 files changed, 11 insertions(+), 7 deletions(-)

M Makefile
M Makefile => Makefile +11 -7
@@ 7,19 7,23 @@ res/rstdm.1: res/rstdm.1.md
	pandoc -f markdown -t man res/rstdm.1.md -o res/rstdm.1

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

install-manual: res/rstdm.1
	install -m 644 -o root -g root res/rstdm.1 /usr/share/man/man1/

.PHONY: install-with-runit
install-with-runit: install
install-runit:
	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-rsyslog:
	install -m 644 -o root -g root res/rsyslog.d/rstdm /etc/rsyslog.d

install-all: install install-manual install-runit install-rsyslog

uninstall:
	rm /usr/bin/rstdm
	rm /usr/share/man/man1/rstdm.1
	rm -f /usr/bin/rstdm
	rm -f /usr/share/man/man1/rstdm.1
	rm -f /etc/sv/rstdm/run
	rm -f /etc/rsyslog.d/rstdm