-target_compile:
- $(MAKE) -C target compile
-
-target_install:
- $(MAKE) -C target install
-
-$(DL_DIR):
- @mkdir -p $(DL_DIR)
-
-$(BUILD_DIR):
- @mkdir -p $(BUILD_DIR)
-
-source: $(TARGETS_SOURCE)
-
-
-package/%:
- $(MAKE) -C package $(patsubst package/%,%,$@)
-
-target/%:
- $(MAKE) -C target $(patsubst target/%,%,$@)
-
-toolchain/%:
- $(MAKE) -C toolchain $(patsubst toolchain/%,%,$@)
-
-#############################################################
-#
-# Cleanup and misc junk
-#
-#############################################################
-image_clean:
- rm -f $(STAMP_DIR)/.*-compile
- rm -f $(STAMP_DIR)/.*-install
- rm -rf $(BIN_DIR)
-
-target_clean: image_clean
- rm -rf $(TARGET_DIR)
- rm -rf $(BUILD_DIR)/linux-*/root
-
-clean: target_clean
- @$(MAKE) -C $(CONFIG) clean
-
-dirclean: clean
- rm -rf $(BUILD_DIR)
-
-distclean: clean
- rm -rf $(STAMP_DIR) $(DL_DIR) $(BUILD_DIR) $(TOOL_BUILD_DIR) $(STAGING_DIR)
- rm -f .config* .tmpconfig.h
-
-sourceball: distclean
- set -e; \
- cd ..; \
- rm -f buildroot.tar.bz2; \
- tar -cvf buildroot.tar buildroot; \
- bzip2 -9 buildroot.tar; \
-
-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