From b452d84d2544a38eca1d2e4e9686a8eaef197d0f Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Mon, 29 May 2023 12:36:56 -0700 Subject: [PATCH] Improved how `trans` dir created Having it as a Makefile target caused po->mo conversion to happen every time, even if the MO files existed. >:-( --- Makefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index b22b28e66..a09ca70c4 100644 --- a/Makefile +++ b/Makefile @@ -535,7 +535,8 @@ endif # Build the translation files for gettext -$(MOFILES): trans/%.mo: src/po/%.po trans +$(MOFILES): trans/%.mo: src/po/%.po + @-mkdir -p trans msgfmt -o $@ $< %.desktop: %.desktop.in $(POTFILES) @@ -553,14 +554,9 @@ translations: trans @echo "Install gettext to run Tux Paint in non-U.S. English modes." @echo "--------------------------------------------------------------" else -translations: trans $(MOFILES) src/tuxpaint.desktop src/tuxpaint-fullscreen.desktop src/org.tuxpaint.Tuxpaint.appdata.xml +translations: $(MOFILES) src/tuxpaint.desktop src/tuxpaint-fullscreen.desktop src/org.tuxpaint.Tuxpaint.appdata.xml endif -trans: - @echo - @echo "...Preparing translation files..." - @mkdir trans - ###### windows_ARCH_INSTALL:=