Update Swedish translation.
[dpkg.git] / man / Makefile.am
blobb4aac18085e3f12e25724f72b3e71280dd76c551
1 ## Process this file with automake to produce Makefile.in
3 PO4A_V = $(PO4A_V_$(V))
4 PO4A_V_ = $(PO4A_V_$(AM_DEFAULT_VERBOSITY))
5 PO4A_V_0 = @echo "  PO4A   $@";
7 PO4A_RM_V = $(PO4A_RM_V_$(V))
8 PO4A_RM_V_ = $(PO4A_RM_V_$(AM_DEFAULT_VERBOSITY))
9 PO4A_RM_V_0 = @echo "  PO4ARM $@";
11 all-local: all-local-@USE_PO4A@
13 all-local-no:
14 all-local-yes: man.stamp
16 PO4A_COMMON_OPTS = --previous --variable builddir=$(CURDIR)
17 PO4A_BUILD_OPTS = $(PO4A_COMMON_OPTS) --no-backups
18 PO4A_CLEAN_OPTS = $(PO4A_COMMON_OPTS) --rm-backups --rm-translations
20 # FIXME: Use a stamp file until po4a supports them internally.
21 man.stamp:
22         $(PO4A_V) cd $(srcdir) && \
23         $(PO4A) $(PO4A_BUILD_OPTS) po/po4a.cfg
24         $(AM_V_at) touch $@
26 clean-local: clean-local-@USE_PO4A@
28 clean-local-no:
29 clean-local-yes:
30         $(PO4A_RM_V) cd $(srcdir) && \
31         $(PO4A) $(PO4A_CLEAN_OPTS) po/po4a.cfg
32         $(AM_V_at) rm -f man.stamp
34 update-po:
35         $(PO4A_V) cd $(srcdir) && \
36         $(PO4A) $(PO4A_BUILD_OPTS) --force po/po4a.cfg
38 # Extract the list of languages from the po4a config file.
39 LINGUAS = `sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po/po4a.cfg`
41 install-data-local: install-data-local-@USE_PO4A@
43 install-data-local-no:
44 install-data-local-yes:
45         for lang in $(LINGUAS); do \
46                 files=""; \
47                 for trans in $(dist_man_MANS); do \
48                         if [ -f $(srcdir)/$$lang/$$trans ]; then \
49                                 files="$$files $(srcdir)/$$lang/$$trans"; \
50                         fi; \
51                 done; \
52                 $(MAKE) install-man \
53                         mandir="$(mandir)/$$lang" \
54                         man_MANS="" \
55                         dist_man_MANS="$$files"; \
56         done
58 uninstall-local: uninstall-local-@USE_PO4A@
60 uninstall-local-no:
61 uninstall-local-yes:
62         for lang in $(LINGUAS); do \
63                 files=""; \
64                 for trans in $(dist_man_MANS); do \
65                         if [ -f $(srcdir)/$$lang/$$trans ]; then \
66                                 files="$$files $(srcdir)/$$lang/$$trans"; \
67                         fi; \
68                 done; \
69                 $(MAKE) uninstall-man \
70                         mandir="$(mandir)/$$lang" \
71                         man_MANS="" \
72                         dist_man_MANS="$$files"; \
73         done
75 dist-hook: man.stamp
76         cp $(srcdir)/man.stamp $(distdir)/
77         for lang in $(LINGUAS); do \
78                 cp $(srcdir)/po/$$lang.po $(distdir)/po; \
79                 cp $(srcdir)/po/$$lang.add $(distdir)/po; \
80                 $(mkdir_p) $(distdir)/$$lang; \
81                 cp -r $(srcdir)/$$lang $(distdir)/; \
82         done
84 dist_man_MANS = \
85         deb-control.5 \
86         deb-version.5 \
87         deb-shlibs.5 \
88         deb-split.5 \
89         deb-substvars.5 \
90         deb-symbols.5 \
91         deb-triggers.5 \
92         deb-old.5 \
93         deb-override.5 \
94         deb-extra-override.5 \
95         deb.5 \
96         dpkg-architecture.1 \
97         dpkg-buildpackage.1 \
98         dpkg-checkbuilddeps.1 \
99         dpkg-deb.1 \
100         dpkg-distaddfile.1 \
101         dpkg-divert.8 \
102         dpkg-genchanges.1 \
103         dpkg-gencontrol.1 \
104         dpkg-gensymbols.1 \
105         dpkg-name.1 \
106         dpkg-parsechangelog.1 \
107         dpkg-query.1 \
108         dpkg-scanpackages.1 \
109         dpkg-scansources.1 \
110         dpkg-shlibdeps.1 \
111         dpkg-source.1 \
112         dpkg-split.1 \
113         dpkg-statoverride.8 \
114         dpkg-trigger.1 \
115         dpkg-vendor.1 \
116         dpkg.1 \
117         dpkg.cfg.5 \
118         update-alternatives.8
120 if WITH_DSELECT
121 dist_man_MANS += \
122         dselect.1 \
123         dselect.cfg.5
124 endif
126 if WITH_START_STOP_DAEMON
127 dist_man_MANS += \
128         start-stop-daemon.8
129 endif
131 EXTRA_DIST = \
132         po/ChangeLog.old \
133         po/po4a.cfg \
134         po/dpkg-man.pot
136 .PHONY: update-po