summaryrefslogtreecommitdiffstats
path: root/man/Makefile.am
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:45:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:45:20 +0000
commit9a08cbfcc1ef900a04580f35afe2a4592d7d6030 (patch)
tree004cc7027bca2f2c0bcb5806527c8e0c48df2d6e /man/Makefile.am
parentInitial commit. (diff)
downloaddpkg-9a08cbfcc1ef900a04580f35afe2a4592d7d6030.tar.xz
dpkg-9a08cbfcc1ef900a04580f35afe2a4592d7d6030.zip
Adding upstream version 1.19.8.upstream/1.19.8upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--man/Makefile.am264
1 files changed, 264 insertions, 0 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
new file mode 100644
index 0000000..4b64747
--- /dev/null
+++ b/man/Makefile.am
@@ -0,0 +1,264 @@
+## Process this file with automake to produce Makefile.in
+
+man_MANS = \
+ deb-buildinfo.5 \
+ deb-changelog.5 \
+ deb-changes.5 \
+ deb-conffiles.5 \
+ deb-control.5 \
+ deb-src-control.5 \
+ deb-src-files.5 \
+ deb-src-rules.5 \
+ deb-version.7 \
+ deb-shlibs.5 \
+ deb-split.5 \
+ deb-substvars.5 \
+ deb-symbols.5 \
+ deb-postinst.5 \
+ deb-postrm.5 \
+ deb-preinst.5 \
+ deb-prerm.5 \
+ deb-triggers.5 \
+ deb-old.5 \
+ deb-origin.5 \
+ deb-override.5 \
+ deb-extra-override.5 \
+ deb.5 \
+ deb822.5 \
+ dpkg-architecture.1 \
+ dpkg-buildflags.1 \
+ dpkg-buildpackage.1 \
+ dpkg-checkbuilddeps.1 \
+ dpkg-deb.1 \
+ dpkg-distaddfile.1 \
+ dpkg-divert.1 \
+ dpkg-genbuildinfo.1 \
+ dpkg-genchanges.1 \
+ dpkg-gencontrol.1 \
+ dpkg-gensymbols.1 \
+ dpkg-maintscript-helper.1 \
+ dpkg-mergechangelogs.1 \
+ dpkg-name.1 \
+ dpkg-parsechangelog.1 \
+ dpkg-query.1 \
+ dpkg-scanpackages.1 \
+ dpkg-scansources.1 \
+ dpkg-shlibdeps.1 \
+ dpkg-source.1 \
+ dpkg-split.1 \
+ dpkg-statoverride.1 \
+ dpkg-trigger.1 \
+ dpkg-vendor.1 \
+ dpkg.1 \
+ dpkg.cfg.5 \
+ dsc.5 \
+ $(nil)
+
+if BUILD_DSELECT
+man_MANS += \
+ dselect.1 \
+ dselect.cfg.5
+endif
+
+if BUILD_START_STOP_DAEMON
+man_MANS += \
+ start-stop-daemon.8
+endif
+
+if BUILD_UPDATE_ALTERNATIVES
+man_MANS += \
+ update-alternatives.1
+endif
+
+CLEANFILES = $(man_MANS)
+
+EXTRA_DIST = \
+ deb-buildinfo.man \
+ deb-changelog.man \
+ deb-changes.man \
+ deb-conffiles.man \
+ deb-control.man \
+ deb-extra-override.man \
+ deb-old.man \
+ deb-origin.man \
+ deb-override.man \
+ deb-postinst.man \
+ deb-postrm.man \
+ deb-preinst.man \
+ deb-prerm.man \
+ deb-shlibs.man \
+ deb-split.man \
+ deb-src-control.man \
+ deb-src-files.man \
+ deb-src-rules.man \
+ deb-substvars.man \
+ deb-symbols.man \
+ deb-triggers.man \
+ deb-version.man \
+ deb.man \
+ deb822.man \
+ dpkg-architecture.man \
+ dpkg-buildflags.man \
+ dpkg-buildpackage.man \
+ dpkg-checkbuilddeps.man \
+ dpkg-deb.man \
+ dpkg-distaddfile.man \
+ dpkg-divert.man \
+ dpkg-genbuildinfo.man \
+ dpkg-genchanges.man \
+ dpkg-gencontrol.man \
+ dpkg-gensymbols.man \
+ dpkg-maintscript-helper.man \
+ dpkg-mergechangelogs.man \
+ dpkg-name.man \
+ dpkg-parsechangelog.man \
+ dpkg-query.man \
+ dpkg-scanpackages.man \
+ dpkg-scansources.man \
+ dpkg-shlibdeps.man \
+ dpkg-source.man \
+ dpkg-split.man \
+ dpkg-statoverride.man \
+ dpkg-trigger.man \
+ dpkg-vendor.man \
+ dpkg.man \
+ dpkg.cfg.man \
+ dsc.man \
+ dselect.man \
+ dselect.cfg.man \
+ start-stop-daemon.man \
+ update-alternatives.man \
+ utf8toman.sed \
+ po/ChangeLog.old \
+ po/po4a.cfg \
+ po/dpkg-man.pot
+
+
+# Extract the list of languages from the po4a config file.
+LINGUAS_DIST = `sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po/po4a.cfg`
+
+# If the user has not defined it let's use the default.
+LINGUAS ?= $(LINGUAS_DIST)
+
+
+PO4A_V = $(PO4A_V_@AM_V@)
+PO4A_V_ = $(PO4A_V_@AM_DEFAULT_V@)
+PO4A_V_0 = @echo " PO4A $@";
+
+PO4A_OPTS = --previous --srcdir $(srcdir) --destdir $(builddir) --no-backups \
+ --porefs noline,wrap --msgmerge-opt=--add-location=file \
+ --package-name dpkg-man --package-version $(PACKAGE_VERSION) \
+ --copyright-holder "$(PACKAGE_COPYRIGHT_HOLDER)" \
+ --msgid-bugs-address $(PACKAGE_BUGREPORT)
+
+all-local: all-local-@USE_PO4A@
+
+all-local-no:
+all-local-yes: gen-man
+
+# We use the man-once target to guarantee there is never an empty call in
+# gen-man, that starts recursing infinitely.
+.PHONY: gen-man man-once
+
+gen-man: man.stamp
+ for lang in $(LINGUAS); do \
+ files=""; \
+ for man in $(man_MANS); do \
+ trans="$${man%%.[0-9]}.man"; \
+ if [ -f $(builddir)/$$lang/$$trans ]; then \
+ files="$$files $(builddir)/$$lang/$$man"; \
+ elif [ -f $(srcdir)/$$lang/$$trans ]; then \
+ files="$$files $(srcdir)/$$lang/$$man"; \
+ fi; \
+ done; \
+ $(MAKE) mandir="$(mandir)/$$lang" man_MANS="" man-once $$files; \
+ done
+
+# FIXME: Use a stamp file until po4a supports them internally.
+man.stamp:
+ $(PO4A_V) $(PO4A) $(PO4A_OPTS) $(srcdir)/po/po4a.cfg
+ $(AM_V_at) touch $@
+
+clean-local: clean-local-@USE_PO4A@
+
+clean-local-no:
+clean-local-yes:
+ rm -rf $(LINGUAS_DIST)
+ $(AM_V_at) rm -f man.stamp
+
+.PHONY: update-po
+
+update-po:
+ $(PO4A_V) $(PO4A) $(PO4A_OPTS) --force $(srcdir)/po/po4a.cfg
+
+SUFFIXES = .man
+
+MANGEN_V = $(MANGEN_V_@AM_V@)
+MANGEN_V_ = $(MANGEN_V_@AM_DEFAULT_V@)
+MANGEN_V_0 = @echo " MANGEN $@";
+
+MANGEN = $(MANGEN_V) sed \
+ -f $(srcdir)/utf8toman.sed \
+ -e 's/%PACKAGE%/$(PACKAGE)/g' \
+ -e 's/%VERSION%/$(PACKAGE_VERSION)/g' \
+ -e 's/%RELEASE_DATE%/$(PACKAGE_RELEASE_DATE)/g' \
+ -e 's:%CONFDIR%:$(sysconfdir):g' \
+ -e 's:%LOGDIR%:$(logdir):g' \
+ -e 's:%ADMINDIR%:$(admindir):g' \
+ -e 's:%PKGDOCDIR%:$(docdir):g' \
+ -e 's:%PKGCONFDIR%:$(pkgconfdir):g' \
+ -e 's:%PKGLIBDIR%:$(pkglibexecdir):g' \
+ -e 's:%PKGDATADIR%:$(pkgdatadir):g'
+ $(nil)
+
+.man.1: Makefile
+ $(MANGEN) $< >$@
+.man.5: Makefile
+ $(MANGEN) $< >$@
+.man.7: Makefile
+ $(MANGEN) $< >$@
+.man.8: Makefile
+ $(MANGEN) $< >$@
+
+install-data-local: install-data-local-@USE_PO4A@
+
+install-data-local-no:
+install-data-local-yes:
+ for lang in $(LINGUAS); do \
+ files=""; \
+ for man in $(man_MANS); do \
+ trans="$${man%%.[0-9]}.man"; \
+ if [ -f $(builddir)/$$lang/$$trans ]; then \
+ files="$$files $(builddir)/$$lang/$$man"; \
+ elif [ -f $(srcdir)/$$lang/$$trans ]; then \
+ files="$$files $(srcdir)/$$lang/$$man"; \
+ fi; \
+ done; \
+ $(MAKE) install-man mandir="$(mandir)/$$lang" man_MANS="$$files"; \
+ done
+
+uninstall-local: uninstall-local-@USE_PO4A@
+
+uninstall-local-no:
+uninstall-local-yes:
+ for lang in $(LINGUAS); do \
+ files=""; \
+ for man in $(man_MANS); do \
+ trans="$${man%%.[0-9]}.man"; \
+ if [ -f $(builddir)/$$lang/$$trans ]; then \
+ files="$$files $(builddir)/$$lang/$$man"; \
+ elif [ -f $(srcdir)/$$lang/$$trans ]; then \
+ files="$$files $(srcdir)/$$lang/$$man"; \
+ fi; \
+ done; \
+ $(MAKE) uninstall-man mandir="$(mandir)/$$lang" man_MANS="$$files"; \
+ done
+
+dist-hook: man.stamp
+ cp -p $< $(distdir)/
+ for lang in $(LINGUAS_DIST); do \
+ cp -p $(srcdir)/po/$$lang.po $(distdir)/po; \
+ cp -p $(srcdir)/po/$$lang.add $(distdir)/po; \
+ $(MKDIR_P) $(distdir)/$$lang; \
+ cp -pR $(srcdir)/$$lang $(distdir)/; \
+ done