]> git.ipfire.org Git - thirdparty/cups.git/blame - man/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / man / Makefile
CommitLineData
ef416fc2 1#
fa73b229 2# "$Id: Makefile 4950 2006-01-19 16:07:57Z mike $"
ef416fc2 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
25include ../Makedefs
26
27
28#
29# Man pages...
30#
31
32MAN1 = 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)
43MAN5 = classes.conf.$(MAN5EXT) \
44 cupsd.conf.$(MAN5EXT) \
45 mime.convs.$(MAN5EXT) \
46 mime.types.$(MAN5EXT) \
47 printers.conf.$(MAN5EXT)
48MAN8 = 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
64all: $(MAN1) $(MAN5) $(MAN8) html
65
66
67#
68# Clean all config and object files...
69#
70
71clean:
fa73b229 72 $(RM) mantohtml mantohtml.o
ef416fc2 73 $(RM) $(MAN1) $(MAN5) $(MAN8)
fa73b229 74 for file in $(MAN1); do \
75 $(RM) ../doc/help/man-`basename $$file .$(MAN1EXT)`.html; \
76 done
77 for file in $(MAN8); do \
78 $(RM) ../doc/help/man-`basename $$file .$(MAN8EXT)`.html; \
79 done
ef416fc2 80
81
82#
83# Dummy depend target...
84#
85
86depend:
87
88
89#
90# Install files...
91#
92
93install: all
94 $(INSTALL_DIR) $(MANDIR)/man1
95 for file in $(MAN1); do \
96 echo Installing $$file in $(MANDIR)/man1...; \
97 $(INSTALL_MAN) $$file $(MANDIR)/man1; \
98 done
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; \
105 done
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); \
110 done
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)
115
116
117#
118# Make html versions of man pages...
119#
120
121html: $(MAN1) $(MAN8) mantohtml
122 echo Converting man pages to HTML...
123 for file in $(MAN1); do \
124 echo " $$file..."; \
125 ./mantohtml `basename $$file .$(MAN1EXT)`.man >../doc/help/man-`basename $$file .$(MAN1EXT)`.html; \
126 done
127 for file in $(MAN8); do \
128 echo " $$file..."; \
129 ./mantohtml `basename $$file .$(MAN8EXT)`.man >../doc/help/man-`basename $$file .$(MAN8EXT)`.html; \
130 done
131
132mantohtml: mantohtml.o
133 $(CC) $(LDFLAGS) -o $@ mantohtml.o
134
135
136#
fa73b229 137# End of "$Id: Makefile 4950 2006-01-19 16:07:57Z mike $".
ef416fc2 138#