2 # "$Id: Makefile 5099 2006-02-13 02:46:10Z mike $"
4 # Man page makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1993-2006 by Easy Software Products.
8 # These coded instructions, statements, and computer programs are the
9 # property of Easy Software Products and are protected by Federal
10 # copyright law. Distribution and use rights are outlined in the file
11 # "LICENSE.txt" which should have been included with this file. If this
12 # file is missing or damaged please contact Easy Software Products
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636 USA
20 # Voice: (301) 373-9600
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
32 MAN1
= cancel.
$(MAN1EXT
) \
33 cups-config.
$(MAN1EXT
) \
34 cupstestppd.
$(MAN1EXT
) \
36 lpoptions.
$(MAN1EXT
) \
42 MAN5
= classes.conf.
$(MAN5EXT
) \
43 cupsd.conf.
$(MAN5EXT
) \
44 mime.convs.
$(MAN5EXT
) \
45 mime.types.
$(MAN5EXT
) \
46 printers.conf.
$(MAN5EXT
)
47 MAN7
= backend.
$(MAN7EXT
) \
49 MAN8
= accept.
$(MAN8EXT
) \
50 cupsaddsmb.
$(MAN8EXT
) \
51 cups-deviced.
$(MAN8EXT
) \
52 cups-driverd.
$(MAN8EXT
) \
54 cups-polld.
$(MAN8EXT
) \
56 cupsenable.
$(MAN8EXT
) \
67 all: $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
) html
71 # Clean all config and object files...
75 $(RM
) mantohtml mantohtml.o
76 $(RM
) $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
)
77 for file in
$(MAN1
); do \
78 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN1EXT)`.html
; \
80 for file in
$(MAN5
); do \
81 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN5EXT)`.html
; \
83 for file in
$(MAN7
); do \
84 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN7EXT)`.html
; \
86 for file in
$(MAN8
); do \
87 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN8EXT)`.html
; \
92 # Dummy depend target...
103 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man1
104 for file in
$(MAN1
); do \
105 echo Installing
$$file in
$(MANDIR
)/man1...
; \
106 $(INSTALL_MAN
) $$file $(MANDIR
)/man1
; \
108 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man5
109 for file in
$(MAN5
); do \
110 echo Installing
$$file in
$(MANDIR
)/man5...
; \
111 $(INSTALL_MAN
) $$file $(MANDIR
)/man5
; \
113 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man7
114 for file in
$(MAN7
); do \
115 echo Installing
$$file in
$(MANDIR
)/man7...
; \
116 $(INSTALL_MAN
) $$file $(MANDIR
)/man7
; \
118 $(INSTALL_DIR
) -m
755 $(AMANDIR
)/man
$(MAN8DIR
)
119 for file in
$(MAN8
); do \
120 echo Installing
$$file in
$(AMANDIR
)/man
$(MAN8DIR
)...
; \
121 $(INSTALL_MAN
) $$file $(AMANDIR
)/man
$(MAN8DIR
); \
123 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
124 $(LN
) accept.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
125 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
126 $(LN
) cupsenable.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
130 # Make html versions of man pages...
133 html
: $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
) mantohtml
134 echo Converting man pages to HTML...
135 for file in
$(MAN1
); do \
137 .
/mantohtml
`basename $$file .$(MAN1EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN1EXT)`.html
; \
139 for file in
$(MAN5
); do \
141 .
/mantohtml
`basename $$file .$(MAN5EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN5EXT)`.html
; \
143 for file in
$(MAN7
); do \
145 .
/mantohtml
`basename $$file .$(MAN7EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN7EXT)`.html
; \
147 for file in
$(MAN8
); do \
149 .
/mantohtml
`basename $$file .$(MAN8EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN8EXT)`.html
; \
152 mantohtml
: mantohtml.o
153 $(CC
) $(LDFLAGS
) -o
$@ mantohtml.o
157 # End of "$Id: Makefile 5099 2006-02-13 02:46:10Z mike $".