forked from cs50/help50-deprecated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (52 loc) · 1 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
MAINTAINER = "CS50 <sysadmins@cs50.harvard.edu>"
NAME = help50
VERSION = 1.1.1
.PHONY: bash
bash:
docker run -i --rm -v "$(PWD)":/root -t cs50/cli
.PHONY: clean
clean:
rm -f $(NAME)_$(VERSION)_*.deb
rm -f $(NAME)-$(VERSION)-*.pkg.tar.xz
rm -f $(NAME)-$(VERSION)-*.rpm
.PHONY: deb
deb:
rm -f $(NAME)_$(VERSION)_*.deb
fpm \
-m $(MAINTAINER) \
-n $(NAME) \
-s dir \
-t deb \
-v $(VERSION) \
--after-install after-install.sh \
--after-remove after-remove.sh \
--deb-no-default-config-files \
--depends coreutils \
--depends curl \
opt
# TODO: add dependencies
.PHONY: pacman
pacman:
rm -f $(NAME)-$(VERSION)-*.pkg.tar.xz
fpm \
-m $(MAINTAINER) \
-n $(NAME) \
-s dir \
-t pacman \
-v $(VERSION) \
--after-install after-install.sh \
--after-remove after-remove.sh \
opt
# TODO: add dependencies
.PHONY: rpm
rpm:
rm -f $(NAME)-$(VERSION)-*.rpm
fpm \
-m $(MAINTAINER) \
-n $(NAME) \
-s dir \
-t rpm \
-v $(VERSION) \
--after-install after-install.sh \
--after-remove after-remove.sh \
opt