~goorzhel/radm

ref: d1c1a9803da1394d729503da1063f3495dd25854 radm/Makefile -rw-r--r-- 689 bytes
d1c1a980 — Antonio Gurgel Replace macro_use with uses 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
SOURCES := $(wildcard src/*)

target/release/rstdm: $(SOURCES)
	cargo build --release

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 -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