ソースを参照

Merge pull request #8883 from emqx/fix-clean-make-target

buid: fix make clean
Ivan Dyachkov 3 年 前
コミット
81234e1de7
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -132,7 +132,7 @@ $(REL_PROFILES:%=%): $(COMMON_DEPS)
 clean: $(PROFILES:%=clean-%)
 $(PROFILES:%=clean-%):
 	@if [ -d _build/$(@:clean-%=%) ]; then \
-		rm rebar.lock \
+		rm -f rebar.lock; \
 		rm -rf _build/$(@:clean-%=%)/rel; \
 		$(FIND) _build/$(@:clean-%=%) -name '*.beam' -o -name '*.so' -o -name '*.app' -o -name '*.appup' -o -name '*.o' -o -name '*.d' -type f | xargs rm -f; \
 		$(FIND) _build/$(@:clean-%=%) -type l -delete; \