diff options
| Commit | 9a186b4bc0dca9533c0697cde7cc36fe35a9c978 (patch) | |
|---|---|---|
| Author | 2019-05-13 10:44:58 +0200 | |
| Committer | 2019-05-13 10:44:58 +0200 | |
| Files | f4bd364255f155cb59004652bade89ba999be651 /Makefile | |
| goodwolf-0.2.0.tar goodwolf-0.2.0.tar.gz goodwolf-0.2.0.zip | ||
| Parent | 1b868aad609d9c3460af8df0e2c151d4f755f210 (diff) | |
| Parent | fb531698c4e5f3c0c2f7a9151222ba8aaa6bd1e7 (diff) | |
Release 0.2.0 v0.2.0
1 files changed, 6 insertions, 6 deletions
| -rw-r--r-- | Makefile | 12 |
@@ -12,21 +12,21 @@ TRANS = fr.mo CC = cc CFLAGS = -g -Wall -Wextra -CDEPS = `pkg-config --cflags $(DEPS)` -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" +CDEPS = `pkg-config --cflags $(DEPS)` -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" -D_DEFAULT_SOURCE LIBS = `pkg-config --libs $(DEPS)` all: $(OBJS) $(TRANS) -%.mo: - mkdir -p locale/$*/LC_MESSAGES - msgfmt -o locale/$*/LC_MESSAGES/$(PACKAGE).mo po/$*.po - -po/messages.pot: +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) |