aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 9d082a9694b388e5c8fd13059b3a47dfc94a039f (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
28
29
30
31
FILES=hesla.js hesla.js.map config.js config.js.map \
      activePage.js activePage.js.map favicon-*.png a*.png lamb-of-God.svg sworker.js \
      index_de.html index.html screen.css site.webmanifest favicon.ico \
      google9815148f4ac1407f.html config.ts hesla.ts activePage.ts

%.js: %.ts
	tsc --sourceMap --allowJs true --checkJs true --module es2015 --target es2015 $<

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

index.html: generate_html_cs.py hes24-01.xml templates/czech.html templates/base.html
	./generate_html_cs.py hes24-01.xml >$@

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

test: all
	python3 -munittest -v test_generate_html

hesla-chrome.zip:
	zip -9vT $@ google9815148f4ac1407f.html \
	    hesla.js favicon*.png a*.png \
	    index_de.html index.html manifest.json screen.css

install: $(FILES) test
	rsync -avLz --delete $(FILES) \
            ~/archiv/website/hubmaier/hesla.ceplovi.cz/
	websync

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