Commit c94da94b authored by Kyle McMartin's avatar Kyle McMartin
Browse files

Makefile: use find instead of shell globs



So Makefile works with /bin/sh that's not bash.
Reported-by: default avatarFredrik Rinnestam <fredrik@crux.nu>
Signed-off-by: default avatarKyle McMartin <kyle@kernel.org>
parent 07679208
...@@ -8,6 +8,7 @@ all: ...@@ -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 -- {} \;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment