forked from alexjurkiewicz/acts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (37 loc) · 1.04 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 = $(shell $(shell pwd)/acts --version | cut -d' ' -f3)
package: dist/acts_$(VERSION)_all.deb
clean:
rm -rf dist
check:
shellcheck -s sh -f gcc -e SC1091 acts
shellcheck -s sh -f gcc -e SC2034 acts.conf.sample
@ echo shfmt -l -i 4 acts acts.conf.sample
@ [ -z $(shell shfmt -l -i 4 acts acts.conf.sample) ] || { echo $(shell shfmt -l -i 4 acts acts.conf.sample) && exit 1; }
dist/acts_$(VERSION)_all.deb: dist
@ fpm \
-s dir \
-n acts \
-t deb \
-p dist/ \
--version "$(VERSION)" \
--maintainer "Alex Jurkiewicz <alex@jurkiewi.cz>" \
--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
.PHONY: \
package \
check \
clean