From 3bbb659980b4160055df03355d7a933ba211d0df Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 10 Aug 2025 20:23:22 +0200 Subject: Add country name translations --- GNUmakefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 6807748..b8f5183 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -45,6 +45,7 @@ eurotndeps := src/euro/index.tnotes.gsp src/euro/nav.dnotes.gsp data/notes # Macros to get data to pass to m4 altnames = $(shell awk 'BEGIN { FS = "\t" } $$1 == toupper("$1") { print $$4 }' data/country-info) +name = $(shell awk 'BEGIN { FS = "\t" } $$1 == toupper("$1") { print $$3 }' data/country-info) demonym = $(shell awk 'BEGIN { FS = "\t" } $$1 == toupper("$1") { print $$2 }' data/country-info) percentage = $(shell ./scripts/gen-stats $1) @@ -67,10 +68,11 @@ out/%.html: src/%.gsp $(gspdeps) m4 -P lib.m4 $< | gsp >$@ $(eurocc): out/euro/%/index.html: $(gspdeps) $(euroccdeps) - m4 -P -D__coins -D__code=$* \ - -D__demonym="$(call demonym,$*)" \ - -D__altnames="$(call altnames,$*)" \ - -D__percentage="$(call percentage,$*)" \ + m4 -P -D__coins -D__code=$* \ + -D__demonym="$(call demonym,$*)" \ + -D__name="$(call name,$*)" \ + -D__altnames="$(call altnames,$*)" \ + -D__percentage="$(call percentage,$*)" \ lib.m4 src/euro/index.ccoins.gsp | gsp >$@ $(eurocd): out/euro/%/index.html: $(eurocddeps) $(gspdeps) @@ -99,4 +101,4 @@ clean: serve: darkhttpd out --daemon -.PHONY: all check clean serve +.PHONY: all check clean serve \ No newline at end of file -- cgit v1.2.3