No need for "mkdir", option "-D" of "install" takes care about missing directories.
--- a/Makefile Fri Jan 08 13:12:40 2021 +0200
+++ b/Makefile Fri Jan 08 13:24:06 2021 +0200
@@ -117,11 +117,7 @@
files+=($$item)
fi
elif [[ -d $$item ]]; then
- for file in `find $$item`; do
- if [[ -d $$file ]]; then
- mkdir -p $(HOME)/$$file
- continue
- fi
+ for file in `find $$item -type f`; do
$(INSTALL_DATA) $$file $(HOME)/$$file
done
fi
@@ -144,11 +140,7 @@
$(INSTALL_DATA) $$item $(HOME)/$$item
fi
if [[ -d $$item ]]; then
- for file in `find $$item`; do
- if [[ -d $$file ]]; then
- mkdir -p $(HOME)/$$file
- continue
- fi
+ for file in `find $$item -type f`; do
if [[ ! -f $(HOME)/$$file ]]; then
$(INSTALL_DATA) $$file $(HOME)/$$file
fi