aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2014-11-14 01:51:14 +0100
committerMatěj Cepl <mcepl@redhat.com>2014-11-14 02:07:43 +0100
commit3271c8a1f781790b3536d51703df85befeaaac1c (patch)
treeb29ab679b97e94eb65e3ea6002a528c63fcc2942 /Makefile
parentb609349a340a4c7ccbd3aef67f899a374b52f93e (diff)
downloadhesla-3271c8a1f781790b3536d51703df85befeaaac1c.tar.gz
Finally moved to proper TypeScript with inheritance.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 1d3df9c..938346a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,12 @@
-#FILES=favicon.png
-FILES=hesla.js icon-*.png index_de.html index.html screen.css \
- hesla.appcache hesla.webapp google9815148f4ac1407f.html
+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
-all: index.html index_de.html
+%.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 >$@
@@ -10,15 +14,14 @@ index.html: generate_html_cs.py hes14-10.xml templates/czech.html templates/base
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 -avz --delete $(FILES) /home/matej/Dokumenty/website/luther/hesla/
+ rsync -avLz --delete $(FILES) /home/matej/Dokumenty/website/luther/hesla/
websync
clean:
- rm -fv index*.html *~
+ rm -fv index*.html *~ {activePage,config,hesla}.js *.js.map