Skip to content

Commit 1b1a834

Browse files
committed
Makefile: fix clean process on POSIX shells
Shell brace expansion (*.{c,h} => *.c *.h) is a Bashism, so the `make clean` step does not work properly on distributions which don’t have `bash` as `/bin/sh`. Fixed by manually expanding the pattern.
1 parent b23d07c commit 1b1a834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ src/%.elf:
3838
avr-gcc $(CFLAGS) -mmcu=atmega328p -DF_CPU=16000000 -ffunction-sections -fdata-sections -flto -fuse-linker-plugin -o $@ -c $<
3939

4040
clean:
41-
rm -f src/{*/*,*}.{o,elf,eep} *.hex
41+
rm -f *.hex src/*.o src/*.elf src/*.eep src/*/*.o src/*/*.elf src/*/*.eep
4242
make -C src/usb-iface clean
4343

4444
lufa/.git: .gitmodules

0 commit comments

Comments
 (0)