forked from alexjurkiewicz/acts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (36 loc) · 1.06 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
VERSION!= $${PWD}/calsnap --version | awk '{print $$3}'
package: dist/calsnap_$(VERSION)_all.deb
clean:
rm -rf dist
dist/calsnap_$(VERSION)_all.deb: dist
@ fpm \
-s dir \
-n calsnap \
-t deb \
-p dist/ \
--version "$(VERSION)" \
--maintainer "Jens Bannmann <jens.b@web.de>" \
--license "public-domain" \
--category "utils" \
--architecture "all" \
--url "https://github.com/bannmann/calsnap" \
-d "bsdutils" \
-d "coreutils >= 8.13" \
--exclude .git \
--deb-priority "extra" \
--config-files "/etc/calsnap.conf" \
--deb-no-default-config-files \
"calsnap=/usr/bin/calsnap" \
"calsnap.conf.sample=/etc/calsnap.conf" \
"README.md=/usr/share/docs/calsnap/README.md"
dist:
@ mkdir dist
check:
if command -v shellcheck >/dev/null; then shellcheck -e SC1091 calsnap; fi
if command -v shellcheck >/dev/null; then shellcheck -e SC2034 calsnap.conf.sample; fi
if command -v shfmt >/dev/null; then shfmt -i 4 -d -kp calsnap; fi
if command -v shfmt >/dev/null; then shfmt -i 4 -d -kp calsnap.conf.sample; fi
.PHONY: \
check \
clean \
package