Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 6 insertions, 0 deletions
-rw-r--r--Makefile6
diff --git a/Makefile b/Makefile
index 6b2d20f..2635716 100644
--- 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)