aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-30 16:31:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-30 16:31:13 +0200
commitfb87256bebb703bc2c199844aad92fd3adff7804 (patch)
treec2c2c8931cddefac000e84dc68369d7e7404f1a8
parent757d979d6869e801f16d541517783e379c7ccec9 (diff)
Don't try to depend on installed cli executable
-rw-r--r--odb/mysql/makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/mysql/makefile b/odb/mysql/makefile
index 5b6c266..6e547c2 100644
--- a/odb/mysql/makefile
+++ b/odb/mysql/makefile
@@ -64,7 +64,12 @@ $(cxx_obj) $(cxx_od): $(odb_mysql.l.cpp-options) $(out_base)/details/config.h
genf := $(cli_tun:.cli=.hxx) $(cli_tun:.cli=.ixx) $(cli_tun:.cli=.cxx)
gen := $(addprefix $(out_base)/,$(genf))
+# Don't try to depend on the installed executable.
+#
+ifneq ($(cli),cli)
$(gen): $(cli)
+endif
+
$(gen): cli := $(cli)
$(gen): cli_options += \
--long-usage \