git.infertux.com trappisto / master Makefile
master

Tree @master (Download .tar.gz)

Makefile @masterraw · history · blame

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