define 01 endef f=$(if $8,$(if $($1)$($2)$($3)$($4),x,X),$(foreach i,0$4 $41 0$4,$(call f,$i,$1,$2,$3,$4,$5,$6,$7))$($($40)$501)) $(info $(subst x, ,$(subst $ ,,$f)))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).