summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 83fe1ae..ae56b92 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
SRCFILES:=$(shell find src/pages/ -type f -name '*.php')
HTMLTARGETS:=$(SRCFILES:src/pages/%.php=build/%.html)
-.PHONY: build/static publish
+.PHONY: build/static publish dev-server
all: $(HTMLTARGETS) $(STATICFILES) build/static
@@ -22,3 +22,8 @@ publish-http:
rsync -avh ./build/ hozyro-srv:/var/www/hozyro --delete
publish-all: publish publish-http
+
+dev-server:
+ @bash -c 'echo -e "\e[91mWARNING: This server should only be used for \
+ development purposes! IT IS NOT PRODUCTION-SAFE! USE WITH CAUTION!\e[0m"'
+ php -S 127.0.0.1:19310 dev-server.php