netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [iptables PATCH] Makefile: Replace brace expansion
@ 2023-01-10 16:35 Phil Sutter
  2023-01-10 16:53 ` Phil Sutter
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Sutter @ 2023-01-10 16:35 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Pablo Neira Ayuso

According to bash(1), it is not supported by "historical versions of
sh". Dash seems to be such a historical version.

Reported-by: Pablo Neira Ayuso <pablo@netfilter.org>
Fixes: 3822a992bc277 ("Makefile: Fix for 'make distcheck'")
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 extensions/GNUmakefile.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in
index c37e4619f91f9..e289adf06547f 100644
--- a/extensions/GNUmakefile.in
+++ b/extensions/GNUmakefile.in
@@ -106,7 +106,8 @@ install: ${targets_install} ${symlinks_install}
 	}
 
 clean:
-	rm -f *.o *.oo *.so *.a {matches,targets}.man initext.c initext4.c initext6.c initextb.c initexta.c;
+	rm -f *.o *.oo *.so *.a matches.man targets.man
+	rm -f initext.c initext4.c initext6.c initextb.c initexta.c
 	rm -f .*.d .*.dd;
 
 distclean: clean
@@ -243,7 +244,7 @@ dist_sources = $(filter-out ${dist_initext_src},$(wildcard $(srcdir)/*.[ch]))
 	mkdir -p $(distdir)
 	cp -p ${dist_sources} $(distdir)/
 	cp -p $(wildcard ${srcdir}/lib*.man) $(distdir)/
-	cp -p $(srcdir)/*.{t,txlate} $(distdir)/
+	cp -p $(wildcard ${srcdir}/*.t ${srcdir}/*.txlate) $(distdir)/
 
 dvi:
 check: all
-- 
2.38.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [iptables PATCH] Makefile: Replace brace expansion
  2023-01-10 16:35 [iptables PATCH] Makefile: Replace brace expansion Phil Sutter
@ 2023-01-10 16:53 ` Phil Sutter
  0 siblings, 0 replies; 2+ messages in thread
From: Phil Sutter @ 2023-01-10 16:53 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Pablo Neira Ayuso

On Tue, Jan 10, 2023 at 05:35:02PM +0100, Phil Sutter wrote:
> According to bash(1), it is not supported by "historical versions of
> sh". Dash seems to be such a historical version.
> 
> Reported-by: Pablo Neira Ayuso <pablo@netfilter.org>
> Fixes: 3822a992bc277 ("Makefile: Fix for 'make distcheck'")
> Signed-off-by: Phil Sutter <phil@nwl.cc>

Patch applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-10 16:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-10 16:35 [iptables PATCH] Makefile: Replace brace expansion Phil Sutter
2023-01-10 16:53 ` Phil Sutter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).