Makefile: use find instead of shell globs
So Makefile works with /bin/sh that's not bash. Reported-by: Fredrik Rinnestam <fredrik@crux.nu> Signed-off-by: Kyle McMartin <kyle@kernel.org>
This commit is contained in:
parent
07679208aa
commit
c94da94b67
7
Makefile
7
Makefile
|
@ -8,6 +8,7 @@ all:
|
||||||
install:
|
install:
|
||||||
mkdir -p $(DESTDIR)$(FIRMWAREDIR)
|
mkdir -p $(DESTDIR)$(FIRMWAREDIR)
|
||||||
cp -r * $(DESTDIR)$(FIRMWAREDIR)
|
cp -r * $(DESTDIR)$(FIRMWAREDIR)
|
||||||
rm -f $(DESTDIR)$(FIRMWAREDIR)/usbdux/*dux \
|
find $(DESTDIR)$(FIRMWAREDIR)/usbdux \( -name '*dux' -type f -or \
|
||||||
$(DESTDIR)$(FIRMWAREDIR)/*/*.asm
|
-name '*.asm' \) -exec rm -- {} \;
|
||||||
rm $(DESTDIR)$(FIRMWAREDIR)/{WHENCE,LICENSE.*,LICENCE.*}
|
find $(DESTDIR)$(FIRMWAREDIR) \( -name 'WHENCE' -or -name 'LICENSE.*' -or \
|
||||||
|
-name 'LICENCE.*' \) -exec rm -- {} \;
|
||||||
|
|
Loading…
Reference in New Issue