diff options
author | Sunaina Pai <sunainapai.in@gmail.com> | 2021-01-03 22:01:43 +0530 |
---|---|---|
committer | Sunaina Pai <sunainapai.in@gmail.com> | 2021-01-03 22:01:43 +0530 |
commit | 8f40bc5395a6034fdcddc1ccaa04ed292b78c94e (patch) | |
tree | 90825aee93fc62efb0ad8fe7aa6a36faf43a1e9c /Makefile | |
parent | 1368d8d5ba79b7e5497210e24af3d2aa1f76cc2c (diff) |
Let make serve fail if cd _site fails
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -4,16 +4,13 @@ site: serve: site if python3 -c 'import http.server' 2> /dev/null; then \ echo Running Python3 http.server ...; \ - cd _site; \ - 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 ...; \ - cd _site; \ - python -m 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; \ + cd _site && python -m SimpleHTTPServer; \ else \ echo Cannot find Python http.server or SimpleHTTPServer; \ fi |