Skip to content

Commit 7e82080

Browse files
committed
fixed 'clean' targets in makefiles
1 parent 93b03c4 commit 7e82080

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ clean:
1212
make -C tools clean
1313
make -C firmware clean
1414
make -C config clean
15-
rm hdmilight-preconfig.bit
16-
rm hdmilight.bit
15+
rm -f hdmilight-preconfig.bit
16+
rm -f hdmilight.bit

config/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CONFIGS = $(shell awk '{print $$2}' merge.conf)
1+
CONFIGS = $(shell awk '!/\.bin/{print $$2}' merge.conf)
22

33
all: merged.bin
44

@@ -10,9 +10,9 @@ $(CONFIGS):
1010
format.bin: format.conf
1111
../tools/format2bin.py $< > $@
1212

13-
merged.bin: merge.conf $(CONFIGS)
13+
merged.bin: merge.conf format.bin $(CONFIGS)
1414
../tools/mergebin.py merge.conf merged.bin
1515

1616
clean:
1717
@$(foreach CONFIG, $(CONFIGS), $(MAKE) -C $(CONFIG) clean;)
18-
rm *.bin
18+
rm -f *.bin

config/config_0/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ merged.bin: merge.conf $(BIN_FILES)
2222
../../tools/mergebin.py merge.conf merged.bin
2323

2424
clean:
25-
rm *.bin
25+
rm -f *.bin

config/config_1/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ merged.bin: merge.conf $(BIN_FILES)
2222
../../tools/mergebin.py merge.conf merged.bin
2323

2424
clean:
25-
rm *.bin
25+
rm -f *.bin

config/config_2/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ merged.bin: merge.conf $(BIN_FILES)
2222
../../tools/mergebin.py merge.conf merged.bin
2323

2424
clean:
25-
rm *.bin
25+
rm -f *.bin

tools/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ makemem: makemem.o
55
all: makemem
66

77
clean:
8-
rm makemem
8+
rm -f makemem

0 commit comments

Comments
 (0)