1 ## Process this file with automake to produce Makefile.in
33 dpkg-checkbuilddeps.1 \
37 dpkg-fsys-usrunmess.8 \
42 dpkg-maintscript-helper.1 \
43 dpkg-mergechangelogs.1 \
45 dpkg-parsechangelog.1 \
68 if BUILD_START_STOP_DAEMON
74 if BUILD_UPDATE_ALTERNATIVES
76 update-alternatives.1 \
80 CLEANFILES = $(man_MANS)
96 deb-extra-override.pod \
107 deb-src-control.pod \
110 deb-src-symbols.pod \
117 dpkg-architecture.pod \
118 dpkg-buildflags.pod \
119 dpkg-buildpackage.pod \
120 dpkg-checkbuilddeps.pod \
122 dpkg-distaddfile.pod \
124 dpkg-fsys-usrunmess.pod \
125 dpkg-genbuildinfo.pod \
126 dpkg-genchanges.pod \
127 dpkg-gencontrol.pod \
128 dpkg-gensymbols.pod \
129 dpkg-maintscript-helper.pod \
130 dpkg-mergechangelogs.pod \
132 dpkg-parsechangelog.pod \
135 dpkg-scanpackages.pod \
136 dpkg-scansources.pod \
140 dpkg-statoverride.pod \
148 start-stop-daemon.pod \
149 update-alternatives.pod \
153 # Extract the list of languages from the po4a config file.
154 LINGUAS_DIST = `$(SED) -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po/po4a.cfg`
156 # If the user has not defined it let's use the default.
157 LINGUAS ?= $(LINGUAS_DIST)
160 PO4A_V = $(PO4A_V_@AM_V@)
161 PO4A_V_ = $(PO4A_V_@AM_DEFAULT_V@)
162 PO4A_V_0 = @echo " PO4A $@";
167 --destdir $(builddir) \
170 --msgmerge-opt=--add-location=file \
171 --package-name dpkg-man \
172 --package-version $(PACKAGE_VERSION) \
173 --copyright-holder "$(PACKAGE_COPYRIGHT_HOLDER)" \
174 --msgid-bugs-address $(PACKAGE_BUGREPORT) \
177 all-local: all-local-@USE_PO4A@
180 all-local-yes: gen-man
185 for lang in $(LINGUAS); do \
187 for man in $(man_MANS); do \
188 tmpl="$${man%%.[0-9]}.pod"; \
189 if [ -f "$(builddir)/$$lang/$$tmpl" ]; then \
190 files="$$files $(builddir)/$$lang/$$man"; \
191 elif [ -f "$(srcdir)/$$lang/$$tmpl" ]; then \
192 files="$$files $(builddir)/$$lang/$$man"; \
195 if [ -n "$$files" ]; then \
197 $(MAKE) mandir="$(mandir)/$$lang" man_MANS="" $$files; \
201 # FIXME: Use a stamp file until po4a supports them internally.
203 $(PO4A_V) $(PO4A) $(PO4A_OPTS) $(srcdir)/po/po4a.cfg
206 clean-local: clean-local-@USE_PO4A@
210 rm -rf $(LINGUAS_DIST)
211 $(AM_V_at) rm -f man.stamp
216 $(PO4A_V) $(PO4A) $(PO4A_OPTS) --force $(srcdir)/po/po4a.cfg
218 SUFFIXES = .pod .1 .5 .7 .8
220 POD2MAN_V = $(POD2MAN_V_@AM_V@)
221 POD2MAN_V_ = $(POD2MAN_V_@AM_DEFAULT_V@)
222 POD2MAN_V_0 = @echo " POD2MAN $@";
226 --center='dpkg suite' \
227 --release=$(PACKAGE_VERSION) \
228 --date='$(PACKAGE_RELEASE_DATE)' \
232 -e 's/%PACKAGE%/$(PACKAGE)/g' \
233 -e 's/%VERSION%/$(PACKAGE_VERSION)/g' \
234 -e 's/%RELEASE_DATE%/$(PACKAGE_RELEASE_DATE)/g' \
235 -e 's:%CONFDIR%:$(sysconfdir):g' \
236 -e 's:%RUNSTATEDIR%:$(runstatedir):g' \
237 -e 's:%LOGDIR%:$(logdir):g' \
238 -e 's:%ADMINDIR%:$(admindir):g' \
239 -e 's:%BACKUPSDIR%:$(backupsdir):g' \
240 -e 's:%PKGDOCDIR%:$(docdir):g' \
241 -e 's:%PKGCONFDIR%:$(pkgconfdir):g' \
242 -e 's:%PKGLIBDIR%:$(pkglibexecdir):g' \
243 -e 's:%PKGDATADIR%:$(pkgdatadir):g' \
244 -e 's:%INSTDIR_ENVVAR%:DPKG_ROOT:g' \
245 -e 's:%ADMINDIR_ENVVAR%:DPKG_ADMINDIR:g' \
249 -f $(srcdir)/utf8toman.sed \
253 MANGEN = $(POD2MAN_V) filename='$@'; \
255 $(POD2MAN) $(POD2MAN_OPTS) \
256 --name="$$(basename $${filename%.*})" \
257 --section="$${filename\#\#*.}" | \
270 install-data-local: install-data-local-@USE_PO4A@
272 install-data-local-no:
273 install-data-local-yes:
274 for lang in $(LINGUAS); do \
276 for man in $(man_MANS); do \
277 tmpl="$${man%%.[0-9]}.pod"; \
278 if [ -f "$(builddir)/$$lang/$$tmpl" ]; then \
279 files="$$files $(builddir)/$$lang/$$man"; \
280 elif [ -f "$(srcdir)/$$lang/$$tmpl" ]; then \
281 files="$$files $(builddir)/$$lang/$$man"; \
284 $(MAKE) install-man mandir="$(mandir)/$$lang" man_MANS="$$files"; \
287 uninstall-local: uninstall-local-@USE_PO4A@
291 for lang in $(LINGUAS); do \
293 for man in $(man_MANS); do \
294 tmpl="$${man%%.[0-9]}.pod"; \
295 if [ -f "$(builddir)/$$lang/$$tmpl" ]; then \
296 files="$$files $(builddir)/$$lang/$$man"; \
297 elif [ -f "$(srcdir)/$$lang/$$tmpl" ]; then \
298 files="$$files $(builddir)/$$lang/$$man"; \
301 $(MAKE) uninstall-man mandir="$(mandir)/$$lang" man_MANS="$$files"; \
306 for lang in $(LINGUAS_DIST); do \
307 cp -p $(srcdir)/po/$$lang.po $(distdir)/po; \
308 if [ -e "$(srcdir)/po/$$lang.add" ]; then \
309 cp -p $(srcdir)/po/$$lang.add $(distdir)/po; \
311 if [ -n "`ls $(builddir)/$$lang/*.pod 2>/dev/null`" ]; then \
312 $(MKDIR_P) $(distdir)/$$lang; \
313 cp -p $(builddir)/$$lang/*.pod $(distdir)/$$lang/; \