summaryrefslogtreecommitdiff
path: root/ct-ng.in
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-03-19 06:40:28 (GMT)
committerAlexey Neyman <stilor@att.net>2018-04-07 19:03:17 (GMT)
commit355f6f03fba92c71f9ff8d2e26985d2c1b7a0a0b (patch)
tree7c8a2752a950e332e6e6583c8e17a278aa8a105f /ct-ng.in
parentf45e29c5ca5c50bded67c295fb62e208365cf4d6 (diff)
Cannot ignore 'make install' with automake
Automake does not allow us to place the hooks before its generated actions, and does not allow us to check MAKECMDGOALS, and does not support a mechanism for disabling make install (such as noinst_SUBDIRS, requested a few times on automake mailing list). The only way I could preserve the current behavior is to have a GNUmakefile wrapper that will convert MAKECMDGOAL into a variable unknown to automake - which seems too convoluted a solution for the problem being solved. Hence the approach is to not override anything for --enable-local. It is now fully handled by selecting different values for CT_xxx_DIR in ct-ng.in; but at the build-system level, all the variables remain the same. We just don't support 'make install' in that case anymore; but the ct-ng in the working copy can be used after a regular 'make' (or 'make all'). Help message for --enable-local updated accordingly. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'ct-ng.in')
-rw-r--r--ct-ng.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/ct-ng.in b/ct-ng.in
index 03925f9..926ba71 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -14,18 +14,19 @@ export CT_NG:=$(abspath $(lastword $(MAKEFILE_LIST)))
# and this is where we're working in:
export CT_TOP_DIR:=$(shell pwd)
-# Paths and values set by ./configure
-# Don't bother to change it other than with a new ./configure!
ifeq (@enable_local@,yes)
# automake does not allow to set pkgxxxdir, they are always derived from
# a respective xxxdir. So, for enable-local case, set them directly here.
export CT_LIB_DIR:=$(CT_TOP_DIR)
export CT_LIBEXEC_DIR:=$(CT_TOP_DIR)/kconfig
+export CT_DOC_DIR:=$(CT_TOP_DIR)/docs
else
+# Paths and values set by ./configure
+# Don't bother to change it other than with a new ./configure!
export CT_LIB_DIR:=@pkgdatadir@
export CT_LIBEXEC_DIR:=@pkglibexecdir@
-endif
export CT_DOC_DIR:=@docdir@
+endif
# This is crosstool-NG version string
export CT_VERSION:=@PACKAGE_VERSION@