~ubuntu-branches/debian/sid/rlinetd/sid

« back to all changes in this revision

Viewing changes to man/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Robert Luberda
  • Date: 2010-03-20 18:03:45 UTC
  • mfrom: (2.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320180345-x1srfbe2tg00ezsf
Tags: 0.7-1
* New upstream version.
* Recommend rsyslog instead of sysklogd (closes: #526922).
* update-inetd:
  + add support for enabling, disabling and removing entries;
  + use ucf for managing generated files;
  + ignore ucf files in rlinetd.conf;
  + make appropriate changes in  postinst and postrm scripts.
* Set debhelper compat level to 7
* Standards-Version: 3.8.4 (no changes). 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
man_MANS = inetd2rlinetd.8 rlinetd.8 rlinetd.conf.5
2
 
EXTRA_DIST = $(man_MANS)
3
 
 
 
1
dist_man_MANS = inetd2rlinetd.8 rlinetd.8 rlinetd.conf.5
 
2
EXTRA_DIST = \
 
3
             po4a.cfg                   \
 
4
             po/rlinetd-man.pot
 
5
# Extract the list of languages from the po4a config file.
 
6
LINGUAS = `sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po4a.cfg`
 
7
 
 
8
 
 
9
all-local: all-local-@USE_NLS@
 
10
all-local-no:
 
11
all-local-yes: $(srcdir)/po4a.stamp
 
12
 
 
13
PO4A_OPTIONS    = --msgid-bugs-address $(PACKAGE)@packages.debian.org  \
 
14
                  --package-name $(PACKAGE)                             \
 
15
                  --package-version $(VERSION)                          \
 
16
                  --copyright-holder='Robert Luberda <robert@debian.org> (msgids)' \
 
17
                  --previous                                            \
 
18
                  --variable srcdir=.                                   \
 
19
                  --no-backups                                          \
 
20
                  --verbose
 
21
 
 
22
po4a.stamp: $(srcdir)/po4a.cfg $(srcdir)/po/*.po $(dist_man_MANS)
 
23
        if [ "x$(po4apath)" != "x" ] ; then                             \
 
24
                $(po4apath) $(PO4A_OPTIONS) $(srcdir)/po4a.cfg;         \
 
25
                touch "$@";                                             \
 
26
        fi
 
27
 
 
28
update-po:
 
29
        $(po4apath) $(PO4A_OPTIONS) --force $(srcdir)/po4a.cfg
 
30
        touch "po4a.stamp"                                      
 
31
 
 
32
install-data-local: install-data-local-@USE_NLS@
 
33
install-data-local-no:
 
34
install-data-local-yes: $(srcdir)/po4a.stamp
 
35
        for lang in $(LINGUAS); do \
 
36
                if [ -d $(srcdir)/$$lang ]; then \
 
37
                        files=$$(echo $(srcdir)/$$lang/*.[1-9]); \
 
38
                        $(MAKE) install-man \
 
39
                                mandir="$(mandir)/$$lang" \
 
40
                                man_MANS="" \
 
41
                                dist_man_MANS="$$files"; \
 
42
                fi \
 
43
        done
 
44
 
 
45
uninstall-local: uninstall-local-@USE_NLS@
 
46
uninstall-local-no:
 
47
uninstall-local-yes:
 
48
        for lang in $(LINGUAS); do \
 
49
                if [ -d $(srcdir)/$$lang ]; then \
 
50
                        files=$$(echo $(srcdir)/$$lang/*.[1-9]); \
 
51
                        $(MAKE) uninstall-man \
 
52
                                mandir="$(mandir)/$$lang" \
 
53
                                man_MANS="" \
 
54
                                dist_man_MANS="$$files"; \
 
55
                fi \
 
56
        done
 
57
 
 
58
dist-hook: update-po
 
59
        for lang in $(LINGUAS); do \
 
60
                cp $(srcdir)/po/$$lang.po $(distdir)/po; \
 
61
                cp $(srcdir)/po/$$lang.add $(distdir)/po; \
 
62
                $(mkdir_p) $(distdir)/$$lang; \
 
63
                cp -r $(srcdir)/$$lang $(distdir)/; \
 
64
        done
 
65
        cp po4a.stamp $(distdir)
 
66
 
 
67
.PHONY: update-po