]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/po-targets.make
release: 1.0.4
[lilypond.git] / stepmake / stepmake / po-targets.make
1
2
3
4 ####
5 #### UGH!
6 new-po:
7         if test -r $(po-dir); then \
8           rm -f $(po-dir)/$(outdir)/$(package).po; \
9           touch $(po-dir)/$(outdir)/$(package).po; \
10         fi
11
12 ifeq ($(strip $(depth)),.)
13 po: new-po
14         $(LOOP)
15 localpo:
16         @true
17 else
18 po: localpo
19         $(LOOP)
20 ALL_PO_SOURCES = $(ALL_C_SOURCES) $(wildcard $(outdir)/*.hh) $(wildcard $(outdir)/*.cc)
21 localpo:
22 ifneq ($(strip $(ALL_PO_SOURCES)),)
23         @echo $(ALL_PO_SOURCES)
24         xgettext --c++ --default-domain=$(package) --join \
25          --output-dir=$(po-dir)/$(outdir) --add-comments \
26          --keyword=_ --keyword=_f $(ALL_PO_SOURCES)
27 endif
28 endif
29
30
31 po-update: po
32         $(MAKE) -C $(po-dir) po-update
33
34 show-po-changes:
35         $(MAKE) -C $(po-dir) show-po-changes
36