From: Leandro Lucarella Date: Fri, 18 Sep 2009 00:39:32 +0000 (-0300) Subject: Don't use abbr except when printing pretty messages X-Git-Url: https://git.llucax.com/software/makeit.git/commitdiff_plain/7dd12ab3b844f5c0601f337f0d40953bda2af56f Don't use abbr except when printing pretty messages This avoids the build system to break if abbr function have a bug (which should affect only to pretty printed messages). --- diff --git a/Lib.mak b/Lib.mak index fbf5280..539a597 100644 --- a/Lib.mak +++ b/Lib.mak @@ -99,17 +99,17 @@ $(if $(GCH),\ $Vif test -f $O/$*.d; then \ tmp=`mktemp`; \ h=`awk -F: '!$$0 {f = 1} $$0 && f {print $$1}' $O/$*.d`; \ - grep -h '^#include <' $(call abbr,$<) $$h | sort -u > "$$tmp"; \ - if diff -q -w "$(call abbr,$O/$*.$1.h)" "$$tmp" > /dev/null 2>&1; \ + grep -h '^#include <' $< $$h | sort -u > "$$tmp"; \ + if diff -q -w "$O/$*.$1.h" "$$tmp" > /dev/null 2>&1; \ then \ rm "$$tmp"; \ else \ - mv "$$tmp" "$(call abbr,$O/$*.$1.h)"; \ + mv "$$tmp" "$O/$*.$1.h"; \ $(call vexec,$(COMPILE.$1) -o "$O/$*.$1.h.gch" "$O/$*.$1.h",\ $O/$*.$1.h.gch); \ fi \ else \ - touch "$(call abbr,$O/$*.$1.h)"; \ + touch "$O/$*.$1.h"; \ fi \ ) $(call exec,$(COMPILE.$1) -o $@ -MMD -MP $(if $(GCH),-include $O/$*.$1.h) $<)