make install acts weird with DESTDIR
@kakaroto
Submitted by Youness Alaoui Assigned to Youness Alaoui @kakaroto
Description
Hi,
I use "make install DESTDIR=/usr/local/stow/$(basename $(pwd))" to install all my packages and I noticed that pitivi acts weird as it created both a /usr/local/stow/pitivi/ and /usr/local/stow/pitivi../ directories.
The locale dir should be installed in ${DESTDIR}/share/locale instead of ${DESTDIR}.././locale
Here's a small part of the 'make install' output :
installing ar.gmo as /usr/local/stow/pitivi.././locale/ar/LC_MESSAGES/pitivi.mo
installing ast.gmo as /usr/local/stow/pitivi.././locale/ast/LC_MESSAGES/pitivi.mo
installing bg.gmo as /usr/local/stow/pitivi.././locale/bg/LC_MESSAGES/pitivi.mo
Also note that the /usr/local/stow/pitivi/share/locale directory was also created with the right content, so it seems like the issue is actually from the Makefile.am in the top directory which contains :
locale-uninstalled:
if test -d po; then \
(MAKE) -C po datadir=../
(top_builddir) install; \
fi
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=666024