summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/d2c.mk11
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' {} \;