-
Notifications
You must be signed in to change notification settings - Fork 29
/
Makefile
43 lines (37 loc) · 1.07 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
VERSION!= $${PWD}/acts --version | awk '{print $$3}'
package: dist/acts_$(VERSION)_all.deb
clean:
rm -rf dist
dist/acts_$(VERSION)_all.deb: dist
@ fpm \
-s dir \
-n acts \
-t deb \
-p dist/ \
--version "$(VERSION)" \
--maintainer "Alex Jurkiewicz <[email protected]>" \
--license "public-domain" \
--category "utils" \
--architecture "all" \
--url "https://github.com/alexjurkiewicz/acts" \
-d "bsdutils" \
-d "coreutils >= 8.13" \
--exclude .git \
--deb-priority "extra" \
--config-files "/etc/acts.conf" \
--deb-no-default-config-files \
"acts=/usr/bin/acts" \
"acts.conf.sample=/etc/acts.conf" \
"README.md=/usr/share/docs/acts/README.md" \
"contrib/=/usr/share/doc/acts/contrib/"
dist:
@ mkdir dist
check:
if command -v shellcheck >/dev/null; then shellcheck -e SC1091 acts; fi
if command -v shellcheck >/dev/null; then shellcheck -e SC2034 acts.conf.sample; fi
if command -v shfmt >/dev/null; then shfmt -i 4 -d -kp acts; fi
if command -v shfmt >/dev/null; then shfmt -i 4 -d -kp acts.conf.sample; fi
.PHONY: \
check \
clean \
package