add implicit rule for %.a to help debugging in subdirs

This commit is contained in:
Mike Frysinger 2006-05-10 18:12:16 +00:00
parent 094b9f7e1d
commit 6143c0719b

View File

@ -353,4 +353,12 @@ do_elf2flt = @$(disp_elf2flt) ; $(cmd_elf2flt)
%.o: %.c %.o: %.c
$(compile.c) $(compile.c)
uppercase = $(shell echo $1 | tr '[:lower:]' '[:upper:]')
%.a:
@if test -z "$($(call uppercase,$*)_DIR)" ; then \
echo "Invalid target $@" ; \
exit 1 ; \
fi
$(Q)$(MAKE) $($(call uppercase,$*)_DIR)$@
.PHONY: dummy .PHONY: dummy