summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 62a8ed4..af9912e 100644
--- a/Makefile
+++ b/Makefile
@@ -4,13 +4,13 @@ site:
serve: site
if python3 -c 'import http.server' 2> /dev/null; then \
echo Running Python3 http.server ...; \
- python3 -m http.server; \
+ cd _site && python3 -m http.server; \
elif python -c 'import http.server' 2> /dev/null; then \
echo Running Python http.server ...; \
- python -m http.server; \
+ cd _site && python -m http.server; \
elif python -c 'import SimpleHTTPServer' 2> /dev/null; then \
echo Running Python SimpleHTTPServer ...; \
- python -m SimpleHTTPServer; \
+ cd _site && python -m SimpleHTTPServer; \
else \
echo Cannot find Python http.server or SimpleHTTPServer; \
fi