+tmp/.targetinfo:
+ @mkdir -p tmp
+ @echo Collecting target info...
+ @-for dir in target/linux/*/; do \
+ [ -f "$${dir}/Makefile" ] || continue; \
+ ( cd "$$dir"; $(NO_TRACE_MAKE) --no-print-dir DUMP=1 3>/dev/null || echo "ERROR: please fix $${dir}Makefile" >&2 ); \
+ echo; \
+ done > $@
+
+tmpinfo-clean: FORCE
+ @-rm -rf tmp/.pkginfo tmp/.targetinfo
+
+tmp/.config.in: tmp/.pkginfo
+ @./scripts/gen_package_config.pl < $< > $@ || rm -f $@