summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorplaiddroid <athulcvinod@gmail.com>2020-11-05 19:33:43 +0530
committerplaiddroid <athulcvinod@gmail.com>2020-11-05 19:33:43 +0530
commitddc6aecf4ccf4befd93b2287e18b313d0adeb495 (patch)
tree188aa7f6c417fba760ca7f58176785159c1932bd
parent8fd592ae4345c930fcd413238441dd7bd2a6d9e3 (diff)
fixed Makefile
added line that cd into site folder on serve
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 62a8ed4..0bfefd7 100644
--- a/Makefile
+++ b/Makefile
@@ -4,12 +4,15 @@ site:
serve: site
if python3 -c 'import http.server' 2> /dev/null; then \
echo Running Python3 http.server ...; \
+ cd _site; \
python3 -m http.server; \
elif python -c 'import http.server' 2> /dev/null; then \
echo Running Python http.server ...; \
+ cd _site; \
python -m http.server; \
elif python -c 'import SimpleHTTPServer' 2> /dev/null; then \
echo Running Python SimpleHTTPServer ...; \
+ cd _site; \
python -m SimpleHTTPServer; \
else \
echo Cannot find Python http.server or SimpleHTTPServer; \