-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (24 loc) · 748 Bytes
/
Makefile
File metadata and controls
38 lines (24 loc) · 748 Bytes
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
SRC = $(shell find src -name '*.elm')
VERSION = $(shell git describe --always)
build: elm.js
elm.js: $(SRC)
elm make src/Main.elm --output=$@
###
#NODE_URL = https://tezos.ostraca.org
NODE_URL = http://rpc.ostez.com
SITE = site
dist: $(SITE) $(SITE)/elm.js $(SITE)/index.html $(SITE)/tezos.css $(SITE)/tezos.js versionfile
$(SITE):
mkdir $(SITE)
$(SITE)/elm.js: elm.js
cp $< $@
$(SITE)/index.html: index.html Makefile
perl -pe 's#http://localhost:8732#$(NODE_URL)#' index.html >$@
$(SITE)/tezos.css: tezos.css
cp $< $@
$(SITE)/tezos.js: tezos.js
perl -pe 's#http://localhost:8732#$(NODE_URL)#' tezos.js >$@
versionfile:
echo "$(VERSION)" > $(SITE)/version.html
publish: dist
rsync -av $(SITE)/ fred@a.ostraca.org:explorer/www