Here's what I have so far related to the Mage build tool.
[mgear/mgear.git] / experiments / obfuscation-dump.mk
CommitLineData
00804b7c
MM
1.SECONDEXPANSION:
2
3obfn1=/./.
4#obfn=$(obfn1)$(eval obfn1=$(patsubst /.//////%,/.//./%,$(subst /.//////,//./,$(obfn1)/)))
5define obfn
6$(obfn1)$(eval
7pr$(obfn1)=$1
8cmd$(obfn1)=$2
9obfn1=$(subst /.//////,//./,$(patsubst /.//////%,/././%,$(obfn1:.=/.)))
10)
11endef
12
13digits=0 1 2 3 4 5 6 7 8 9
14
15%yxxx: $(foreach d,$(digits),%$dyxx)
16
17%yxx: $(foreach d,$(digits),%$dyx)
18
19%yx: $(foreach d,$(digits),%$dy)
20
21%y: $$(call obfn,FORCE,$$$$(info Running $$@ $$$$@))
22
23/./%: $$(pr$$@)
24 $(cmd$@)
25FORCE: