diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-10-11 22:08:17 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-10-11 22:08:17 (GMT) |
commit | 7fa2dc35ccd305da5a4896a4de8086c0f4db4fca (patch) | |
tree | aca524af0fc92f3ff5331cbbcd32b4952fe7965e /tools | |
parent | ffc49de3b424d3daf08b5fdeefd4a3ede6defd02 (diff) |
Modified and rebuilt targets only when needed.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@412 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'tools')
-rw-r--r-- | tools/d2c.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/d2c.mk b/tools/d2c.mk index 78cc374..25596cf 100644 --- a/tools/d2c.mk +++ b/tools/d2c.mk @@ -5,6 +5,14 @@ d2c_verbose = $(d2c_verbose_@AM_V@) d2c_verbose_ = $(d2c_verbose_@AM_DEFAULT_V@) d2c_verbose_0 = @echo " D2C " $<; +fix_verbose = $(fix_verbose_@AM_V@) +fix_verbose_ = $(fix_verbose_@AM_DEFAULT_V@) +fix_verbose_0 = echo " FIX " `basename $$f`; + +fix2_verbose = $(fix2_verbose_@AM_V@) +fix2_verbose_ = $(fix2_verbose_@AM_DEFAULT_V@) +fix2_verbose_0 = echo " FIX " `basename $<`; + # D2C_BIN = # D2C_OUTDIR = # D2C_ARCH = @@ -18,5 +26,6 @@ SUFFIXES = .g $(d2c_verbose)$(D2C_BIN) -d $(D2C_OUTDIR) -a $(D2C_ARCH) -H $(D2C_HEADER) $(D2C_ENCODINGS) $(D2C_MACROS) < $< @touch $@ +# Merci http://www.commandlinefu.com/commands/view/10276/grep-tab-t untabify_disass: - find $(D2C_OUTDIR)/opcodes -name '*c' -exec sed -i 's/\t/ /g' {} \; + find $(D2C_OUTDIR)/opcodes -name '*c' -exec grep -q $$'\t' {} \; -exec sed -i 's/\t/ /g' {} \; |