-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (44 loc) · 1.23 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
LICDIR = dist.d/licenses
BINDIR = dist.d/bin
S3FOLDER = turbonomic-emea-cs-bucket/tb-field-tools
TARFILE = tb-field-tools.tgz
$(TARFILE): k9s/k9s screen/screen nano/nano yq/yq jq/jq htop/htop timescaledb/ready Makefile
rm -rf dist.d
mkdir -p $(BINDIR) $(LICDIR)
cp k9s/k9s screen/screen nano/nano yq/yq jq/jq htop/htop $(BINDIR)
cp yq/LICENSE $(LICDIR)/LICENSE-yq
cp jq/COPYING $(LICDIR)/COPYING-jq
cp k9s/LICENSE $(LICDIR)/LICENSE-k9s
cp screen/COPYING $(LICDIR)/COPYING-screen
cp nano/COPYING $(LICDIR)/COPYING-nano
cp reporting/LICENSE $(LICDIR)/LICENSE-enableReporting
cp htop/COPYING $(LICDIR)/COPYING-htop
cp screen/screenrc dist.d/.screenrc
cp nano/nanorc dist.d/.nanorc
cd dist.d && tar cvfz ../$(TARFILE) bin/* licenses/* .nanorc .screenrc
k9s/k9s:
cd k9s && make
screen/screen:
cd screen && make
nano/nano:
cd nano && make
yq/yq:
cd yq && make
jq/jq:
cd jq && make
htop/htop:
cd htop && make
timescaledb/ready:
cd timescaledb && make
clean:
cd screen && make clean
cd nano && make clean
cd yq && make clean
cd jq && make clean
cd k9s && make clean
cd timescaledb && make clean
cd htop && make clean
rm -rf dist.d
rm -f $(TARFILE)
copy-to-s3:
aws s3 cp $(TARFILE) "s3://$(S3FOLDER)/$(TARFILE)" --acl public-read