Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
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)