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-%: local-%:
find . -name $@.mk | \ find . -name $@.mk | \
while read f; do \ while read f; do (\
cd $(dir $$f) ;\ cd `dirname $$f` ;\
rm -f local.mk ;\ rm -f local.mk ;\
ln -s $(notdir $$f local.mk) ;\ ln -s `basename $$f` local.mk ;\
done ) done
unlocal: unlocal:
rm -f $(shell find . -name local.mk) rm -f $(shell find . -name local.mk)