-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (47 loc) · 1.16 KB
/
Copy pathMakefile
File metadata and controls
55 lines (47 loc) · 1.16 KB
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
44
45
46
47
48
49
50
51
52
53
54
NAME=ssht
VERSION:=$(shell git describe --tags `git rev-list --tags --max-count=1`)
.PHONY: all clean package_deb package_rpm prepare
all: clean package_deb clean package_rpm package_osx
clean:
rm -f ./ssht
rm -f *.deb
rm -f *.rpm
prepare:
chmod +x ssht
package_deb: prepare
fpm -s dir \
-t deb \
-n $(NAME) \
-v $(VERSION) \
-a all \
--license MIT \
-m "Jochen Breuer <brejoc@gmail.com>" \
--url "https://github.com/brejoc/ssht" \
--deb-user root \
--deb-group root \
--prefix /usr/local/bin \
ssht
package_rpm: prepare
fpm -s dir \
-t rpm \
-n $(NAME) \
-v $(VERSION) \
-a all \
--license MIT \
-m "Jochen Breuer <brejoc@gmail.com>" \
--url "https://github.com/brejoc/ssht" \
--rpm-user root \
--rpm-group root \
--prefix /usr/local/bin \
ssht
package_osx: prepare
fpm -s dir \
-t osxpkg \
-n $(NAME) \
-v $(VERSION) \
-a all \
--license MIT \
-m "Jochen Breuer <brejoc@gmail.com>" \
--url "https://github.com/brejoc/ssht" \
--prefix /usr/local/bin \
ssht