Summary Files Commits Branches @commit @diff @stats
path: root / Makefile
diff options
context:
space:
mode:
Commit9a186b4bc0dca9533c0697cde7cc36fe35a9c978 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-05-13 10:44:58 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-05-13 10:44:58 +0200
Filesf4bd364255f155cb59004652bade89ba999be651 /Makefile
goodwolf-0.2.0.tar
goodwolf-0.2.0.tar.gz
goodwolf-0.2.0.zip
Parent1b868aad609d9c3460af8df0e2c151d4f755f210 (diff)
Parentfb531698c4e5f3c0c2f7a9151222ba8aaa6bd1e7 (diff)
Release 0.2.0 v0.2.0
1 files changed, 6 insertions, 6 deletions
-rw-r--r--Makefile12
diff --git a/Makefile b/Makefile
index 2635716..7bd30db 100644
--- a/Makefile
+++ b/Makefile
@@ -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)