diff options
-rw-r--r-- | Makefile.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index 76f28ef..a83098f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -187,6 +187,7 @@ install-archtab: @set -e; for f in $(archtab); do \ printf ' INSTALL %s\n' "$${f}"; \ ff="$$(printf '%s' "$${f}" | sed 's|^[^/]*/||')"; \ + mkdir -p "$(DESTDIR)/$(archtabdir)/$${ff%/?*}"; \ cp "$(srcdir)/$${f}" "$(DESTDIR)/$(archtabdir)/$${ff}"; \ chmod 644 "$(DESTDIR)/$(archtabdir)/$${ff}"; \ done @@ -223,6 +224,8 @@ uninstall-archtab: printf ' RM %s\n' "$${f}"; \ ff="$$(printf '%s' "$${f}" | sed 's|^[^/]*/||')"; \ rm -f "$(DESTDIR)/$(archtabdir)/$${ff}"; \ + rmdir "$(DESTDIR)/$(archtabdir)/$${ff%/?*}" 2>/dev/null || \ + true; \ done @rmdir '$(DESTDIR)/$(archtabdir)' @rmdir '$(DESTDIR)/$(pkgdatadir)' |