]> git.ipfire.org Git - thirdparty/cups.git/blob - man/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / man / Makefile
1 #
2 # "$Id: Makefile 4868 2005-12-05 16:59:11Z mike $"
3 #
4 # Man page makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1993-2005 by Easy Software Products.
7 #
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
13 # at:
14 #
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636 USA
19 #
20 # Voice: (301) 373-9600
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
23 #
24
25 include ../Makedefs
26
27
28 #
29 # Man pages...
30 #
31
32 MAN1 = backend.$(MAN1EXT) \
33 cups-config.$(MAN1EXT) \
34 cupstestppd.$(MAN1EXT) \
35 filter.$(MAN1EXT) \
36 lp.$(MAN1EXT) \
37 lpoptions.$(MAN1EXT) \
38 lppasswd.$(MAN1EXT) \
39 lpq.$(MAN1EXT) \
40 lprm.$(MAN1EXT) \
41 lpr.$(MAN1EXT) \
42 lpstat.$(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) \
50 cups-lpd.$(MAN8EXT) \
51 cups-polld.$(MAN8EXT) \
52 cupsd.$(MAN8EXT) \
53 cupsenable.$(MAN8EXT) \
54 lpadmin.$(MAN8EXT) \
55 lpinfo.$(MAN8EXT) \
56 lpmove.$(MAN8EXT) \
57 lpc.$(MAN8EXT)
58
59
60 #
61 # Make everything...
62 #
63
64 all: $(MAN1) $(MAN5) $(MAN8) html
65
66
67 #
68 # Clean all config and object files...
69 #
70
71 clean:
72 $(RM) $(MAN1) $(MAN5) $(MAN8)
73
74
75 #
76 # Dummy depend target...
77 #
78
79 depend:
80
81
82 #
83 # Install files...
84 #
85
86 install: all
87 $(INSTALL_DIR) $(MANDIR)/man1
88 for file in $(MAN1); do \
89 echo Installing $$file in $(MANDIR)/man1...; \
90 $(INSTALL_MAN) $$file $(MANDIR)/man1; \
91 done
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; \
98 done
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); \
103 done
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)
108
109
110 #
111 # Make html versions of man pages...
112 #
113
114 html: $(MAN1) $(MAN8) mantohtml
115 echo Converting man pages to HTML...
116 for file in $(MAN1); do \
117 echo " $$file..."; \
118 ./mantohtml `basename $$file .$(MAN1EXT)`.man >../doc/help/man-`basename $$file .$(MAN1EXT)`.html; \
119 done
120 for file in $(MAN8); do \
121 echo " $$file..."; \
122 ./mantohtml `basename $$file .$(MAN8EXT)`.man >../doc/help/man-`basename $$file .$(MAN8EXT)`.html; \
123 done
124
125 mantohtml: mantohtml.o
126 $(CC) $(LDFLAGS) -o $@ mantohtml.o
127
128
129 #
130 # End of "$Id: Makefile 4868 2005-12-05 16:59:11Z mike $".
131 #