From ab6d91982264623ae626115349d2c8a7579f1b1e Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 23 Feb 2024 15:18:14 +0100 Subject: Allow for custom ports with ‘make serve’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GNUmakefile | 6 ++++-- 1 file 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) -- cgit v1.2.3