aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 938346a7e7afb09812336cda88dec70e731db4f2 (plain) (blame)
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
FILES=hesla.js hesla.js.map require.js config.js config.js.map \
      activePage.js activePage.js.map icon-*.png \
      index_de.html index.html screen.css hesla.appcache hesla.webapp \
      google9815148f4ac1407f.html config.ts hesla.ts activePage.ts

%.js: %.ts
	tsc --sourcemap -t ES5 -m amd $<

all: index.html index_de.html config.js activePage.js hesla.js

index.html: generate_html_cs.py hes14-10.xml templates/czech.html templates/base.html
	./generate_html_cs.py hes14-10.xml >$@

index_de.html: generate_html_de.py hernnhut/2014/Losungen\ Free\ 2014.xml templates/german.html templates/base.html
	./generate_html_de.py hernnhut/2014/Losungen\ Free\ 2014.xml >$@

hesla-chrome.zip:
	zip -9vT $@ google9815148f4ac1407f.html hesla.appcache \
	    hesla.js icon-128.png icon-30.png icon-60.png \
	    index_de.html index.html manifest.json screen.css

install: $(FILES)
	rsync -avLz --delete $(FILES) /home/matej/Dokumenty/website/luther/hesla/
	websync

clean:
	rm -fv index*.html *~ {activePage,config,hesla}.js *.js.map