summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-05-06 19:06:56 +0200
committerFlorian Dold <florian@dold.me>2021-05-06 19:06:56 +0200
commit719934275f3c55e958f48ea165280542b49b8f0b (patch)
treeb850ede68a486f2d30849184391c126f613eb7d2 /Makefile
parent9a6e7c57484e16bdd3f4aa917e6489048fb242d0 (diff)
downloadwww-719934275f3c55e958f48ea165280542b49b8f0b.tar.gz
www-719934275f3c55e958f48ea165280542b49b8f0b.tar.bz2
www-719934275f3c55e958f48ea165280542b49b8f0b.zip
restructure
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile37
1 files changed, 2 insertions, 35 deletions
diff --git a/Makefile b/Makefile
index 5b00c06..bf6d127 100644
--- a/Makefile
+++ b/Makefile
@@ -8,34 +8,10 @@ LANGUAGES="en ar zh_Hant fr de hi it ja ko pt pt_BR ru es sv tr"
# All: build HTML pages in all languages and compile the
.PHONY: all
all: locale template
- $(cp) rendered/static/javascript.html rendered/javascript.html
- $(cp) rendered/static/robots.txt rendered/robots.txt
- $(cp) rendered/static/robots.txt rendered/dist/robots.txt
- for lang in `echo $(LANGUAGES)` ; do \
- $(cp) rendered/static/robots.txt rendered/$$lang/robots.txt; \
- done
- $(python) inc/make_sitemap.py -i rendered
- $(cp) sitemap.xml rendered/sitemap.xml
- $(cp) sitemap.xml rendered/en/sitemap.xml
- for lang in `echo $(LANGUAGES)` ; do \
- $(cp) rendered/sitemap.xml rendered/$$lang ; \
- done
- $(cp) -R images rendered/static/
- for lang in `echo $(LANGUAGES)` ; \
- do $(cp) -R images rendered/$$lang ; \
- done
- cd rendered; \
- for lang in `echo $(LANGUAGES)`; do \
- $(cp) $$lang/rss.xml $$lang/news/rss.xml; \
- done
- for d in dist icons papers presentations ; do \
- $(cp) -R $$d rendered/ ; \
- done
- $(cp) -R pdf rendered/static/
- $(mkdir) -p rendered/.well-known ; $(cp) .well-known/security.txt rendered/.well-known/
+ env BASEURL=$(opt_baseurl) ./make_site.py
# Extract translateable strings from jinja2 templates.
-locale/messages.pot: template/*.j2 common/*.j2 common/*.j2.inc
+locale/messages.pot: template/*.j2 template/news/*.j2 common/*.j2 common/*.j2.inc
$(python) inc/mybabel.py $(pybabel) extract -F locale/babel.map -o locale/messages.pot .
# Update translation (.po) files with new strings.
@@ -61,11 +37,6 @@ locale-compile:
.PHONY: locale
locale: locale-update locale-compile
-# Run the jinja2 templating engine to expand templates to HTML
-# incorporating translations.
-template: locale-compile
- env BASEURL=$(opt_baseurl) ./make_site.py
-
.PHONY: run
run: all
$(browser) http://0.0.0.0:8000/rendered/en &
@@ -83,10 +54,6 @@ install: all
$(cp) -r rendered/* $(prefix)/$(variant)/
$(cp) -r rendered/.well-known/ $(prefix)/$(variant)/
-.PHONY: uninstall
-uninstall:
- $(rm) -rf $(prefix)/$(variant)
-
.PHONY: clean
clean:
$(rm) -rf __pycache__ *.pyc *~ \.*~ \#*\#