From d56d1e147b23e972036fa9f6727bb2a675154435 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 26 May 2018 15:16:59 -0500 Subject: Makefile: do not touch .keep file if it already exists --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 5bfcad80..63a2ec4f 100644 --- a/Makefile +++ b/Makefile @@ -65,6 +65,7 @@ install: layout-dirs: # Create base filesytem layout for x in $(KEEP_DIRS) ; do \ + test -e $(DESTDIR)$$x/.keep && continue ; \ $(INSTALL_DIR) $(DESTDIR)$$x || exit $$? ; \ touch $(DESTDIR)$$x/.keep || echo "ignoring touch failure; mounted fs?" ; \ done -- cgit v1.2.3-65-gdbad