[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] /usr/bin/install cannot stat `./builds/unix/freetype-config'
From: |
Dirkjan Ochtman |
Subject: |
Re: [ft] /usr/bin/install cannot stat `./builds/unix/freetype-config' |
Date: |
Mon, 13 Jan 2014 14:24:57 +0100 |
On Mon, Jan 13, 2014 at 2:17 PM, Werner LEMBERG <address@hidden> wrote:
> You are aware that this is not the standard incantation, right? It
> should rather be
>
> cd build/freetype-* \
> && ./configure --prefix=$(PREFIX) \
> && $(MAKE) \
> && $(MAKE) install
>
> and we are documenting this. BTW, it is good practice to build a
> program as non-root, then doing the installation with `sudo' or
> something similar. If this doesn't matter to you, you might say
>
> $(MAKE) all install
>
> instead.
Since we install to a user-accessible prefix, we don't need the sudo.
But thanks, I was aware that ./configure && make && make install is
the more common incantation, but it had also seemed to me that it was
common to have install depend on all, anyway.
>> I've come up with this, does that seem sensible?
>>
>> -install: $(PROJECT_LIBRARY)
>> +install: $(PROJECT_LIBRARY) all
>
> My gut feeling says that this is not a good idea.
Why not? If a Makefile is used to describe dependencies, then surely
building stuff is a dependency of installing it.
Cheers,
Dirkjan