commit: e725cc9ed52539205ff9c702f6915e162f474170
parent: 72bbbd0101a67f169629f952a158f3b1ae00b3ac
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 11 May 2019 04:54:36 +0200
Makefile: translations depends on po/%.po
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -17,16 +17,16 @@ LIBS = `pkg-config --libs $(DEPS)`
all: $(OBJS) $(TRANS)
-${TRANS}:
- mkdir -p locale/${@:.mo=}/LC_MESSAGES
- msgfmt -o locale/${@:.mo=}/LC_MESSAGES/$(PACKAGE).mo po/${@:.mo=.po}
-
po/messages.pot: badwolf.c
xgettext --keyword=_ --language=C -o $@ --add-comments --sort-output -j badwolf.c
po/%.po: po/messages.pot
msgmerge --update $@ $<
+${TRANS}: po/${@:.mo=.po}
+ mkdir -p locale/${@:.mo=}/LC_MESSAGES
+ msgfmt -o locale/${@:.mo=}/LC_MESSAGES/$(PACKAGE).mo po/${@:.mo=.po}
+
.c:
$(CC) -std=c11 $(CFLAGS) $(CDEPS) -o $@ $< $(LDFLAGS) $(LIBS)