diff options
author | Sunaina Pai <sunainapai.in@gmail.com> | 2021-01-03 21:49:09 +0530 |
---|---|---|
committer | Sunaina Pai <sunainapai.in@gmail.com> | 2021-01-03 21:49:09 +0530 |
commit | 1368d8d5ba79b7e5497210e24af3d2aa1f76cc2c (patch) | |
tree | ad7a8af6eb4a26c691f04fe8c87c18a20e655d9b /Makefile | |
parent | 15b358ca27b6c5e808255b1982eddb0234a3a4de (diff) | |
parent | ddc6aecf4ccf4befd93b2287e18b313d0adeb495 (diff) |
Merge make serve fix from PlaidDroid
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; \ |