diff options
author | Nils Gillmann <ng0@n0.is> | 2018-10-14 13:30:13 +0000 |
---|---|---|
committer | Nils Gillmann <ng0@n0.is> | 2018-10-14 13:37:53 +0000 |
commit | aac21179bbdf81dec9329299f909fdd33f30d49b (patch) | |
tree | ab04142043f7d1e98f87be1263bcf1d99b3e8e4c | |
parent | 4961c04c42b04fd5f99e84ef677b3bce20d65539 (diff) | |
download | www-aac21179bbdf81dec9329299f909fdd33f30d49b.tar.gz www-aac21179bbdf81dec9329299f909fdd33f30d49b.zip |
Add Makefile rule to 'run' the website
Signed-off-by: Nils Gillmann <ng0@n0.is>
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | config.mk | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -38,3 +38,9 @@ template: locale-compile | |||
38 | $(PYTHON) ./template.py | 38 | $(PYTHON) ./template.py |
39 | 39 | ||
40 | it: template | 40 | it: template |
41 | |||
42 | current_dir = $(shell pwd) | ||
43 | |||
44 | run: 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 | ||
@@ -3,3 +3,5 @@ | |||
3 | DEBUG=0 | 3 | DEBUG=0 |
4 | 4 | ||
5 | PYTHON=python3 | 5 | PYTHON=python3 |
6 | |||
7 | RUN_BROWSER=$(BROWSER) | ||