summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-09 14:07:35 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-09 14:07:35 (EDT)
commit763a15f4cbd11d4be4eb52da62533cb72d691a12 (patch)
tree64cef588286e6b071b9eb0313196ba105224cdae /Makefile.in
parent06c0c9b068bbc94eb82dc317ffc811d1c58d3e38 (diff)
parenteb7ec4e4478bcd1879cafa71917edb5f9e1f3808 (diff)
Merge branch 'feature/provide-archtab'.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in35
1 files changed, 31 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in
index 3c9f2f7..a83098f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -32,12 +32,13 @@ datadir = @datadir@
mandir = @mandir@
man1dir = @man1dir@
localedir = @localedir@
+pkgdatadir = @pkgdatadir@
+archtabdir = @archtabdir@
libopkbuild_1 = @libopkbuild_1@
DESTDIR = /
sh = @sh@
-archtab = @archtab@
pkglibbuildsystemdir = $(pkglibdir)/buildsystem
@@ -46,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 = \
@@ -67,13 +70,16 @@ 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.
script = \
s&@@PACKAGE_NAME@@&$(package_name)&;\
s&@@PACKAGE_VERSION@@&$(package_version)&;\
@@ -81,6 +87,8 @@ script = \
s&@@PKGLIBDIR@@&$(pkglibdir)&;\
s&@@LIBOPKHELPER@@&$(libopkhelper)&;\
s&@@LOCALEDIR@@&$(localedir)&;\
+ s&@@ARCHTABDIR@@&$(archtabdir)&;\
+ s&@@ARCHTAB@@&$(archtabdir)&;\
s&@@SH@@&$(sh)&;
.SUFFIXES:
@@ -161,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:
@@ -174,6 +182,15 @@ 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|^[^/]*/||')"; \
+ mkdir -p "$(DESTDIR)/$(archtabdir)/$${ff%/?*}"; \
+ cp "$(srcdir)/$${f}" "$(DESTDIR)/$(archtabdir)/$${ff}"; \
+ chmod 644 "$(DESTDIR)/$(archtabdir)/$${ff}"; \
+ done
uninstall_cmds = \
set -e; \
@@ -193,7 +210,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:
@@ -202,6 +219,16 @@ 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}"; \
+ rmdir "$(DESTDIR)/$(archtabdir)/$${ff%/?*}" 2>/dev/null || \
+ true; \
+ done
+ @rmdir '$(DESTDIR)/$(archtabdir)'
+ @rmdir '$(DESTDIR)/$(pkgdatadir)'
$(distdir):
@mkdir -p '$(distdir)'