gnsutep and DESTDIR
Maciej (Matchek) Bliziński
maciej at opencsw.org
Tue May 20 07:21:55 CEST 2014
On Tue, May 20, 2014 at 12:21 AM, Riccardo Mottola <rmottola at opencsw.org> wrote:
> I got gnustep-base workign (commited the mgar makefile) I had to define
> however the following target:
>
> install-sourcegs:
> . $(BUILD_PREFIX)/GNUstep/System/Library/Makefiles/GNUstep.sh && cd
> $(WORKSRC) && /usr/bin/env -i $(INSTALL_ENV) && $(MAKE) install
> DESTDIR=$(DESTDIR)
> @$(MAKECOOKIE)
>
> that is, explicitely set DESDTIR after INSTALL. Otheriwse it wouldn't
> work. I tried explicitely exporting $DESTDIR before install, but it did
> not help.
>
> Do you think this is correct or is there a better way?
It probably has to with how /usr/bin/env and gmake are called. See this example:
> /usr/bin/env -i FOO=bar /opt/csw/bin/gmake -f <( echo -e 'a:\n\t at if [ -n "$(FOO)" ]; then echo "FOO has a value"; else echo "FOO has no value"; fi' )
FOO has a value
> /usr/bin/env -i FOO=bar && /opt/csw/bin/gmake -f <( echo -e 'a:\n\t at if [ -n "$(FOO)" ]; then echo "FOO has a value"; else echo "FOO has no value"; fi' )
FOO=bar
FOO has no value
If line breaks in email get in the way: http://pastie.org/9191629
Maciej
More information about the maintainers
mailing list