diff options
author | Kyle McMartin <kyle@kernel.org> | 2015-07-22 13:33:14 -0400 |
---|---|---|
committer | Kyle McMartin <kyle@kernel.org> | 2015-07-22 13:33:14 -0400 |
commit | c94da94b67ea008a86af578e1745af54230e95d8 (patch) | |
tree | 50f1c0b4b42d129cbd1b1c8ace6b773809db3de3 | |
parent | 07679208aad40ceb0b6730ecd785e851c491f262 (diff) |
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>
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 -- {} \; |