From c9f228d83b4551c0057d3e04752f230d4cc907b5 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 23 Jul 2025 20:15:43 +0200 Subject: Introduce $(GO) --- GNUmakefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 2278112..c69b87c 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,3 +1,5 @@ +GO := go + cssfiles := $(shell find static -name '*.css' -not -name '*.min.css') cssfiles := $(cssfiles:.css=.min.css) gofiles := $(shell find main.go src -name '*.go') @@ -9,7 +11,7 @@ exttmpl := $(wildcard cmd/exttmpl/*.go) all: euro-cash.eu exttmpl euro-cash.eu: $(cssfiles) $(templates) $(gofiles) $(sqlfiles) - go build + $(GO) build all-i18n: exttmpl find . -name '*.html.tmpl' -exec ./exttmpl -out po/templates.pot {} + @@ -18,10 +20,10 @@ all-i18n: exttmpl mkdir -p "po/$$bcp"; \ msgmerge --update "po/$$bcp/messages.po" po/templates.pot; \ done - go build + $(GO) build exttmpl: $(exttmpl) - go build ./cmd/exttmpl + $(GO) build ./cmd/exttmpl %.min.css: %.css if command -v lightningcss >/dev/null; \ -- cgit v1.2.3