# HG changeset patch # User Ruslan Ermilov # Date 1313404259 0 # Node ID 39768562fc890c5bfb1b097c5f40a1740746c33f # Parent cc28e27da2753ac3cc52a94247eecdb1886fc51e - Use sed(1) instead of perl(1) for whitespace stripping. - Removed (from SVN) binary/books/ and binary/downloads/. - Delete targets whose recipes exit with a non-zero code. diff -r cc28e27da275 -r 39768562fc89 GNUmakefile --- a/GNUmakefile Mon Aug 15 10:16:53 2011 +0000 +++ b/GNUmakefile Mon Aug 15 10:30:59 2011 +0000 @@ -13,7 +13,7 @@ com.pault.StyleSheet \ -x com.pault.XX -y com.pault.XX \ $(1) xsls/dump.xsls \ - | perl -e 'undef $$/; $$_ = <>; s/(\n\n)+/\n/gs; print' > $(2) + | sed 's/ *$$//;/^ *$$/N;/\n *$$/D' > $(2) if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2) endef @@ -148,16 +148,20 @@ binary/books/nginx_in_practice.jpg binary/books/nginx_http_server_jp.jpg: sources/1106030720.jpg + mkdir -p $(dir $@) $(call JPEGNORM, $<, $@) binary/books/nginx_1_web_server.jpg: \ sources/Nginx\ 1\ Web\ Server\ Implementation\ Cookbook.jpg + mkdir -p $(dir $@) $(call JPEGNORM, "$<", $@) binary/books/nginx_http_server.jpg: sources/0868OS_MockupCover.jpg + mkdir -p $(dir $@) $(call JPEGNORM, $<, $@) binary/books/nginx_in_practice.jpg: sources/20807089-1_o.jpg + mkdir -p $(dir $@) $(call JPEGNORM, $<, $@) @@ -249,3 +253,5 @@ --directory $(TEMP) \ --exclude .svn \ $(SITE) + +.DELETE_ON_ERROR: