diff options
Makefile: Fix .mo building target for BSD make
1 files changed, 3 insertions, 3 deletions
| -rw-r--r-- | Makefile | 6 |
@@ -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 |