[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Broken install-data-yes target

From: Peter Johansson
Subject: Re: Broken install-data-yes target
Date: Thu, 06 Jun 2013 11:22:33 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130108 Thunderbird/10.0.12

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"; \


reply via email to

[Prev in Thread] Current Thread [Next in Thread]