summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.in26
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)'