aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: 4abff6384b5e8e4a8dc5feb160729983798b6c59 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                              
                                                                

                                                                    
                                                                  
 
          
                                            

                                                              
 

                                                                                     
 

                                                                                                             
 
                 
                                                 


                                                             
                 

                                                          
               

      
                                                                   
BABEL=node node_modules/babel-cli/bin/babel.js
FILES=hesla.js hesla.js.map require.js config.js config.js.map \
      activePage.js activePage.js.map icon-*.png sworker.js \
      index_de.html index.html screen.css hesla.webapp favicon.ico \
      google9815148f4ac1407f.html config.es hesla.es activePage.es

%.js: %.es
	$(BABEL) --source-maps true -o $@ $<

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

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

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

hesla-chrome.zip:
	zip -9vT $@ google9815148f4ac1407f.html \
	    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) \
            ~/Dokumenty/website/hubmaier/hesla.ceplovi.cz/
	websync

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