From 3cc3e6f453decb41d521374adf6c5a8810a05dd3 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 1 Dec 2017 09:34:53 -0200 Subject: Makefile: PORT variable --- share/templater/templater/files/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'share') diff --git a/share/templater/templater/files/Makefile b/share/templater/templater/files/Makefile index b6890f7..fe75ca7 100644 --- a/share/templater/templater/files/Makefile +++ b/share/templater/templater/files/Makefile @@ -5,6 +5,9 @@ # any Makefile.* available in the current folder. # +# Port to serve content +PORT="8000" + # Set CONTAINER based in what we have available in the system # This variable can be user in other, included Makefiles to handle virtualization tasks ifeq ($(shell which kvmx > /dev/null && test -s kvmxfile && echo yes), yes) @@ -20,7 +23,8 @@ endif # See http://unix.stackexchange.com/questions/32182/simple-command-line-http-server#32200 # http://php.net/manual/en/features.commandline.webserver.php serve: - python -m SimpleHTTPServer + python -m SimpleHTTPServer $(PORT) + #python -m SimpleHTTPServer # Or the Python 3 equivalent #python3 -m http.server #php -S localhost:8000 -- cgit v1.2.3