]> git.donarmstrong.com Git - lilypond.git/blobdiff - GNUmakefile.in
* GNUmakefile.in: config.h message fix.
[lilypond.git] / GNUmakefile.in
index 568118f0a9b600e1fb899e3a166c7bca864209c2..fb3ad034c90c218f6171f15137e7d9f642a8cba2 100644 (file)
@@ -8,9 +8,10 @@ depth = .
 
 # descent order into subdirectories
 # 
-SUBDIRS = buildscripts scripts flower lily \
+SUBDIRS = buildscripts python scripts \
+       flower lily \
        mf ly tex ps scm \
-       python po make \
+       po make \
        cygwin debian $(builddir)/stepmake \
        Documentation input
 #
@@ -125,6 +126,10 @@ default: $(config_h) builddir-setup
 
 builddir-setup: $(builddir)/share/lilypond-force
 
+PO_FILES = $(wildcard $(srcdir)/po/*.po)
+HELP_CATALOGS = $(PO_FILES:$(srcdir)/po/%.po=%)
+CATALOGS = $(HELP_CATALOGS:lilypond=) 
+
 $(builddir)/share/lilypond-force:
 # Preparing LilyPond tree for builddir exec
        cd $(builddir) && rm -rf share
@@ -148,6 +153,10 @@ $(builddir)/share/lilypond-force:
                ln -s ../../../mf/$(outconfbase) afm && \
                ln -s ../../../mf/$(outconfbase) tfm && \
                ln -s ../../../mf/$(outconfbase) type1
+       $(foreach i,$(CATALOGS), \
+               mkdir -p $(builddir)/share/locale/$i/LC_MESSAGES && \
+               cd $(builddir)/share/locale/$i/LC_MESSAGES && \
+               ln -fs ../../../../po/$(outconfbase)/$i.mo lilypond.mo &&) true
        touch $@
 
 local-clean: builddir-setup-clean
@@ -161,8 +170,8 @@ $(config_h): configure.in aclocal.m4
 # and they blindly run "cvs update; make".
 #
        @echo
-       @echo ' *** config.h is out of date'
+       @echo ' *** $(config_h) is out of date'
        @echo ' *** Remove it and rerun autogen:'
-       @echo '         rm config.h; ./autogen.sh'
+       @echo '         rm $(config_h); ./autogen.sh'
        @echo
        @false