diff options
author | P. J. McDermott <pjm@nac.net> | 2013-05-09 13:43:49 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-05-09 13:43:49 (EDT) |
commit | b8f4d83a0f3edb57960f7b61cf30adf736ff85ba (patch) | |
tree | f162e6fe085597de69babd89ec40b48b8ddbb5f1 /Makefile.in | |
parent | 97e71d414d6b0a9b255707f89a7c91d4cf821b8c (diff) |
Makefile.in: (Un)install and distribute archtab.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in index 9c9db68..76f28ef 100644 --- a/Makefile.in +++ b/Makefile.in @@ -47,12 +47,14 @@ include $(srcdir)/lib/local.mk include $(srcdir)/lib/buildsystem/local.mk include $(srcdir)/man/local.mk include $(srcdir)/locale/local.mk +include $(srcdir)/archtab/local.mk bin = $(bin_srcs:.sh=) pkglib = $(pkglib_srcs:.sh=.sm) pkglibbuildsystem = $(pkglibbuildsystem_srcs:.sh=.sm) man1 = $(man1_srcs:.1in=.1) locale = $(locale_srcs:.sh=.ms) +archtab = $(archtab_srcs) distdir = $(package_name)-$(package_version) distfiles = \ @@ -68,11 +70,13 @@ distfiles = \ lib/local.mk \ man/local.mk \ locale/local.mk \ + archtab/local.mk \ $(bin_srcs) \ $(pkglib_srcs) \ $(pkglibbuildsystem_srcs) \ $(man1_srcs) \ - $(locale_srcs) + $(locale_srcs) \ + $(archtab_srcs) # FIXME: libopkhelper is deprecated. Migrate code and remove this variable. # FIXME: archtab is deprecated. Migrate code and remove this variable. @@ -165,7 +169,7 @@ install-pkglib: install-pkglibbuildsystem: @files='$(pkglibbuildsystem)'; dir='$(pkglibbuildsystemdir)'; \ mode='644'; $(install_cmds) -install-data: all-data install-man1 install-locale +install-data: all-data install-man1 install-locale install-archtab install-man1: @files='$(man1)'; dir='$(man1dir)'; mode='644'; $(install_cmds) install-locale: @@ -178,6 +182,14 @@ install-locale: cp "$${f}" "$(DESTDIR)/$(localedir)/$${ff}"; \ chmod 644 "$(DESTDIR)/$(localedir)/$${ff}"; \ done +install-archtab: + @mkdir -p '$(DESTDIR)/$(archtabdir)' + @set -e; for f in $(archtab); do \ + printf ' INSTALL %s\n' "$${f}"; \ + ff="$$(printf '%s' "$${f}" | sed 's|^[^/]*/||')"; \ + cp "$(srcdir)/$${f}" "$(DESTDIR)/$(archtabdir)/$${ff}"; \ + chmod 644 "$(DESTDIR)/$(archtabdir)/$${ff}"; \ + done uninstall_cmds = \ set -e; \ @@ -197,7 +209,7 @@ uninstall-pkglibbuildsystem: @files='$(pkglibbuildsystem)'; dir='$(pkglibbuildsystemdir)'; \ $(uninstall_cmds) @rmdir '$(DESTDIR)/$(pkglibbuildsystemdir)' -uninstall-data: uninstall-man1 uninstall-locale +uninstall-data: uninstall-man1 uninstall-locale uninstall-archtab uninstall-man1: @files='$(man1)'; dir='$(man1dir)'; $(uninstall_cmds) uninstall-locale: @@ -206,6 +218,14 @@ uninstall-locale: ff="$$(printf '%s' "$${f}" | sed 's|^[^/]*/||')"; \ rm -f "$(DESTDIR)/$(localedir)/$${ff}"; \ done +uninstall-archtab: + @set -e; for f in $(archtab); do \ + printf ' RM %s\n' "$${f}"; \ + ff="$$(printf '%s' "$${f}" | sed 's|^[^/]*/||')"; \ + rm -f "$(DESTDIR)/$(archtabdir)/$${ff}"; \ + done + @rmdir '$(DESTDIR)/$(archtabdir)' + @rmdir '$(DESTDIR)/$(pkgdatadir)' $(distdir): @mkdir -p '$(distdir)' |