topdir.mk: Make local-% target work

This commit is contained in:
Jan Lindemann 2006-06-01 09:10:30 +00:00 committed by Jan Lindemann
commit 533109b376

View file

@ -1,10 +1,10 @@
local-%:
find . -name $@.mk | \
while read f; do \
cd $(dir $$f) ;\
while read f; do (\
cd `dirname $$f` ;\
rm -f local.mk ;\
ln -s $(notdir $$f local.mk) ;\
done
ln -s `basename $$f` local.mk ;\
) done
unlocal:
rm -f $(shell find . -name local.mk)