diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-02-23 15:18:14 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-02-23 15:18:14 +0100 |
commit | ab6d91982264623ae626115349d2c8a7579f1b1e (patch) | |
tree | 4a3b4cc3945ae6c6c15a81b8b0728953565ed77b | |
parent | 82666b1b6fe729278526ddd399aac06e65006d71 (diff) |
Allow for custom ports with ‘make serve’
-rw-r--r-- | GNUmakefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile index 75d10af..57a5600 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -2,7 +2,9 @@ MAKEFLAGS := -j$(shell nproc) export PATH := $(PATH):./bin -export LANG := en_US.UTF-8 +export LANG = en_US.UTF-8 + +PORT = 8080 reqs := $(shell find include m4 -type f) srcs := $(shell find src -type f -name 'index.gsp') @@ -21,4 +23,4 @@ clean: find . -name '*.html' -delete serve: - darkhttpd src --daemon + darkhttpd src --daemon --port $(PORT) |