Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 3 insertions, 3 deletions
-rw-r--r--Makefile6
diff --git a/Makefile b/Makefile
index 2635716..c6f21fe 100644
--- a/Makefile
+++ b/Makefile
@@ -17,9 +17,9 @@ LIBS = `pkg-config --libs $(DEPS)`
all: $(OBJS) $(TRANS)
-%.mo:
- mkdir -p locale/$*/LC_MESSAGES
- msgfmt -o locale/$*/LC_MESSAGES/$(PACKAGE).mo po/$*.po
+${TRANS}:
+ mkdir -p locale/${@:.mo=}/LC_MESSAGES
+ msgfmt -o locale/${@:.mo=}/LC_MESSAGES/$(PACKAGE).mo po/${@:.mo=.po}
po/messages.pot:
xgettext --keyword=_ --language=C -o $@ --add-comments --sort-output -j badwolf.c