]> git.sur5r.net Git - kconfig-frontends/commitdiff
buildsystem: don't use recursive make for utils
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 23 Aug 2016 17:11:19 +0000 (19:11 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 23 Aug 2016 17:22:35 +0000 (19:22 +0200)
Using a recursive make can't make effective use of parallelism.

This is the first step in getting rid of recursive make altogether,
starting from the simplest things: utils.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
.gitignore
Makefile.am
configure.ac
utils/Makefile.am [deleted file]

index 95fc7fc1c653b1b413228aa6f15aa45e42840059..a4095f8636918a15deae2a987975f40ef93f01d0 100644 (file)
@@ -38,6 +38,7 @@ stamp-h1
 .deps/
 /autom4te.cache/
 /scripts/.autostuff
+.dirstamp
 
 kconfig-frontends-*.tar*
 kconfig-frontends-*.shar*
index 6ce76a0f13f05fcaea93c858b4b9782fd8822ee1..6741d7095dc99313551f04dda113abd0ffa0a6cf 100644 (file)
@@ -1,7 +1,40 @@
 ACLOCAL_AMFLAGS = -I scripts/.autostuff/m4
 MAKEFLAGS = $(SILENT_MAKEFLAGS)
+
+SUBDIRS = docs libs frontends scripts
+EXTRA_DIST = .version
+
+#===============================================================================
+# Utilities
 if COND_utils
-    MAYBE_utils = utils
+
+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
-SUBDIRS = docs libs frontends scripts $(MAYBE_utils)
-EXTRA_DIST = .version
+bin_PROGRAMS = $(MAYBE_utils_gettext)
+
+utils_kconfig_gettext_SOURCES = utils/gettext.c
+utils_kconfig_gettext_CPPFLAGS = \
+       $(AM_CPPFLAGS) \
+       -I$(top_srcdir)/libs/parser
+utils_kconfig_gettext_CFLAGS = \
+       $(AM_CFLAGS) \
+       $(kf_CFLAGS)
+utils_kconfig_gettext_LDADD = \
+       $(top_builddir)/libs/parser/libkconfig-parser.la \
+       $(intl_LIBS)
+
+CLEAN_FILES = utils/kconfig-tweak
+EXTRA_DIST += \
+       utils/kconfig-tweak.in \
+       utils/kconfig-tweak.in.patch
+
+utils/kconfig-tweak: utils/kconfig-tweak.in
+       $(AM_V_GEN)$(SED) -e "s/@CONFIG_@/$(config_prefix)/g" \
+               $< >$@
+       @chmod +x $@
+
+endif # COND_utils
index 3a0575aece2345a667ea5285d2aa09a4df2673b1..13cfbdb88eb3c8e636962a3794d285721a59b77f 100644 (file)
@@ -20,7 +20,7 @@ AC_CONFIG_MACRO_DIR([scripts/.autostuff/m4])
 #----------------------------------------
 # Prepare automake
 
-AM_INIT_AUTOMAKE([foreign])
+AM_INIT_AUTOMAKE([foreign subdir-objects])
 
 # For releases, enable silent rules, unless the user explicitly
 # disables them.
@@ -511,7 +511,6 @@ AC_CONFIG_FILES([
     frontends/nconf/Makefile
     frontends/gconf/Makefile
     frontends/qconf/Makefile
-    utils/Makefile
     scripts/Makefile
 ])
 AC_OUTPUT
diff --git a/utils/Makefile.am b/utils/Makefile.am
deleted file mode 100644 (file)
index 6438110..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-bin_SCRIPTS = kconfig-tweak
-dist_bin_SCRIPTS = kconfig-diff kconfig-merge
-
-if COND_utils_gettext
-    MAYBE_utils_gettext = kconfig-gettext
-endif
-bin_PROGRAMS = $(MAYBE_utils_gettext)
-
-kconfig_gettext_SOURCES = gettext.c
-kconfig_gettext_CPPFLAGS = $(AM_CPPFLAGS)   \
-                           -I$(top_srcdir)/libs/parser
-kconfig_gettext_CFLAGS = $(AM_CFLAGS) $(kf_CFLAGS)
-kconfig_gettext_LDADD = $(top_builddir)/libs/parser/libkconfig-parser.la    \
-                        $(intl_LIBS)
-CLEANFILES = kconfig-tweak
-EXTRA_DIST = kconfig-tweak.in kconfig-tweak.in.patch
-
-kconfig-tweak: kconfig-tweak.in
-       $(AM_V_GEN)$(SED) -e "s/@CONFIG_@/$(config_prefix)/g"    \
-                         $< >$@
-       @chmod +x $@