525 $1 := $$($1_ALL_COPY_TARGETS) $$($1_ALL_COPY_CLEAN_TARGETS) $$($1_BIN)/_the.$1_batch |
525 $1 := $$($1_ALL_COPY_TARGETS) $$($1_ALL_COPY_CLEAN_TARGETS) $$($1_BIN)/_the.$1_batch |
526 |
526 |
527 # When building in batch, put headers in a temp dir to filter out those that actually |
527 # When building in batch, put headers in a temp dir to filter out those that actually |
528 # changed before copying them to the real header dir. |
528 # changed before copying them to the real header dir. |
529 ifneq (,$$($1_HEADERS)) |
529 ifneq (,$$($1_HEADERS)) |
530 $1_HEADERS_ARG := -h $$($1_HEADERS).tmp |
530 $1_HEADERS_ARG := -h $$($1_HEADERS).$1.tmp |
531 |
531 |
532 $$($1_HEADERS)/_the.$1_headers: $$($1_BIN)/_the.$1_batch |
532 $$($1_HEADERS)/_the.$1_headers: $$($1_BIN)/_the.$1_batch |
533 $(MKDIR) -p $$(@D) |
533 $(MKDIR) -p $$(@D) |
534 for f in `ls $$($1_HEADERS).tmp`; do \ |
534 for f in `ls $$($1_HEADERS).$1.tmp`; do \ |
535 if [ ! -f "$$($1_HEADERS)/$$$$f" ] || [ "`$(DIFF) $$($1_HEADERS)/$$$$f $$($1_HEADERS).tmp/$$$$f`" != "" ]; then \ |
535 if [ ! -f "$$($1_HEADERS)/$$$$f" ] || [ "`$(DIFF) $$($1_HEADERS)/$$$$f $$($1_HEADERS).$1.tmp/$$$$f`" != "" ]; then \ |
536 $(CP) -f $$($1_HEADERS).tmp/$$$$f $$($1_HEADERS)/$$$$f; \ |
536 $(CP) -f $$($1_HEADERS).$1.tmp/$$$$f $$($1_HEADERS)/$$$$f; \ |
537 fi; \ |
537 fi; \ |
538 done |
538 done |
539 $(RM) -r $$($1_HEADERS).tmp |
539 $(RM) -r $$($1_HEADERS).$1.tmp |
540 $(TOUCH) $$@ |
540 $(TOUCH) $$@ |
541 |
541 |
542 $1 += $$($1_HEADERS)/_the.$1_headers |
542 $1 += $$($1_HEADERS)/_the.$1_headers |
543 endif |
543 endif |
544 |
544 |