From 7bd10f34ca999d52436a85f7a1bfea27e069f485 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 15 Nov 2023 23:40:36 +0100 Subject: Make use of ‘export’ in GNU make MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GNUmakefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 300f185..93dfa0f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,6 +1,8 @@ .PHONY: check clean serve watch MAKEFLAGS := -j$(shell nproc) +export PATH := $(PATH):./include +export LANG := en_US.UTF-8 # Source- and destination files srcs := $(shell find src -type f -not -name '*.gsp' -or -name 'index.gsp') @@ -34,13 +36,12 @@ gendeps = $(incs) $(wildcard $(dir $(patsubst out/%.html,src/%.gsp,$1))*.gsp) .SECONDEXPANSION: out/%.html: src/%.gsp $$(call gendeps,$$@) - @PATH="$$PATH:./include" \ - m4 -P $(foreach d,$(^D),-I$d) include/lib.m4 $< | gsp >$@ + @m4 -P $(foreach d,$(^D),-I$d) include/lib.m4 $< | gsp >$@ @printf 'GSP\t%s\n' "$@" check: - LANG=en_US.UTF-8 find src -name 'index.gsp' -exec \ - aspell --home-dir=./ --ignore-case check {} \; + find src -name 'index.gsp' -exec \ + aspell --home-dir=./ --ignore-case check {} \; clean: rm -rf out -- cgit v1.2.3