-
Notifications
You must be signed in to change notification settings - Fork 10
/
makefile
24 lines (18 loc) · 1001 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PREFIX = /usr
CARGO_TARGET_DIR ?= trust-check/target
all:
@rm -rf target
@cd trust-check && CARGO_INCREMENTAL=0 cargo build --release
@install -D conf/aurto.pacman.conf target/etc/pacman.d/aurto
@install -Dm440 conf/50_aurto_passwordless -t target/etc/sudoers.d
@chmod 750 target/etc/sudoers.d
@install -Dm644 conf/makepkg-chroot.conf -t target/etc/aurto
@install -Dm644 conf/pacman-chroot.conf -t target/etc/aurto
@install -D bin/* -t target$(PREFIX)/bin
@install -D lib/aurto/* -t target$(PREFIX)/lib/aurto
@install $(CARGO_TARGET_DIR)/release/trust-check -t target$(PREFIX)/lib/aurto
@install -Dm644 timer/* -t target$(PREFIX)/lib/systemd/system
@install -Dm644 completion/bash/aurto target$(PREFIX)/share/bash-completion/completions/aurto
@install -Dm644 completion/fish/aurto.fish target$(PREFIX)/share/fish/completions/aurto.fish
@install -Dm644 completion/zsh/_aurto target$(PREFIX)/share/zsh/site-functions/_aurto
@if command -v tree >/dev/null 2>&1; then tree target; fi