~ubuntu-branches/ubuntu/utopic/cups/utopic

« back to all changes in this revision

Viewing changes to .pc/manpage-translations.patch/man/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt, Till Kamppeter, Martin Pitt
  • Date: 2011-07-14 15:02:36 UTC
  • mfrom: (1.2.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110714150236-skkf0p5m6ccu5usu
Tags: 1.4.7-1
* New upstream version.

[ Till Kamppeter ]
* debian/patches/ubuntu-upstart.dpatch: Updated the patch to add support
  to the new device enumeration functionality of udev-configure-printer.
  This way we do not need to retrigger the printers. Retriggering is only
  needed if udev rules change. A fallback to the old bahavior is provided
  so that this CUPS package continues to work with older versions of
  udev-configure-printer.

[ Martin Pitt ]
* Update patches for new upstream release.
* Drop fix-broken-ipv6-uris.patch, applied upstream.
* debian/local/apparmor-profile: /var/run → /run transition. (LP: #810270)
* Drop debian/patches/ubuntu-upstart.dpatch and move the upstart script to
  debian/local/cups.upstart. In debian/rules, copy it to debian/, and remove
  that again during clean. This is a slightly easier workaround for a
  nonexisting "dh_installinit --sysvinit-only" option than the previous
  creation of the upstart file with an ubuntu specific dpatch.
* debian/patches/, debian/rules, debian/control, debian/source/format: Move
  to source format "3.0 (quilt)" and convert our dpatches to quilt patches.
  Drop dpatch build dependency.
* Move Ubuntu specific patches to debian/patches/ubuntu. In debian/rules,
  apply them when building on Ubuntu. Add "patch" build dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# "$Id: Makefile 9181 2010-06-22 21:42:44Z mike $"
 
3
#
 
4
#   Man page makefile for the Common UNIX Printing System (CUPS).
 
5
#
 
6
#   Copyright 2007-2008 by Apple Inc.
 
7
#   Copyright 1993-2006 by Easy Software Products.
 
8
#
 
9
#   These coded instructions, statements, and computer programs are the
 
10
#   property of Apple Inc. and are protected by Federal copyright
 
11
#   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
 
12
#   which should have been included with this file.  If this file is
 
13
#   file is missing or damaged, see the license at "http://www.cups.org/".
 
14
#
 
15
 
 
16
include ../Makedefs
 
17
 
 
18
 
 
19
#
 
20
# Man pages...
 
21
#
 
22
 
 
23
MAN1    =       cancel.$(MAN1EXT) \
 
24
                cups-config.$(MAN1EXT) \
 
25
                cupstestdsc.$(MAN1EXT) \
 
26
                cupstestppd.$(MAN1EXT) \
 
27
                lp.$(MAN1EXT) \
 
28
                lpoptions.$(MAN1EXT) \
 
29
                lppasswd.$(MAN1EXT) \
 
30
                lpq.$(MAN1EXT) \
 
31
                lprm.$(MAN1EXT) \
 
32
                lpr.$(MAN1EXT) \
 
33
                lpstat.$(MAN1EXT) \
 
34
                ppdc.$(MAN1EXT) \
 
35
                ppdhtml.$(MAN1EXT) \
 
36
                ppdi.$(MAN1EXT) \
 
37
                ppdmerge.$(MAN1EXT) \
 
38
                ppdpo.$(MAN1EXT)
 
39
MAN5    =       classes.conf.$(MAN5EXT) \
 
40
                client.conf.$(MAN5EXT) \
 
41
                cups-snmp.conf.$(MAN5EXT) \
 
42
                cupsd.conf.$(MAN5EXT) \
 
43
                mailto.conf.$(MAN5EXT) \
 
44
                mime.convs.$(MAN5EXT) \
 
45
                mime.types.$(MAN5EXT) \
 
46
                ppdcfile.$(MAN5EXT) \
 
47
                printers.conf.$(MAN5EXT) \
 
48
                subscriptions.conf.$(MAN5EXT)
 
49
MAN7    =       backend.$(MAN7EXT) \
 
50
                filter.$(MAN7EXT) \
 
51
                notifier.$(MAN7EXT)
 
52
MAN8    =       cupsaccept.$(MAN8EXT) \
 
53
                cupsaddsmb.$(MAN8EXT) \
 
54
                cupsctl.$(MAN8EXT) \
 
55
                cupsfilter.$(MAN8EXT) \
 
56
                cups-deviced.$(MAN8EXT) \
 
57
                cups-driverd.$(MAN8EXT) \
 
58
                cups-lpd.$(MAN8EXT) \
 
59
                cups-polld.$(MAN8EXT) \
 
60
                cupsd.$(MAN8EXT) \
 
61
                cupsenable.$(MAN8EXT) \
 
62
                lpadmin.$(MAN8EXT) \
 
63
                lpinfo.$(MAN8EXT) \
 
64
                lpmove.$(MAN8EXT) \
 
65
                lpc.$(MAN8EXT)
 
66
 
 
67
 
 
68
#
 
69
# Make everything...
 
70
#
 
71
 
 
72
all:    $(MAN1) $(MAN5) $(MAN7) $(MAN8) html
 
73
 
 
74
 
 
75
#
 
76
# Make library targets...
 
77
#
 
78
 
 
79
libs:
 
80
 
 
81
 
 
82
#
 
83
# Make unit tests...
 
84
#
 
85
 
 
86
unittests:
 
87
 
 
88
 
 
89
#
 
90
# Clean all config and object files...
 
91
#
 
92
 
 
93
clean:
 
94
        $(RM) mantohtml mantohtml.o
 
95
        $(RM) $(MAN1) $(MAN5) $(MAN7) $(MAN8)
 
96
        for file in $(MAN1); do \
 
97
                $(RM) ../doc/help/man-`basename $$file .$(MAN1EXT)`.html; \
 
98
        done
 
99
        for file in $(MAN5); do \
 
100
                $(RM) ../doc/help/man-`basename $$file .$(MAN5EXT)`.html; \
 
101
        done
 
102
        for file in $(MAN7); do \
 
103
                $(RM) ../doc/help/man-`basename $$file .$(MAN7EXT)`.html; \
 
104
        done
 
105
        for file in $(MAN8); do \
 
106
                $(RM) ../doc/help/man-`basename $$file .$(MAN8EXT)`.html; \
 
107
        done
 
108
 
 
109
 
 
110
#
 
111
# Dummy depend target...
 
112
#
 
113
 
 
114
depend:
 
115
 
 
116
 
 
117
#
 
118
# Install all targets...
 
119
#
 
120
 
 
121
install:        all install-data install-headers install-libs install-exec
 
122
 
 
123
 
 
124
#
 
125
# Install data files...
 
126
#
 
127
 
 
128
install-data: all
 
129
        $(INSTALL_DIR) -m 755 $(MANDIR)/man1
 
130
        for file in $(MAN1); do \
 
131
                echo Installing $$file in $(MANDIR)/man1...; \
 
132
                $(INSTALL_MAN) $$file $(MANDIR)/man1; \
 
133
        done
 
134
        $(INSTALL_DIR) -m 755 $(MANDIR)/man5
 
135
        for file in $(MAN5); do \
 
136
                echo Installing $$file in $(MANDIR)/man5...; \
 
137
                $(INSTALL_MAN) $$file $(MANDIR)/man5; \
 
138
        done
 
139
        $(INSTALL_DIR) -m 755 $(MANDIR)/man7
 
140
        for file in $(MAN7); do \
 
141
                echo Installing $$file in $(MANDIR)/man7...; \
 
142
                $(INSTALL_MAN) $$file $(MANDIR)/man7; \
 
143
        done
 
144
        $(INSTALL_DIR) -m 755 $(AMANDIR)/man$(MAN8DIR)
 
145
        for file in $(MAN8); do \
 
146
                echo Installing $$file in $(AMANDIR)/man$(MAN8DIR)...; \
 
147
                $(INSTALL_MAN) $$file $(AMANDIR)/man$(MAN8DIR); \
 
148
        done
 
149
        for file in accept cupsreject reject; do \
 
150
                $(RM) $(AMANDIR)/man$(MAN8DIR)/$$file.$(MAN8EXT); \
 
151
                $(LN) cupsaccept.$(MAN8EXT) $(AMANDIR)/man$(MAN8DIR)/$$file.$(MAN8EXT); \
 
152
        done
 
153
        $(RM) $(AMANDIR)/man$(MAN8DIR)/cupsdisable.$(MAN8EXT)
 
154
        $(LN) cupsenable.$(MAN8EXT) $(AMANDIR)/man$(MAN8DIR)/cupsdisable.$(MAN8EXT)
 
155
 
 
156
 
 
157
#
 
158
# Install programs...
 
159
#
 
160
 
 
161
install-exec:
 
162
 
 
163
 
 
164
#
 
165
# Install headers...
 
166
#
 
167
 
 
168
install-headers:
 
169
 
 
170
 
 
171
#
 
172
# Install libraries...
 
173
#
 
174
 
 
175
install-libs:
 
176
 
 
177
 
 
178
#
 
179
# Uninstall files...
 
180
#
 
181
 
 
182
uninstall:
 
183
        for file in $(MAN1); do \
 
184
                $(RM) $(MANDIR)/man1/$$file; \
 
185
        done
 
186
        -$(RMDIR) $(MANDIR)/man1
 
187
        for file in $(MAN5); do \
 
188
                $(RM) $(MANDIR)/man5/$$file; \
 
189
        done
 
190
        -$(RMDIR) $(MANDIR)/man5
 
191
        for file in $(MAN7); do \
 
192
                $(RM) $(MANDIR)/man7/$$file; \
 
193
        done
 
194
        -$(RMDIR) $(MANDIR)/man7
 
195
        for file in $(MAN8); do \
 
196
                $(RM) $(AMANDIR)/man$(MAN8DIR)/$$file; \
 
197
        done
 
198
        $(RM) $(AMANDIR)/man$(MAN8DIR)/accept.$(MAN8EXT)
 
199
        $(RM) $(AMANDIR)/man$(MAN8DIR)/cupsreject.$(MAN8EXT)
 
200
        $(RM) $(AMANDIR)/man$(MAN8DIR)/reject.$(MAN8EXT)
 
201
        $(RM) $(AMANDIR)/man$(MAN8DIR)/cupsdisable.$(MAN8EXT)
 
202
        -$(RMDIR) $(AMANDIR)/man$(MAN8DIR)
 
203
 
 
204
 
 
205
#
 
206
# Make html versions of man pages...
 
207
#
 
208
 
 
209
html:   $(MAN1) $(MAN5) $(MAN7) $(MAN8) mantohtml
 
210
        echo Converting man pages to HTML...
 
211
        for file in $(MAN1); do \
 
212
                echo "    $$file..."; \
 
213
                ./mantohtml `basename $$file .$(MAN1EXT)`.man >../doc/help/man-`basename $$file .$(MAN1EXT)`.html; \
 
214
        done
 
215
        for file in $(MAN5); do \
 
216
                echo "    $$file..."; \
 
217
                ./mantohtml `basename $$file .$(MAN5EXT)`.man >../doc/help/man-`basename $$file .$(MAN5EXT)`.html; \
 
218
        done
 
219
        for file in $(MAN7); do \
 
220
                echo "    $$file..."; \
 
221
                ./mantohtml `basename $$file .$(MAN7EXT)`.man >../doc/help/man-`basename $$file .$(MAN7EXT)`.html; \
 
222
        done
 
223
        for file in $(MAN8); do \
 
224
                echo "    $$file..."; \
 
225
                ./mantohtml `basename $$file .$(MAN8EXT)`.man >../doc/help/man-`basename $$file .$(MAN8EXT)`.html; \
 
226
        done
 
227
 
 
228
mantohtml:      mantohtml.o
 
229
        $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ mantohtml.o
 
230
 
 
231
 
 
232
#
 
233
# End of "$Id: Makefile 9181 2010-06-22 21:42:44Z mike $".
 
234
#