From 80ef83c31f694bde42e3652c89d9edc1aabd7cd7 Mon Sep 17 00:00:00 2001 From: Matt McCutchen Date: Sun, 3 Jun 2007 09:45:01 -0400 Subject: [PATCH] More experimentation with obfuscation. Wondering why it is slow. Evidently all the stat calls are the bottleneck. That makes me wonder whether there is a way to get make to think a file was explicitly named as an alternative to using a file that exists. --- experiments/obfuscation-dump.mk | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/experiments/obfuscation-dump.mk b/experiments/obfuscation-dump.mk index aaa0953..3c6bd9f 100644 --- a/experiments/obfuscation-dump.mk +++ b/experiments/obfuscation-dump.mk @@ -1,14 +1,9 @@ .SECONDEXPANSION: -obfn1=/./. +obfn1:=/./. #obfn=$(obfn1)$(eval obfn1=$(patsubst /.//////%,/.//./%,$(subst /.//////,//./,$(obfn1)/))) -define obfn -$(obfn1)$(eval -pr$(obfn1)=$1 -cmd$(obfn1)=$2 -obfn1=$(subst /.//////,//./,$(patsubst /.//////%,/././%,$(obfn1:.=/.))) -) -endef +#obfn=$(obfn1)$(eval pr$(obfn1)=$1)$(eval cmd$(obfn1)=$2)$(eval obfn1:=$(subst /.//////,//./,$(patsubst /.//////%,/././%,$(obfn1:.=/.)))) +obfn=$(obfn1)$(eval pr=$1)$(eval cmd=$2)$(eval obfn1:=$(subst /.//////,//./,$(patsubst /.//////%,/././%,$(obfn1:.=/.)))) digits=0 1 2 3 4 5 6 7 8 9 @@ -18,8 +13,9 @@ digits=0 1 2 3 4 5 6 7 8 9 %yx: $(foreach d,$(digits),%$dy) -%y: $$(call obfn,FORCE,$$$$(info Running $$@ $$$$@)) +#%y: $$(call obfn,FORCE,$$$$(info Running $$@ $$$$@)) +%y: $$(call obfn,,) -/./%: $$(pr$$@) - $(cmd$@) +/./%: $$(pr) + $(cmd) FORCE: -- 2.34.1