summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2018-05-26 15:16:59 -0500
committerWilliam Hubbs <williamh@gentoo.org>2018-05-26 15:16:59 -0500
commitd56d1e147b23e972036fa9f6727bb2a675154435 (patch)
tree1deff5d85dcc778f7b19152c97065f2690f61c2c /Makefile
parentmakefile: ignore touch failures for .keep files (diff)
downloadbaselayout-d56d1e147b23e972036fa9f6727bb2a675154435.tar.gz
baselayout-d56d1e147b23e972036fa9f6727bb2a675154435.tar.bz2
baselayout-d56d1e147b23e972036fa9f6727bb2a675154435.zip
Makefile: do not touch .keep file if it already exists
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
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