Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit0d4fcf141a67221748881ad0a4be26ad4227a235 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-04-26 14:32:45 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-04-26 14:34:32 +0200
Files1971e9d07786d020a0ef4f675ea73f8df5e51f60
goodwolf-0d4fcf141a67221748881ad0a4be26ad4227a235.tar
goodwolf-0d4fcf141a67221748881ad0a4be26ad4227a235.tar.gz
goodwolf-0d4fcf141a67221748881ad0a4be26ad4227a235.zip
Parent6dae2b34423f5c00971cc243c97697644c2da143 (diff)
Makefile: Add po/ targets
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)