Browse files

Define the default target before reading .repo/Makefile.extra

I need to add extra options and rules in my Makefile, but I want the
default make target to stay the same (so that I don't have to edit my
file if we change the content of the default target).

Change-Id: I258fc1be6dfb7ed4b3d0a954af2211fe1adedde8
Reviewed-on: http://review.membase.org/4871
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
  • Loading branch information...
1 parent 4025b3c commit 9ad61b092e22d16b52d66173d187a541b1532558 @trondn trondn committed with alk Mar 11, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 Makefile
View
4 Makefile
@@ -31,13 +31,13 @@ else
LIBRARY_OPTIONS := --disable-static --enable-shared
endif
+all: do-install-all dev-symlink build-ns_server
+
# this thing can override settings and add components
ifneq "$(realpath .repo/Makefile.extra)" ""
include .repo/Makefile.extra
endif
-all: do-install-all dev-symlink build-ns_server
-
do-install-all: $(MAKE_INSTALL_TARGETS)
build-ns_server:

0 comments on commit 9ad61b0

Please sign in to comment.