make/common/ZipArchive.gmk
changeset 42136 f872c8278074
parent 41658 14de1ab85d25
child 47253 92fd0e04e0e1
equal deleted inserted replaced
42135:484c28d7fd1b 42136:f872c8278074
   105   # If zip has nothing to do, it returns 12 and would fail the build. Check for 12
   105   # If zip has nothing to do, it returns 12 and would fail the build. Check for 12
   106   # and only fail if it's not.
   106   # and only fail if it's not.
   107   $$($1_ZIP) : $$($1_ALL_SRCS) $$($1_EXTRA_DEPS)
   107   $$($1_ZIP) : $$($1_ALL_SRCS) $$($1_EXTRA_DEPS)
   108 	$(MKDIR) -p $$(@D)
   108 	$(MKDIR) -p $$(@D)
   109 	$(ECHO) Updating $$($1_NAME)
   109 	$(ECHO) Updating $$($1_NAME)
   110 	$$(foreach i,$$($1_SRC),(cd $$i && $(ZIP) -qru $$($1_ZIP_OPTIONS) $$@ . $$($1_ZIP_INCLUDES) \
   110 	$$(foreach i,$$($1_SRC),(cd $$i && $(ZIPEXE) -qru $$($1_ZIP_OPTIONS) $$@ . $$($1_ZIP_INCLUDES) \
   111 	    $$($1_ZIP_EXCLUDES) -x \*_the.\* \
   111 	    $$($1_ZIP_EXCLUDES) -x \*_the.\* \
   112 	    $$(addprefix -x$(SPACE), $$(patsubst $$i/%,%, $$($1_EXCLUDE_FILES))) \
   112 	    $$(addprefix -x$(SPACE), $$(patsubst $$i/%,%, $$($1_EXCLUDE_FILES))) \
   113 	    || test "$$$$?" = "12" )$$(NEWLINE)) true
   113 	    || test "$$$$?" = "12" )$$(NEWLINE)) true
   114 	$(TOUCH) $$@
   114 	$(TOUCH) $$@
   115 
   115