commit: 0d4fcf141a67221748881ad0a4be26ad4227a235
parent 6dae2b34423f5c00971cc243c97697644c2da143
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 26 Apr 2019 14:32:45 +0200
Makefile: Add po/ targets
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -21,6 +21,12 @@ all: $(OBJS) $(TRANS)
mkdir -p locale/$*/LC_MESSAGES
msgfmt -o locale/$*/LC_MESSAGES/$(PACKAGE).mo po/$*.po
+po/messages.pot:
+ xgettext --keyword=_ --language=C -o $@ --add-comments --sort-output -j badwolf.c
+
+po/%.po: po/messages.pot
+ msgmerge --update $@ $<
+
.c:
$(CC) -std=c11 $(CFLAGS) $(CDEPS) -o $@ $< $(LDFLAGS) $(LIBS)