support clean/distclean make targets in unconfigured tree
authorRich Felker <dalias@aerifal.cx>
Wed, 17 Feb 2016 21:11:45 +0000 (16:11 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 17 Feb 2016 21:11:45 +0000 (16:11 -0500)
commit157e28492a287907fb6f3d39894c2c1b84122b51
treec1c6cfb5521b827746798ba10bf233b195a784ea
parent63bcda4d8f4074e9d92ae156afd0dced6e64eb65
support clean/distclean make targets in unconfigured tree

commit 2f853dd6b9a95d5b13ee8f9df762125e0588df5d moved the error
handling for $(ARCH) not being set such that it applied to all
targets, including clean and distclean. previously these targets
worked even in an unconfigured tree. to restore the old behavior, make
most of the makefile body conditional on $(ARCH) being set/non-empty
and produce the error via a fake "all" target in the conditional
branch for the case where $(ARCH) is empty.
Makefile