2 # "$Id: Makefile 4950 2006-01-19 16:07:57Z mike $"
4 # Man page makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1993-2005 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
= backend.
$(MAN1EXT
) \
33 cups-config.
$(MAN1EXT
) \
34 cupstestppd.
$(MAN1EXT
) \
37 lpoptions.
$(MAN1EXT
) \
43 MAN5
= classes.conf.
$(MAN5EXT
) \
44 cupsd.conf.
$(MAN5EXT
) \
45 mime.convs.
$(MAN5EXT
) \
46 mime.types.
$(MAN5EXT
) \
47 printers.conf.
$(MAN5EXT
)
48 MAN8
= accept.
$(MAN8EXT
) \
49 cupsaddsmb.
$(MAN8EXT
) \
51 cups-polld.
$(MAN8EXT
) \
53 cupsenable.
$(MAN8EXT
) \
64 all: $(MAN1
) $(MAN5
) $(MAN8
) html
68 # Clean all config and object files...
72 $(RM
) mantohtml mantohtml.o
73 $(RM
) $(MAN1
) $(MAN5
) $(MAN8
)
74 for file in
$(MAN1
); do \
75 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN1EXT)`.html
; \
77 for file in
$(MAN8
); do \
78 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN8EXT)`.html
; \
83 # Dummy depend target...
94 $(INSTALL_DIR
) $(MANDIR
)/man1
95 for file in
$(MAN1
); do \
96 echo Installing
$$file in
$(MANDIR
)/man1...
; \
97 $(INSTALL_MAN
) $$file $(MANDIR
)/man1
; \
99 $(RM
) $(MANDIR
)/man1
/cancel.
$(MAN1EXT
)
100 $(LN
) lp.
$(MAN1EXT
) $(MANDIR
)/man1
/cancel.
$(MAN1EXT
)
101 $(INSTALL_DIR
) $(MANDIR
)/man5
102 for file in
$(MAN5
); do \
103 echo Installing
$$file in
$(MANDIR
)/man5...
; \
104 $(INSTALL_MAN
) $$file $(MANDIR
)/man5
; \
106 $(INSTALL_DIR
) $(AMANDIR
)/man
$(MAN8DIR
)
107 for file in
$(MAN8
); do \
108 echo Installing
$$file in
$(AMANDIR
)/man
$(MAN8DIR
)...
; \
109 $(INSTALL_MAN
) $$file $(AMANDIR
)/man
$(MAN8DIR
); \
111 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
112 $(LN
) accept.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
113 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
114 $(LN
) cupsenable.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
118 # Make html versions of man pages...
121 html
: $(MAN1
) $(MAN8
) mantohtml
122 echo Converting man pages to HTML...
123 for file in
$(MAN1
); do \
125 .
/mantohtml
`basename $$file .$(MAN1EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN1EXT)`.html
; \
127 for file in
$(MAN8
); do \
129 .
/mantohtml
`basename $$file .$(MAN8EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN8EXT)`.html
; \
132 mantohtml
: mantohtml.o
133 $(CC
) $(LDFLAGS
) -o
$@ mantohtml.o
137 # End of "$Id: Makefile 4950 2006-01-19 16:07:57Z mike $".