On 06/06/2013 07:37 AM, Kip Warner wrote:
Hey list,
My make install target for my autotool'd project's translations
directory has a number of prerequisites. The one which seems to be
causing trouble is the install-data-yes target. Yes, I am aware the path
I am using contains spaces and yes I am aware that makefiles can choke
on it if not properly dealt with (e.g. escaped). From the final
generated Makefile...
install-data-yes: all
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
dir=$(localedir)/$$lang/LC_MESSAGES; \
$(mkdir_p) $(DESTDIR)$$dir; \
The second to last line seems to be causing problems.
Have you tried quoting the last two lines; something like:
dir="$(localedir)/$$lang/LC_MESSAGES"; \
$(mkdir_p) "$(DESTDIR)$$dir"; \
Cheers,
Peter