@ -44,36 +44,11 @@ ifeq ($(FORCE),)
world: tmp/.prereq-packages tmp/.prereq-target
e n d i f
d e f i n e s t a m p
t m p / i n f o / . s t a m p - $( 1) - $( shell ls $ ( 2) /*/Makefile $ ( 5) | ( md 5sum || md 5) 2>/dev /null | cut -d ' ' -f 1)
e n d e f
STAMP_pkginfo = $( call stamp,pkginfo,package)
STAMP_targetinfo = $( call stamp,targetinfo,target/linux)
d e f i n e s c a n _ i n f o
$(STAMP_$(1)) :
@mkdir -p tmp/info
@rm -f tmp/info/.stamp-$( 1) *
@touch $$ @
$( foreach FILE ,$ ( shell ls $ ( 2) /*/Makefile $ ( 5) ) ,
tmp/.$(1) : $( FILE )
$(FILE) :
)
i f n e q ( $( 5) , )
tmp/.$(1) : $( shell ls $ ( 5) )
e n d i f
tmp/.$(1) : $( STAMP_ $ ( 1) ) $( 4)
@echo -n Collecting $( 3) info...
@$( NO_TRACE_MAKE) -s -f include/scan.mk SCAN_TARGET = " $( 1) " SCAN_DIR = " $( 2) " SCAN_NAME = " $( 3) " SCAN_DEPS = " $( 4) " SCAN_EXTRA = " $( 5) "
e n d e f
tmp/.pkginfo : FORCE
@$( NO_TRACE_MAKE) -s -f include/scan.mk SCAN_TARGET = "pkginfo" SCAN_DIR = "package" SCAN_NAME = "package" SCAN_DEPS = " $( shell ls include/package*.mk) include/kernel.mk " SCAN_EXTRA = ""
$( eval $ ( call scan_info ,pkginfo ,package ,package ,include /package .mk ) )
$( eval $ ( call scan_info ,targetinfo ,target /linux ,target ,include /kernel -build .mk include /kernel -version .mk ,target /linux /*/profiles /*.mk ) )
tmp/.targetinfo : FORCE
@$( NO_TRACE_MAKE) -s -f include/scan.mk SCAN_TARGET = "targetinfo" SCAN_DIR = "target/linux" SCAN_NAME = "target" SCAN_DEPS = " $( shell ls include/kernel*.mk) " SCAN_EXTRA = ""
tmpinfo-clean : FORCE
@-rm -rf tmp/.pkginfo tmp/.targetinfo