diff options
author | P. J. McDermott <pjm@nac.net> | 2013-05-09 13:47:44 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-05-09 13:47:44 (EDT) |
commit | d9b459413a96e9663d0a3a35575be5e6c328ef91 (patch) | |
tree | bec4aa77d8d0c3f52b90dcdc08ac96600d525033 | |
parent | b8f4d83a0f3edb57960f7b61cf30adf736ff85ba (diff) |
Makefile.in: Mkdir/rmdir archtab buildsystem dirs.
-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)' |