make/common/JavaCompilation.gmk

changeset 978
c5a60709f587
parent 974
46696858adab
parent 939
78abb27c27d9
child 1133
50aaf272884f
child 2519
908e7985b339
     1.1 --- a/make/common/JavaCompilation.gmk	Wed Jan 22 17:41:44 2014 -0800
     1.2 +++ b/make/common/JavaCompilation.gmk	Wed Feb 19 20:11:41 2014 -0800
     1.3 @@ -529,16 +529,16 @@
     1.4      # When building in batch, put headers in a temp dir to filter out those that actually
     1.5      # changed before copying them to the real header dir.
     1.6      ifneq (,$$($1_HEADERS))
     1.7 -      $1_HEADERS_ARG := -h $$($1_HEADERS).tmp
     1.8 +      $1_HEADERS_ARG := -h $$($1_HEADERS).$1.tmp
     1.9  
    1.10        $$($1_HEADERS)/_the.$1_headers: $$($1_BIN)/_the.$1_batch
    1.11  		$(MKDIR) -p $$(@D)
    1.12 -		for f in `ls $$($1_HEADERS).tmp`; do \
    1.13 -		  if [ ! -f "$$($1_HEADERS)/$$$$f" ] || [ "`$(DIFF) $$($1_HEADERS)/$$$$f $$($1_HEADERS).tmp/$$$$f`" != "" ]; then \
    1.14 -		    $(CP) -f $$($1_HEADERS).tmp/$$$$f $$($1_HEADERS)/$$$$f; \
    1.15 +		for f in `ls $$($1_HEADERS).$1.tmp`; do \
    1.16 +		  if [ ! -f "$$($1_HEADERS)/$$$$f" ] || [ "`$(DIFF) $$($1_HEADERS)/$$$$f $$($1_HEADERS).$1.tmp/$$$$f`" != "" ]; then \
    1.17 +		    $(CP) -f $$($1_HEADERS).$1.tmp/$$$$f $$($1_HEADERS)/$$$$f; \
    1.18  		  fi; \
    1.19  		done
    1.20 -		$(RM) -r $$($1_HEADERS).tmp
    1.21 +		$(RM) -r $$($1_HEADERS).$1.tmp
    1.22  		$(TOUCH) $$@
    1.23  
    1.24        $1 += $$($1_HEADERS)/_the.$1_headers

mercurial