mirror-cockpit-project-cockpit/tools/Makefile.redirect
Stef Walter c33702f722 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>
2016-11-09 16:17:29 +01:00

12 lines
233 B
Text

# 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), )
ARG = -j8
endif
# REDIRECT=build