Makefile: use phony targets

Add 'build', 'build-*', and 'install' as phony targets to the top level
Makefile.

I tend to do everything in tree with the build in a directory called
'build'.  This interfered with the target 'build', making it think the
target was up to date, and stopping scripts/crosstool-NG.sh from being
regenerated.

Added 'install' as I often set the prefix to $PWD/install.

Signed-off-by: Michael Hope <michael.hope@linaro.org>
This commit is contained in:
Michael Hope 2011-09-29 12:27:54 +13:00
parent c61ad06f91
commit 89cf5bb67f

View File

@ -347,3 +347,5 @@ uninstall-man:
endif # Not --local
endif # No extra MAKEFLAGS were added
.PHONY: build $(patsubst %,build-%,$(TARGETS)) install