~goorzhel/radm

ref: e113154ba8f2238440740c59b94a499fd32f069f radm/Makefile -rw-r--r-- 815 bytes
e113154b — Antonio Gurgel Trim README a month 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
26
27
28
29
30
31
32
SOURCES := $(wildcard src/*)

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

install: install-bin install-manual install-runit install-rsyslog install-pam

.PHONY: install
install-bin: target/release/radm
	install -m 755 -o root -g root target/release/radm /usr/bin/

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

install-runit:
	mkdir -p /etc/sv/radm
	install -m 755 -o root -g root res/runit/run /etc/sv/radm

install-rsyslog:
	install -m 644 -o root -g root res/rsyslog /etc/rsyslog.d/radm

install-pam:
	install -m 644 -o root -g root res/pam /etc/pam.d/radm

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

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