Do not delete "dist" directory if it is not empty

This commit is contained in:
Héctor Molinero Fernández 2019-06-02 10:42:23 +02:00
parent 35e6ba5c7b
commit 8a96d44ed4

View File

@ -108,4 +108,4 @@ version:
.PHONY: clean
clean:
rm -f '$(IMAGE_TARBALL)'
if [ -d '$(DISTDIR)' ]; then rmdir '$(DISTDIR)'; fi
if [ -d '$(DISTDIR)' ] && [ -z "$$(ls -A '$(DISTDIR)')" ]; then rmdir '$(DISTDIR)'; fi