From c94da94b67ea008a86af578e1745af54230e95d8 Mon Sep 17 00:00:00 2001 From: Kyle McMartin Date: Wed, 22 Jul 2015 13:33:14 -0400 Subject: [PATCH] Makefile: use find instead of shell globs So Makefile works with /bin/sh that's not bash. Reported-by: Fredrik Rinnestam Signed-off-by: Kyle McMartin --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 58830bcd..23146671 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ all: install: mkdir -p $(DESTDIR)$(FIRMWAREDIR) cp -r * $(DESTDIR)$(FIRMWAREDIR) - rm -f $(DESTDIR)$(FIRMWAREDIR)/usbdux/*dux \ - $(DESTDIR)$(FIRMWAREDIR)/*/*.asm - rm $(DESTDIR)$(FIRMWAREDIR)/{WHENCE,LICENSE.*,LICENCE.*} + find $(DESTDIR)$(FIRMWAREDIR)/usbdux \( -name '*dux' -type f -or \ + -name '*.asm' \) -exec rm -- {} \; + find $(DESTDIR)$(FIRMWAREDIR) \( -name 'WHENCE' -or -name 'LICENSE.*' -or \ + -name 'LICENCE.*' \) -exec rm -- {} \;