-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (26 loc) · 990 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
all: trappisto-dcr trappisto-bch trappisto-btc
trappisto-dcr: src/*.elm
elm-make src/Trappisto.elm --yes --warn --output public/assets/js/elm.js
uglifyjs --mangle --screw-ie8 --output public/assets/js/elm.min.js -- public/assets/js/elm.js
rm public/assets/js/elm.js
trappisto-bch: trappisto-dcr
cp public/index-dcr.html public/index-bch.html
sed -i 's/DCR/BCH/g' public/index-bch.html
sed -i 's/Decred/Bitcoin Cash/g' public/index-bch.html
trappisto-btc: trappisto-dcr
cp public/index-dcr.html public/index-btc.html
sed -i 's/DCR/BTC/g' public/index-btc.html
sed -i 's/Decred/Bitcoin/g' public/index-btc.html
test: src/*.elm tests/*.elm
elm-test --yes
watch: src/*.elm tests/*.elm
elm-test --watch
clean:
$(RM) -r public/assets/js/elm*.js elm-stuff/ tests/elm-stuff/
h2o:
h2o -c h2o/h2o.conf
dcrd:
dcrd --notls --rpcuser bitcoin --rpcpass secret
bitcoind:
bitcoind -par=-1 -server -txindex -rpcuser=bitcoin -rpcpassword=secret
.PHONY: watch clean h2o dcrd bitcoind