summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2012-01-14 17:22:06 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2012-01-14 17:22:06 (GMT)
commitcb7fcbe1ef4ffba4c3041c4d4414d5b41856691c (patch)
treee39c790b713682f98e3fcb67a139bd4a4464695b /Makefile.in
parentc8e39d6d298f921b8b510bb88bc210fb30f0bd10 (diff)
kconfig: install compiled frontends
The kconfig frontends are currently instaleld as source files. This is a remnant of the early times, when I wanted a single installation of crosstool-NG to be shared across multiple machines, potentially of different architectures. This does not really make sense, and it's been a long time since it was las tpossible in practice. So, just build the kconfig frontends at make-time, and install them as we do for all other crosstool-NG dependent files. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in84
1 files changed, 56 insertions, 28 deletions
diff --git a/Makefile.in b/Makefile.in
index 377cd56..66e0773 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -39,29 +39,37 @@ all: Makefile build
# Configuration variables
# Stuff found by ./configure
-DATE := @DATE@
-LOCAL := @enable_local@
-PROG_SED := @program_transform_name@
-PACKAGE_TARNAME := @PACKAGE_TARNAME@
-VERSION := @PACKAGE_VERSION@
-prefix := @prefix@
-exec_prefix := @exec_prefix@
-bindir := @bindir@
-libdir := @libdir@@sublibdir@
-docdir := @docdir@@subdocdir@
-datarootdir := @datarootdir@
-mandir := @mandir@
-install := @INSTALL@
-bash := @_BASH@
-grep := @EGREP@
-make := @MAKE@
-sed := @SED@
-libtool := @LIBTOOL@
-libtoolize := @LIBTOOLIZE@
-objcopy := @OBJCOPY@
-objdump := @OBJDUMP@
-readelf := @READELF@
-patch := @PATCH@
+export DATE := @DATE@
+export LOCAL := @enable_local@
+export PROG_SED := @program_transform_name@
+export PACKAGE_TARNAME := @PACKAGE_TARNAME@
+export VERSION := @PACKAGE_VERSION@
+export prefix := @prefix@
+export exec_prefix := @exec_prefix@
+export bindir := @bindir@
+export libdir := @libdir@@sublibdir@
+export docdir := @docdir@@subdocdir@
+export mandir := @mandir@
+export datarootdir := @datarootdir@
+export install := @INSTALL@
+export bash := @_BASH@
+export grep := @EGREP@
+export make := @MAKE@
+export sed := @SED@
+export libtool := @LIBTOOL@
+export libtoolize := @LIBTOOLIZE@
+export objcopy := @OBJCOPY@
+export objdump := @OBJDUMP@
+export readelf := @READELF@
+export patch := @PATCH@
+export CC := @CC@
+export CPP := @CPP@
+export CPPFLAGS := @CPPFLAGS@
+export CFLAGS := @CFLAGS@
+export LDFLAGS := @LDFLAGS@
+export LIBS := @LIBS@
+export curses_hdr := @ac_ct_curses_hdr@
+export gettext := @gettext@
# config options to push down to kconfig
KCONFIG:= @kconfig_options@
@@ -113,7 +121,7 @@ build install clean distclean mrproper uninstall:
else
# There were no additional MAKEFLAGS to add, do the job
-TARGETS := bin lib doc man
+TARGETS := bin lib lib-kconfig doc man
build: $(patsubst %,build-%,$(TARGETS))
@@ -137,10 +145,17 @@ uninstall: real-uninstall
#--------------------------------------
# Build rules
-build-bin: $(PROG_NAME) scripts/crosstool-NG.sh scripts/saveSample.sh scripts/showTuple.sh
+build-bin: $(PROG_NAME) \
+ scripts/crosstool-NG.sh \
+ scripts/saveSample.sh \
+ scripts/showTuple.sh
@chmod 755 $^
-build-lib: paths.mk config/configure.in
+build-lib: paths.mk \
+ config/configure.in
+
+build-lib-kconfig:
+ @$(MAKE) -C kconfig
build-doc:
@@ -229,6 +244,9 @@ clean-lib:
@echo " RM 'config/configure.in'"
@rm -f config/configure.in
+clean-lib-kconfig:
+ @$(MAKE) -C kconfig clean
+
clean-doc:
clean-man:
@@ -263,9 +281,12 @@ install-bin: $(DESTDIR)$(bindir)
# installations of the same VERSION, thus the patches must be removed prior
# to being installed. It is simpler to remove the whole lib/ directory, as it
# is the goal of the install-lib rule to install the lib/ directory...
-install-lib: uninstall-lib $(DESTDIR)$(libdir) install-lib-main install-lib-samples
+install-lib: uninstall-lib \
+ $(DESTDIR)$(libdir) \
+ install-lib-main \
+ install-lib-samples
-LIB_SUB_DIR := config contrib kconfig patches scripts
+LIB_SUB_DIR := config contrib patches scripts
$(patsubst %,install-lib-%-copy,$(LIB_SUB_DIR)): $(DESTDIR)$(libdir)
@echo " INSTDIR '$(patsubst install-lib-%-copy,%,$(@))/'"
@tar cf - --exclude='*.sh.in' $(patsubst install-lib-%-copy,%,$(@)) \
@@ -306,6 +327,13 @@ install-lib-samples: $(DESTDIR)$(libdir) install-lib-main
done
@$(install) -m 644 samples/samples.mk "$(DESTDIR)$(libdir)/samples/samples.mk"
+KCONFIG_FILES := conf mconf nconf kconfig.mk
+install-lib-kconfig: $(DESTDIR)$(libdir) install-lib-main
+ @echo " INST 'kconfig/'"
+ @for f in $(KCONFIG_FILES); do \
+ install -D "kconfig/$${f}" "$(DESTDIR)$(libdir)/kconfig/$${f}"; \
+ done
+
install-doc: $(DESTDIR)$(docdir)
@echo " INST 'docs/*.txt'"
@for doc_file in docs/*.txt; do \