[code] Improving the Makefile

From: Pedro Andres Aranda Gutierrez <paaguti.att.gmail.com>
Date: Thu, 9 Feb 2017 19:28:56 +0100

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.

Just my two cents,
/PA

-- 
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellet zu werden
Georg Kreisler
-- 
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 Thu 09 Feb 2017 - 13:28:56 EST

This archive was generated by hypermail 2.2.0 : Fri 10 Feb 2017 - 06:48:49 EST