1 include $(TOPDIR
)/include/verbose.mk
6 SCAN_DEPS ?
= include/package.mk
10 printf
"\033[M\r$(1)" >&2;
18 SCAN
= $(patsubst $(SCAN_DIR
)/%/Makefile
,%,$(shell ls
$(SCAN_DIR
)/*/Makefile
))
20 @
($(call progress
,Collecting
$(SCAN_NAME
) info: merging...
))
21 for file in
$(SCAN
); do \
22 cat tmp
/info/.
$(SCAN_TARGET
)-$$file; \
24 @
($(call progress
,Collecting
$(SCAN_NAME
) info: done
))
27 ifneq ($(SCAN_EXTRA
),)
28 SCAN_STAMP
=tmp
/info/.scan-
$(SCAN_TARGET
)-$(shell ls
$(SCAN_EXTRA
) 2>/dev
/null |
(md5sum || md5
) 2>/dev
/null | cut
-d
' ' -f1
)
30 rm -f tmp
/info/.scan-
$(SCAN_TARGET
)-*
31 mkdir
-p
$(shell dirname
$@
)
36 $(foreach FILE
,$(SCAN
),
37 tmp
/.
$(SCAN_TARGET
): tmp
/info/.
$(SCAN_TARGET
)-$(FILE
) FORCE
38 tmp
/info/.
$(SCAN_TARGET
)-$(FILE
): $(SCAN_DEPS
) $(SCAN_DIR
)/$(FILE
)/Makefile
$(SCAN_STAMP
)
40 $$(call progress
,Collecting
$(SCAN_NAME
) info: $(SCAN_DIR
)/$(FILE
)) \
41 echo Source-Makefile
: $(SCAN_DIR
)/$(FILE
)/Makefile
; \
42 $(NO_TRACE_MAKE
) --no-print-dir DUMP
=1 -C
$(SCAN_DIR
)/$(FILE
) 3>/dev
/null || echo
"ERROR: please fix $(SCAN_DIR)/$(FILE)/Makefile" >&2; \
48 $(eval
$(call scanfiles
))
This page took 0.05411 seconds and 5 git commands to generate.