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
#----------------------------------------
# Prepare automake
-AM_INIT_AUTOMAKE([foreign])
+AM_INIT_AUTOMAKE([foreign subdir-objects])
# For releases, enable silent rules, unless the user explicitly
# disables them.
frontends/nconf/Makefile
frontends/gconf/Makefile
frontends/qconf/Makefile
- utils/Makefile
scripts/Makefile
])
AC_OUTPUT
+++ /dev/null
-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 $@