More experimentation with obfuscation. Wondering why it is slow.
[mgear/mgear.git] / experiments / obfuscation-dump.mk
1 .SECONDEXPANSION:
2
3 obfn1:=/./.
4 #obfn=$(obfn1)$(eval obfn1=$(patsubst /.//////%,/.//./%,$(subst /.//////,//./,$(obfn1)/)))
5 #obfn=$(obfn1)$(eval pr$(obfn1)=$1)$(eval cmd$(obfn1)=$2)$(eval obfn1:=$(subst /.//////,//./,$(patsubst /.//////%,/././%,$(obfn1:.=/.))))
6 obfn=$(obfn1)$(eval pr=$1)$(eval cmd=$2)$(eval obfn1:=$(subst /.//////,//./,$(patsubst /.//////%,/././%,$(obfn1:.=/.))))
7
8 digits=0 1 2 3 4 5 6 7 8 9
9
10 %yxxx: $(foreach d,$(digits),%$dyxx)
11         
12 %yxx: $(foreach d,$(digits),%$dyx)
13         
14 %yx: $(foreach d,$(digits),%$dy)
15         
16 #%y: $$(call obfn,FORCE,$$$$(info Running $$@ $$$$@))
17 %y: $$(call obfn,,)
18         
19 /./%: $$(pr)
20         $(cmd)
21 FORCE: