Fix upload-pot make target for out-of-tree build
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 11 Jun 2012 09:54:00 +0000 (10:54 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 11 Jun 2012 09:54:00 +0000 (10:54 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Makefile.am
po/Makefile.am

index a07efd0..1bf56ea 100644 (file)
@@ -98,4 +98,6 @@ update-translations:
        fi
 
 upload-pot:
+       if [ ${abs_top_builddir} != $(abs_top_srcdir) ]; then \
+               ln -sf ${abs_top_srcdir}/.tx .tx; fi
        @make -C po openconnect.pot && tx push -s
index 73f218c..b12f9c9 100644 (file)
@@ -44,3 +44,4 @@ $(PACKAGE).pot: $(POTFILES) Makefile
          --msgid-bugs-address=openconnect-devel@lists.infradead.org -o $@
 
 EXTRA_DIST = $(POFILES) LINGUAS POTFILES.in
+DISTCLEANFILES=$(PACKAGE).pot