diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-07-23 20:15:43 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-07-23 20:15:43 +0200 |
commit | c9f228d83b4551c0057d3e04752f230d4cc907b5 (patch) | |
tree | f103a6a80d834999d31db297464951e5a6283b25 | |
parent | c34d0840eb06673f681371d7384bd219ae43dd09 (diff) |
Introduce $(GO)
-rw-r--r-- | GNUmakefile | 8 |
1 files changed, 5 insertions, 3 deletions
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; \ |