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