build: make clean

This commit is contained in:
Ivan Dyachkov 2022-09-02 13:41:54 +02:00
parent cffdcb4284
commit a7128dc997
1 changed files with 1 additions and 1 deletions

View File

@ -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; \