diff options
| author | Clayton Craft <clayton@craftyguy.net> | 2022-10-23 21:31:23 -0700 |
|---|---|---|
| committer | Clayton Craft <clayton@craftyguy.net> | 2022-10-24 12:12:16 -0700 |
| commit | 78df0ff393345a1d8157d34febe030315102aa61 (patch) | |
| tree | 502cf63436ac5b2175b4857433a24a5439adca47 | |
| parent | b13c301b584818c1d6e98f0a17001b6ec8f4e05d (diff) | |
makefile: ignore errors during clean
The file(s) being removed may not exist, but make shouldn't fail because
of it:
$ make clean
rm ./firmware/*.uf2
rm: cannot remove './firmware/*.uf2': No such file or directory
make: *** [Makefile:10: clean] Error 1
$ echo $?
2
this also removes leading ./ from path in clean, and assumes that `make
clean` is being run from the top level repo dir
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7,7 +7,7 @@ all: setup build build: firmware/$$(TIMESTAMP)-left.uf2 firmware/$$(TIMESTAMP)-right.uf2 clean: - rm ./firmware/*.uf2 + rm -f firmware/*.uf2 firmware/%-left.uf2 firmware/%-right.uf2: config/adv360.keymap docker run --rm -it --name zmk \ |
