moved include/bbconfigopts.h from miscutils to to top Makefile before generate .depen...
author"Vladimir N. Oleynik" <dzo@simtreas.ru>
Wed, 21 Sep 2005 07:49:34 +0000 (07:49 -0000)
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>
Wed, 21 Sep 2005 07:49:34 +0000 (07:49 -0000)
Makefile
miscutils/Makefile.in

index ac6095143a682fe2104e7f8b4ac638c427f4b2e6..b3f998200d240a9c38706a563b00ddfe33a1f507 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -184,7 +184,16 @@ scripts/bb_mkdep: $(top_srcdir)/scripts/bb_mkdep.c
        $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
 
 depend dep: .depend
-.depend: scripts/bb_mkdep include/config.h include/bb_config.h
+
+DEP_INCLUDES=include/config.h include/bb_config.h
+ifeq ($(strip $(CONFIG_BBCONFIG)),y)
+DEP_INCLUDES += include/bbconfigopts.h
+
+include/bbconfigopts.h: .config
+       scripts/config/mkconfigs > $@
+endif
+
+.depend: scripts/bb_mkdep $(DEP_INCLUDES)
        @rm -f .depend
        @mkdir -p include/config
        scripts/bb_mkdep -c include/config.h -c include/bb_config.h > $@
index 13d20f4a72a1878ec23ec92179419bd523f15421..2db511176fcfadb6d6eab812f9e5b921eb8ea384 100644 (file)
@@ -55,9 +55,6 @@ endif
 $(MISCUTILS_DIR)$(MISCUTILS_AR): $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))
        $(AR) $(ARFLAGS) $@ $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))
 
-$(top_builddir)/include/bbconfigopts.h: $(top_builddir)/.config
-       $(top_builddir)/scripts/config/mkconfigs > $(top_builddir)/include/bbconfigopts.h
-
 $(MISCUTILS_DIR)%.o: $(srcdir)/%.c
        $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<