]> git.sur5r.net Git - kconfig-frontends/commitdiff
buildsystem: don't use recursive make for kconfig meta frontend
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 23 Aug 2016 18:00:24 +0000 (20:00 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 23 Aug 2016 18:54:41 +0000 (20:54 +0200)
Yet anotehr step to get rid of the recursive make.

We're now defining more than one bin_SCRIPT, so use += when assigning to
it. This also requires it be at least assinged once with =. Do that with
an empty value. Do so also for a few other variables.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Makefile.am
frontends/Makefile.am

index cdb3f008403bd48548d0071e7b17a89d31b309c5..8be91bc893f23e78b781b6f7ca637a7dfbd88c6b 100644 (file)
@@ -4,23 +4,47 @@ MAKEFLAGS = $(SILENT_MAKEFLAGS)
 SUBDIRS = libs frontends
 EXTRA_DIST = .version
 
+bin_PROGRAMS =
+bin_SCRIPTS =
+dist_bin_SCRIPTS =
+
+CLEAN_FILES =
+
 #===============================================================================
 # Docs
 dist_doc_DATA = \
        docs/kconfig-language.txt \
        docs/kconfig.txt
 
+#===============================================================================
+# Frontends
+
+#--------------------------
+# kconfig meta frontend
+if COND_kconfig
+
+bin_SCRIPTS += frontends/kconfig
+
+frontends/kconfig: frontends/kconfig.in
+       $(AM_V_GEN)$(SED) -e 's/@KCFG_LIST@/$(kcfg_list)/g' \
+               $< >$@
+       @chmod +x $@
+
+EXTRA_DIST += frontends/kconfig.in
+
+endif # COND_kconfig
+
 #===============================================================================
 # Utilities
 if COND_utils
 
-bin_SCRIPTS = utils/kconfig-tweak
-dist_bin_SCRIPTS = utils/kconfig-diff utils/kconfig-merge
+bin_SCRIPTS += utils/kconfig-tweak
+dist_bin_SCRIPTS += utils/kconfig-diff utils/kconfig-merge
 
 if COND_utils_gettext
 MAYBE_utils_gettext = utils/kconfig-gettext
 endif
-bin_PROGRAMS = $(MAYBE_utils_gettext)
+bin_PROGRAMS += $(MAYBE_utils_gettext)
 
 utils_kconfig_gettext_SOURCES = utils/gettext.c
 utils_kconfig_gettext_CPPFLAGS = \
@@ -33,7 +57,7 @@ utils_kconfig_gettext_LDADD = \
        $(top_builddir)/libs/parser/libkconfig-parser.la \
        $(intl_LIBS)
 
-CLEAN_FILES = utils/kconfig-tweak
+CLEAN_FILES += utils/kconfig-tweak
 EXTRA_DIST += \
        utils/kconfig-tweak.in \
        utils/kconfig-tweak.in.patch
index 6e77564dea9ce700ae89618e637ba9467b9b4d03..0badbc8c6d95a4b43c2dedd8d235a33955465e75 100644 (file)
@@ -1,6 +1,3 @@
-if COND_kconfig
-    MAYBE_kconfig = kconfig
-endif
 if COND_conf
     MAYBE_conf = conf
 endif
@@ -17,12 +14,3 @@ if COND_qconf
     MAYBE_qconf = qconf
 endif
 SUBDIRS = $(MAYBE_conf) $(MAYBE_mconf) $(MAYBE_nconf) $(MAYBE_gconf) $(MAYBE_qconf)
-
-EXTRA_DIST = kconfig.in
-
-bin_SCRIPTS = $(MAYBE_kconfig)
-
-kconfig: kconfig.in
-       $(AM_V_GEN)$(SED) -e 's/@KCFG_LIST@/$(kcfg_list)/g'      \
-                         $< >$@
-       @chmod +x $@