1# 2# "$Id: Makefile 11934 2014-06-17 18:58:29Z msweet $" 3# 4# Documentation makefile for CUPS. 5# 6# Copyright 2007-2014 by Apple Inc. 7# Copyright 1997-2007 by Easy Software Products. 8# 9# These coded instructions, statements, and computer programs are the 10# property of Apple Inc. and are protected by Federal copyright 11# law. Distribution and use rights are outlined in the file "LICENSE.txt" 12# which should have been included with this file. If this file is 13# file is missing or damaged, see the license at "http://www.cups.org/". 14# 15 16include ../Makedefs 17 18# 19# Document files... 20# 21 22WEBPAGES = \ 23 apple-touch-icon.png \ 24 cups.css \ 25 cups-printable.css \ 26 index.html \ 27 robots.txt 28WEBIMAGES = \ 29 images/color-wheel.png \ 30 images/cups.png \ 31 images/cups-icon.png \ 32 images/generic.png \ 33 images/left.gif \ 34 images/right.gif \ 35 images/sel.gif \ 36 images/unsel.gif \ 37 images/wait.gif 38HELPIMAGES = \ 39 images/cups-block-diagram.png \ 40 images/cups-command-chain.png \ 41 images/cups-postscript-chain.png \ 42 images/cups-raster-chain.png \ 43 images/raster.png \ 44 images/raster-organization.png \ 45 images/sample-image.png \ 46 images/smiley.jpg 47HELPFILES = \ 48 help/accounting.html \ 49 help/api-array.html \ 50 help/api-cgi.html \ 51 help/api-cups.html \ 52 help/api-driver.html \ 53 help/api-filedir.html \ 54 help/api-filter.html \ 55 help/api-httpipp.html \ 56 help/api-mime.html \ 57 help/api-overview.html \ 58 help/api-ppd.html \ 59 help/api-ppdc.html \ 60 help/api-raster.html \ 61 help/cgi.html \ 62 help/glossary.html \ 63 help/kerberos.html \ 64 help/license.html \ 65 help/man-backend.html \ 66 help/man-cancel.html \ 67 help/man-classes.conf.html \ 68 help/man-client.conf.html \ 69 help/man-cups.html \ 70 help/man-cups-config.html \ 71 help/man-cups-files.conf.html \ 72 help/man-cups-lpd.html \ 73 help/man-cups-snmp.html \ 74 help/man-cupsaccept.html \ 75 help/man-cupsaddsmb.html \ 76 help/man-cupsd.conf.html \ 77 help/man-cupsd.html \ 78 help/man-cupsd-helper.html \ 79 help/man-cupsd-logs.html \ 80 help/man-cupsenable.html \ 81 help/man-cupstestdsc.html \ 82 help/man-cupstestppd.html \ 83 help/man-filter.html \ 84 help/man-ipptool.html \ 85 help/man-ipptoolfile.html \ 86 help/man-lp.html \ 87 help/man-lpadmin.html \ 88 help/man-lpc.html \ 89 help/man-lpinfo.html \ 90 help/man-lpmove.html \ 91 help/man-lpoptions.html \ 92 help/man-lpq.html \ 93 help/man-lpr.html \ 94 help/man-lprm.html \ 95 help/man-lpstat.html \ 96 help/man-mime.convs.html \ 97 help/man-mime.types.html \ 98 help/man-notifier.html \ 99 help/man-ppdc.html \ 100 help/man-ppdhtml.html \ 101 help/man-ppdi.html \ 102 help/man-ppdmerge.html \ 103 help/man-ppdpo.html \ 104 help/man-printers.conf.html \ 105 help/man-subscriptions.conf.html \ 106 help/network.html \ 107 help/options.html \ 108 help/overview.html \ 109 help/policies.html \ 110 help/postscript-driver.html \ 111 help/ppd-compiler.html \ 112 help/raster-driver.html \ 113 help/ref-ppdcfile.html \ 114 help/security.html \ 115 help/sharing.html \ 116 help/spec-banner.html \ 117 help/spec-cmp.html \ 118 help/spec-command.html \ 119 help/spec-design.html \ 120 help/spec-ipp.html \ 121 help/spec-pdf.html \ 122 help/spec-postscript.html \ 123 help/spec-ppd.html \ 124 help/spec-raster.html \ 125 help/spec-stp.html \ 126 help/translation.html 127 128 129# 130# Make all documents... 131# 132 133all: 134 135 136# 137# Make library targets... 138# 139 140libs: 141 142 143# 144# Make unit tests... 145# 146 147unittests: 148 149 150# 151# Remove all generated files... 152# 153 154clean: 155 156 157# 158# Dummy depend target... 159# 160 161depend: 162 163 164# 165# Install all targets... 166# 167 168install: all install-data install-headers install-libs install-exec 169 170 171# 172# Install data files... 173# 174 175install-data: $(INSTALL_LANGUAGES) 176 $(INSTALL_DIR) -m 755 $(DOCDIR) 177 for file in $(WEBPAGES); do \ 178 $(INSTALL_MAN) $$file $(DOCDIR); \ 179 done 180 $(INSTALL_DIR) -m 755 $(DOCDIR)/help 181 for file in $(HELPFILES); do \ 182 $(INSTALL_MAN) $$file $(DOCDIR)/help; \ 183 done 184 $(INSTALL_DIR) -m 755 $(DOCDIR)/images 185 for file in $(WEBIMAGES) $(HELPIMAGES); do \ 186 $(INSTALL_MAN) $$file $(DOCDIR)/images; \ 187 done 188 189install-languages: 190 for lang in $(LANGUAGES); do \ 191 if test -d $$lang; then \ 192 $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang; \ 193 $(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \ 194 $(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \ 195 fi; \ 196 done 197 198install-langbundle: 199 200 201# 202# Install programs... 203# 204 205install-exec: 206 207 208# 209# Install headers... 210# 211 212install-headers: 213 214 215# 216# Install libraries... 217# 218 219install-libs: 220 221 222# 223# Uninstall all documentation files... 224# 225 226uninstall: $(UNINSTALL_LANGUAGES) 227 for file in $(WEBPAGES); do \ 228 $(RM) $(DOCDIR)/$$file; \ 229 done 230 for file in $(HELPFILES); do \ 231 $(RM) $(DOCDIR)/$$file; \ 232 done 233 for file in $(WEBIMAGES); do \ 234 $(RM) $(DOCDIR)/$$file; \ 235 done 236 -$(RMDIR) $(DOCDIR)/images 237 -$(RMDIR) $(DOCDIR)/help 238 -$(RMDIR) $(DOCDIR) 239 240uninstall-languages: 241 -for lang in $(LANGUAGES); do \ 242 $(RM) $(DOCDIR)/$$lang/index.html; \ 243 $(RM) $(DOCDIR)/$$lang/cups.css; \ 244 $(RMDIR) $(DOCDIR)/$$lang; \ 245 done 246 247install-langbundle: 248 249 250# 251# Install the docset bits locally... 252# 253 254docset: 255 cp $(HELPFILES) ../org.cups.docset/Contents/Resources/Documentation/help 256 cp cups-printable.css ../org.cups.docset/Contents/Resources/Documentation 257 cp $(HELPIMAGES) ../org.cups.docset/Contents/Resources/Documentation/images 258 259 260# 261# End of Makefile. 262# 263