Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commite725cc9ed52539205ff9c702f6915e162f474170 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-05-11 04:54:36 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-05-11 05:02:28 +0200
Files5b75c145052897796ab5b83aecd34d4fdb1c122b
goodwolf-e725cc9ed52539205ff9c702f6915e162f474170.tar
goodwolf-e725cc9ed52539205ff9c702f6915e162f474170.tar.gz
goodwolf-e725cc9ed52539205ff9c702f6915e162f474170.zip
Parent72bbbd0101a67f169629f952a158f3b1ae00b3ac (diff)
Makefile: translations depends on po/%.po
1 files changed, 4 insertions, 4 deletions
-rw-r--r--Makefile8
diff --git a/Makefile b/Makefile
index 85c938b..74ddedd 100644
--- 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)