rules.mk: Add targets local-% and unlocal (might be shifted into topdir.mk, not yet existing)

This commit is contained in:
Jan Lindemann 2006-05-26 13:48:26 +00:00 committed by Jan Lindemann
commit 7990f63f04

View file

@ -313,3 +313,14 @@ echo-development:
echo-libpath:
@echo LD_LIBRARY_PATH = $(LD_LIBRARY_PATH)
local-%:
find . -name $@.mk | \
while read f; do \
cd $(dir $$f) ;\
rm -f local.mk ;\
ln -s $(notdir $$f local.mk) ;\
done
unlocal:
rm -f $(shell find . -name local.mk)