linux-firmware/Makefile
Kyle McMartin c94da94b67 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>
2015-07-22 13:33:14 -04:00

14 lines
435 B
Makefile

# This file implements the GNOME Build API:
# http://people.gnome.org/~walters/docs/build-api.txt
FIRMWAREDIR = /lib/firmware
all:
install:
mkdir -p $(DESTDIR)$(FIRMWAREDIR)
cp -r * $(DESTDIR)$(FIRMWAREDIR)
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 -- {} \;