diff options
Makefile: Add po/ targets
1 files changed, 6 insertions, 0 deletions
| -rw-r--r-- | Makefile | 6 |
@@ -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) |