From fe981019cffce752cb768095cdd15e42f33c3d6c Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Sun, 19 Aug 2001 19:03:20 +0000 Subject: [PATCH] Fixed builds if srcdir != builddir. Freeze KDE1 messages in a tar file and unpack them if required. --- po/Makefile.am | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/po/Makefile.am b/po/Makefile.am index 82db6e9..02df23d 100644 --- a/po/Makefile.am +++ b/po/Makefile.am @@ -12,7 +12,7 @@ MAINTAINERCLEANFILES = $(GMOFILES) GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ -EXTRA_DIST = $(PACKAGE).pot $(POFILES) $(GMOFILES) +EXTRA_DIST = $(PACKAGE).pot $(POFILES) $(GMOFILES) kde1-gmo.tar all: all-@USE_NLS@ @@ -23,11 +23,16 @@ SUFFIXES = .po .gmo .po.mo: $(MSGFMT) -o $@ $< +if BUILDFORKDE2 .po.gmo: file=`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $< - all-yes: $(GMOFILES) +else +all-yes: + cd $(srcdir) && tar xf kde1-gmo.tar +endif + all-no: install-yes: all @@ -38,7 +43,7 @@ install-yes: all name=$(PACKAGE).mo \ dir=$$destdir/$$lang/LC_MESSAGES; \ $(mkinstalldirs) $$dir; \ - $(INSTALL_DATA) $$cat $$dir/$$name; \ + $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$$name; \ echo "installing $$cat as $$dir/$$name"; \ done -- 2.11.4.GIT