2 # "$Id: Makefile 4868 2005-12-05 16:59:11Z 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
) $(MAN1
) $(MAN5
) $(MAN8
)
76 # Dummy depend target...
87 $(INSTALL_DIR
) $(MANDIR
)/man1
88 for file in
$(MAN1
); do \
89 echo Installing
$$file in
$(MANDIR
)/man1...
; \
90 $(INSTALL_MAN
) $$file $(MANDIR
)/man1
; \
92 $(RM
) $(MANDIR
)/man1
/cancel.
$(MAN1EXT
)
93 $(LN
) lp.
$(MAN1EXT
) $(MANDIR
)/man1
/cancel.
$(MAN1EXT
)
94 $(INSTALL_DIR
) $(MANDIR
)/man5
95 for file in
$(MAN5
); do \
96 echo Installing
$$file in
$(MANDIR
)/man5...
; \
97 $(INSTALL_MAN
) $$file $(MANDIR
)/man5
; \
99 $(INSTALL_DIR
) $(AMANDIR
)/man
$(MAN8DIR
)
100 for file in
$(MAN8
); do \
101 echo Installing
$$file in
$(AMANDIR
)/man
$(MAN8DIR
)...
; \
102 $(INSTALL_MAN
) $$file $(AMANDIR
)/man
$(MAN8DIR
); \
104 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
105 $(LN
) accept.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
106 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
107 $(LN
) cupsenable.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
111 # Make html versions of man pages...
114 html
: $(MAN1
) $(MAN8
) mantohtml
115 echo Converting man pages to HTML...
116 for file in
$(MAN1
); do \
118 .
/mantohtml
`basename $$file .$(MAN1EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN1EXT)`.html
; \
120 for file in
$(MAN8
); do \
122 .
/mantohtml
`basename $$file .$(MAN8EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN8EXT)`.html
; \
125 mantohtml
: mantohtml.o
126 $(CC
) $(LDFLAGS
) -o
$@ mantohtml.o
130 # End of "$Id: Makefile 4868 2005-12-05 16:59:11Z mike $".