Re: [code] Improving the Makefile

From: Mitchell <m.att.foicica.com>
Date: Fri, 10 Feb 2017 11:20:11 -0500 (EST)

Hi Pedro,

On Thu, 9 Feb 2017, Pedro Andres Aranda Gutierrez wrote:

> Hi,
>
> Everytime one of the external dependencies gets upgrades, make will fail
> (at least in Linux) because it will try to mkdir an existing directory when
> rebuilding it. A simple solution to this would be to delete the directory
> created when uncompressing the archive with the external dependency. An
> example with the rule to rebuild scintilla would be:
>
> $(scintilla_tgz): ; wget http://prdownloads.sourceforge.net/scintilla/$@ -O
> $@
> scintilla: scintilla.patch | $(scintilla_tgz)
> [ -d $@ ] && rm -rf $@
> mkdir $@ && tar xzf $| -C $@ && mv $@/*/* $@
> patch -d $@ -N -p1 < $<
>
> Currently, I'm deleting the whole textadept source directory and recloning
> from hg and that defies the purpose of hg.

Thanks for your input! You are correct that there is room for improvement.
I will look into this and also consider your suggestion.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 10 Feb 2017 - 11:20:11 EST

This archive was generated by hypermail 2.2.0 : Sat 11 Feb 2017 - 06:26:52 EST