From b8ec3c720e31764451a8156f9a4bbca5c20435fe Mon Sep 17 00:00:00 2001 From: Carsten Grohmann Date: Wed, 29 Nov 2017 20:10:25 +0100 Subject: [PATCH] Add a rule to start a web server for serving the current directory --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e81c29e..5afa147 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ SHELL = /bin/sh BASE_DIR = . -PYTHON_BIN = python3 +PYTHON3_BIN = python3 VIRTUAL_ENV = env export VIRTUAL_ENV := $(abspath ${VIRTUAL_ENV}) @@ -63,3 +63,7 @@ venv-clean: build: venv . $(VIRTUAL_ENV)/bin/activate transcrypt --build --map --nomin -e 6 OOMAnalyser.py + +#+ Serve the current directory on http://127.0.0.1:8080 +websrv: + $(PYTHON3_BIN) -m http.server 8080 --bind 127.0.0.1 \ No newline at end of file