From: Willy Tarreau Date: Wed, 21 Apr 2021 15:17:16 +0000 (+0200) Subject: BUILD: makefile: fix the "make clean" target on strict bourne shells X-Git-Tag: v2.4-dev17~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af6ae6395fef76b9b01123d33f0017b946e03c74;p=thirdparty%2Fhaproxy.git BUILD: makefile: fix the "make clean" target on strict bourne shells As reported by @axinojolais in issue #1217, some older bourne shells do not expand on braces so some files were not cleaned since the recent splitting of the contrib/ subdir. Let's fix that by explicitly listing the patterns to be cleared (which are in much smaller quantity now that contrib was removed), and for grouping them with their respective dirs. At some point, some recursive makefiles would probably help there. --- diff --git a/Makefile b/Makefile index d38d6c60a6..c39fac6a94 100644 --- a/Makefile +++ b/Makefile @@ -1008,13 +1008,14 @@ clean: $(Q)for dir in . src dev/* admin/* addons/* include/* doc; do rm -f $$dir/*~ $$dir/*.rej $$dir/core; done $(Q)rm -f haproxy-$(VERSION).tar.gz haproxy-$(VERSION)$(SUBVERS)$(EXTRAVERSION).tar.gz $(Q)rm -f haproxy-$(VERSION) haproxy-$(VERSION)$(SUBVERS)$(EXTRAVERSION) nohup.out gmon.out - $(Q)rm -f {admin,dev}/*/*.[oas] {admin,dev}/*/*/*.[oas] {admin,dev}/*/*/*/*.[oas] $(Q)rm -f addons/promex/*.[oas] $(Q)rm -f addons/51degrees/*.[oas] addons/51degrees/dummy/*.[oas] addons/51degrees/dummy/*/*.[oas] $(Q)rm -f addons/deviceatlas/*.[oas] addons/deviceatlas/dummy/*.[oas] $(Q)rm -f addons/ot/src/*.[oas] $(Q)rm -f addons/wurfl/*.[oas] addons/wurfl/dummy/*.[oas] + $(Q)rm -f admin/*/*.[oas] admin/*/*/*.[oas] $(Q)rm -f admin/iprange/iprange admin/iprange/ip6range admin/halog/halog + $(Q)rm -f dev/*/*.[oas] $(Q)rm -f dev/flags/flags dev/poll/poll dev/tcploop/tcploop $(Q)rm -f dev/hpack/decode dev/hpack/gen-enc dev/hpack/gen-rht