aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Gillmann <ng0@n0.is>2018-10-14 13:30:13 +0000
committerNils Gillmann <ng0@n0.is>2018-10-14 13:37:53 +0000
commitaac21179bbdf81dec9329299f909fdd33f30d49b (patch)
treeab04142043f7d1e98f87be1263bcf1d99b3e8e4c
parent4961c04c42b04fd5f99e84ef677b3bce20d65539 (diff)
downloadwww-aac21179bbdf81dec9329299f909fdd33f30d49b.tar.gz
www-aac21179bbdf81dec9329299f909fdd33f30d49b.zip
Add Makefile rule to 'run' the website
Signed-off-by: Nils Gillmann <ng0@n0.is>
-rw-r--r--Makefile6
-rw-r--r--config.mk2
2 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3fae1b63..3151564e 100644
--- a/Makefile
+++ b/Makefile
@@ -38,3 +38,9 @@ template: locale-compile
38 $(PYTHON) ./template.py 38 $(PYTHON) ./template.py
39 39
40it: template 40it: template
41
42current_dir = $(shell pwd)
43
44run: all
45 @[ "$(BROWSER)" ] || ( echo "You need to export the environment variable 'BROWSER' to run this."; exit 1 )
46 $(RUN_BROWSER) $(current_dir)/en/index.html
diff --git a/config.mk b/config.mk
index 0b183e9b..80528690 100644
--- a/config.mk
+++ b/config.mk
@@ -3,3 +3,5 @@
3DEBUG=0 3DEBUG=0
4 4
5PYTHON=python3 5PYTHON=python3
6
7RUN_BROWSER=$(BROWSER)