mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 04:47:52 +00:00
355f6f03fb
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>
23 lines
589 B
Makefile
23 lines
589 B
Makefile
## Process this file with automake to produce Makefile.in
|
|
## vim: set noet :
|
|
|
|
include verbatim-data.mk
|
|
|
|
SUBDIRS = kconfig
|
|
|
|
bin_SCRIPTS = ct-ng
|
|
CLEANFILES = $(bin_SCRIPTS)
|
|
EXTRA_DIST = ct-ng.in bootstrap
|
|
|
|
# paths.sh generated by configure
|
|
nobase_dist_pkgdata_DATA = $(verbatim_data) paths.sh
|
|
|
|
do_subst = ( @SED@ \
|
|
-e 's,[@]docdir[@],$(docdir),g' \
|
|
-e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \
|
|
-e 's,[@]pkglibexecdir[@],$(pkglibexecdir),g' \
|
|
| $(SHELL) config.status --file=- )
|
|
|
|
ct-ng: ct-ng.in Makefile
|
|
$(AM_V_GEN)$(do_subst) < $< >$@-t && chmod a-w,a+x $@-t && mv -f $@-t $@
|