summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2016-02-13 14:30:51 +0100
committerStef Walter <stefw@gnome.org>2016-02-13 14:32:48 +0100
commit324f2d2e1a7c7391c9b7d794265c07af7767dd95 (patch)
treec764eedb2ed87afb1776e5548f88d2e17be2153c /build
parent562a3f5e62876a9bbadb135c049a828e303afe0e (diff)
downloadgnome-keyring-324f2d2e1a7c7391c9b7d794265c07af7767dd95.tar.gz
build: Make it easy to run 'make' when $srcdir != $builddir
Diffstat (limited to 'build')
-rw-r--r--build/Makefile.redirect9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/Makefile.redirect b/build/Makefile.redirect
new file mode 100644
index 00000000..db371eb1
--- /dev/null
+++ b/build/Makefile.redirect
@@ -0,0 +1,9 @@
+# This redirects all make targets to builddir
+all:
+ $(MAKE) -C $(REDIRECT) all
+%:
+ $(MAKE) -C $(REDIRECT) $@
+ifeq ($(MAKEFLAGS), )
+JOBARG = -j4
+endif
+# REDIRECT=build