mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-28 17:32:29 +01:00
configure: rewrote detection for 'xgettext'
The main change is to use Autoconf's syntax for consistency; Now the detected program is used in the makefiles (user has the possibility to change the name of the command); A conditional is used to avoid enabling make targets that would fail if the command does not exist. Took opportunity to implement the silent-rules compliance to POT generation rules. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
80e00c3521
commit
2cfb2b5276
@@ -20,14 +20,17 @@ SUFFIXES = .po .mo
|
||||
|
||||
all-local: $(CATALOGS)
|
||||
|
||||
|
||||
if HAVE_XGETTEXT
|
||||
$(DOMAIN).pot: $(POTFILES)
|
||||
xgettext --default-domain=$(DOMAIN) \
|
||||
--add-comments --keyword=_ --keyword=N_ $(POTFILES)
|
||||
if cmp -s $(DOMAIN).po $(DOMAIN).pot; then \
|
||||
$(AM_V_GEN)$(XGETTEXT) --default-domain=$(DOMAIN) \
|
||||
--add-comments --keyword=_ --keyword=N_ $(POTFILES)
|
||||
@if cmp -s $(DOMAIN).po $(DOMAIN).pot; then \
|
||||
rm -f $(DOMAIN).po; \
|
||||
else \
|
||||
mv -f $(DOMAIN).po $(DOMAIN).pot; \
|
||||
fi
|
||||
endif
|
||||
|
||||
|
||||
install-data-local: $(CATALOGS)
|
||||
|
||||
Reference in New Issue
Block a user