Skip to contentSkip to conversation

Makefile: Replace brace expansion

PATCH In review Phil Sutter 1 participant 2 messages Jan 10, 2023 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 Makefile: Replace brace expansion

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

Fixes 3822a992bc277 ("Makefile: Fix for 'make distcheck'")
---
 extensions/GNUmakefile.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
extensions/GNUmakefile.in +3 -2
index c37e4619f91f9..e289adf06547f 100644
@@ -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
Signature · 1 line
2.38.0