-package/%:
- @$(TRACE) $@
- $(MAKE) -C package $(patsubst package/%,%,$@)
-
-target/%:
- @$(TRACE) $@
- $(MAKE) -C target $(patsubst target/%,%,$@)
-
-toolchain/%:
- @$(TRACE) $@
- $(MAKE) -C toolchain $(patsubst toolchain/%,%,$@)
-
-#############################################################
-#
-# Cleanup and misc junk
-#
-#############################################################
-root_clean:
- @$(TRACE) Cleaning...
- rm -rf $(BUILD_DIR)/linux-*/root $(BUILD_DIR)/root
-
-target_clean: root_clean
- rm -f $(STAMP_DIR)/.*-compile
- rm -f $(STAMP_DIR)/.*-install
- rm -rf $(BIN_DIR)
-
-clean: dirclean
-
-dirclean:
- @$(TRACE) Cleaning...
- @$(MAKE) -C $(CONFIG) clean
- rm -rf $(BUILD_DIR)
-
-distclean: dirclean
- rm -rf $(STAMP_DIR) $(DL_DIR) $(TOOL_BUILD_DIR) $(STAGING_DIR)
- rm -f .config* .tmpconfig.h
-
-else # ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y)
-
-all: menuconfig
-
-# configuration
-# ---------------------------------------------------------------------------
-
-$(CONFIG)/conf:
- $(MAKE) -C $(CONFIG) conf
- -@if [ ! -f .config ] ; then \
- cp $(CONFIG_DEFCONFIG) .config; \
- fi
-$(CONFIG)/mconf:
- $(MAKE) -C $(CONFIG)
- -@if [ ! -f .config ] ; then \
- cp $(CONFIG_DEFCONFIG) .config; \
- fi
-
-menuconfig: $(CONFIG)/mconf
- -touch .config
- -cp .config .config.test
- @$(CONFIG)/mconf $(CONFIG_CONFIG_IN)
- -./scripts/configtest.pl
-
-config: $(CONFIG)/conf
- -touch .config
- -cp .config .config.test
- @$(CONFIG)/conf $(CONFIG_CONFIG_IN)
- -./scripts/configtest.pl
+.pkginfo: FORCE
+ifeq ($(shell ./scripts/timestamp.pl -p .pkginfo package),package)
+ @echo Collecting package info...
+ @-for makefile in package/*/Makefile; do \
+ echo Source-Makefile: $$makefile; \
+ $(MAKE) DUMP=1 -f $$makefile 2>&- || true; \
+ done > $@
+endif