tools: Allow 'make dist' from srcdir to work

This is because we already have a dist directory, and
in our wrapper makefile we have to mark 'DIST' as phony
target.

https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html

Reviewed-by: Dominik Perpeet <dperpeet@redhat.com>
This commit is contained in:
Stef Walter 2016-11-09 11:06:48 +01:00 committed by Dominik Perpeet
parent c790328486
commit c33702f722
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
# This redirects all make targets to builddir
.PHONY: dist
all:
$(MAKE) $(ARG) -C $(REDIRECT) all
dist:
$(MAKE) $(ARG) -C $(REDIRECT) dist
%:
$(MAKE) $(ARG) -C $(REDIRECT) $@
ifeq ($(MAKEFLAGS), )