forked from iameli/iameli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (31 loc) · 801 Bytes
/
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
SHELL=/bin/bash
.SHELLFLAGS="-O extglob -c"
.PHONY: all
all: clean hlsjs index discord-time car
.PHONY: clean
clean:
rm -rf dist && mkdir -p dist
.PHONY: hlsjs
hlsjs:
cd hls.js \
&& npm run build \
&& cd .. \
&& mkdir -p dist/hls.js \
&& cp -R hls.js/dist dist/hls.js/dist \
&& cp -R hls.js/demo dist/hls.js/demo
.PHONY: index
index:
cp ./index.html ./dist \
&& cp ./realcoolstyles.css ./dist \
&& cp ./avatar.jpeg ./dist
.PHONY: discord-time
discord-time:
cd discord-time \
&& yarn install \
&& yarn run build
.PHONY: car
car:
rm -rf iameli.car \
&& go install github.com/ipld/go-car/cmd/car@latest \
&& car create --version 1 -f iameli.car $(wildcard ./dist/*) \
&& curl -H "authorization: Bearer $$W3_STORAGE_API_TOKEN" --data-binary @iameli.car https://api.web3.storage/car