]> gitweb.fluxo.info Git - templater.git/commitdiff
Makefile: PORT variable
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Dec 2017 11:34:53 +0000 (09:34 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Dec 2017 11:34:53 +0000 (09:34 -0200)
share/templater/templater/files/Makefile

index b6890f709aabd386b7d42b5febd60196bc8e5005..fe75ca7f1f435f18e196c4023e69d2999ff1785c 100644 (file)
@@ -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