1*5e7646d2SAndroid Build Coastguard Worker# 2*5e7646d2SAndroid Build Coastguard Worker# Man page makefile for CUPS. 3*5e7646d2SAndroid Build Coastguard Worker# 4*5e7646d2SAndroid Build Coastguard Worker# Copyright © 2007-2019 by Apple Inc. 5*5e7646d2SAndroid Build Coastguard Worker# Copyright © 1993-2006 by Easy Software Products. 6*5e7646d2SAndroid Build Coastguard Worker# 7*5e7646d2SAndroid Build Coastguard Worker# Licensed under Apache License v2.0. See the file "LICENSE" for more 8*5e7646d2SAndroid Build Coastguard Worker# information. 9*5e7646d2SAndroid Build Coastguard Worker# 10*5e7646d2SAndroid Build Coastguard Worker 11*5e7646d2SAndroid Build Coastguard Workerinclude ../Makedefs 12*5e7646d2SAndroid Build Coastguard Worker 13*5e7646d2SAndroid Build Coastguard Worker 14*5e7646d2SAndroid Build Coastguard Worker# 15*5e7646d2SAndroid Build Coastguard Worker# Man pages... 16*5e7646d2SAndroid Build Coastguard Worker# 17*5e7646d2SAndroid Build Coastguard Worker 18*5e7646d2SAndroid Build Coastguard WorkerMAN1 = cancel.1 \ 19*5e7646d2SAndroid Build Coastguard Worker cups.1 \ 20*5e7646d2SAndroid Build Coastguard Worker cups-config.1 \ 21*5e7646d2SAndroid Build Coastguard Worker cupstestppd.1 \ 22*5e7646d2SAndroid Build Coastguard Worker ippeveprinter.1 \ 23*5e7646d2SAndroid Build Coastguard Worker $(IPPFIND_MAN) \ 24*5e7646d2SAndroid Build Coastguard Worker ipptool.1 \ 25*5e7646d2SAndroid Build Coastguard Worker lp.1 \ 26*5e7646d2SAndroid Build Coastguard Worker lpoptions.1 \ 27*5e7646d2SAndroid Build Coastguard Worker lpq.1 \ 28*5e7646d2SAndroid Build Coastguard Worker lprm.1 \ 29*5e7646d2SAndroid Build Coastguard Worker lpr.1 \ 30*5e7646d2SAndroid Build Coastguard Worker lpstat.1 \ 31*5e7646d2SAndroid Build Coastguard Worker ppdc.1 \ 32*5e7646d2SAndroid Build Coastguard Worker ppdhtml.1 \ 33*5e7646d2SAndroid Build Coastguard Worker ppdi.1 \ 34*5e7646d2SAndroid Build Coastguard Worker ppdmerge.1 \ 35*5e7646d2SAndroid Build Coastguard Worker ppdpo.1 36*5e7646d2SAndroid Build Coastguard WorkerMAN5 = classes.conf.5 \ 37*5e7646d2SAndroid Build Coastguard Worker client.conf.5 \ 38*5e7646d2SAndroid Build Coastguard Worker cups-files.conf.5 \ 39*5e7646d2SAndroid Build Coastguard Worker cups-snmp.conf.5 \ 40*5e7646d2SAndroid Build Coastguard Worker cupsd.conf.5 \ 41*5e7646d2SAndroid Build Coastguard Worker cupsd-logs.5 \ 42*5e7646d2SAndroid Build Coastguard Worker ipptoolfile.5 \ 43*5e7646d2SAndroid Build Coastguard Worker mailto.conf.5 \ 44*5e7646d2SAndroid Build Coastguard Worker mime.convs.5 \ 45*5e7646d2SAndroid Build Coastguard Worker mime.types.5 \ 46*5e7646d2SAndroid Build Coastguard Worker ppdcfile.5 \ 47*5e7646d2SAndroid Build Coastguard Worker printers.conf.5 \ 48*5e7646d2SAndroid Build Coastguard Worker subscriptions.conf.5 49*5e7646d2SAndroid Build Coastguard WorkerMAN7 = backend.7 \ 50*5e7646d2SAndroid Build Coastguard Worker filter.7 \ 51*5e7646d2SAndroid Build Coastguard Worker ippevepcl.7 \ 52*5e7646d2SAndroid Build Coastguard Worker notifier.7 53*5e7646d2SAndroid Build Coastguard WorkerMAN8 = cupsaccept.8 \ 54*5e7646d2SAndroid Build Coastguard Worker cupsctl.8 \ 55*5e7646d2SAndroid Build Coastguard Worker cupsfilter.8 \ 56*5e7646d2SAndroid Build Coastguard Worker cups-lpd.8 \ 57*5e7646d2SAndroid Build Coastguard Worker cups-snmp.8 \ 58*5e7646d2SAndroid Build Coastguard Worker cupsd.8 \ 59*5e7646d2SAndroid Build Coastguard Worker cupsd-helper.8 \ 60*5e7646d2SAndroid Build Coastguard Worker cupsenable.8 \ 61*5e7646d2SAndroid Build Coastguard Worker lpadmin.8 \ 62*5e7646d2SAndroid Build Coastguard Worker lpinfo.8 \ 63*5e7646d2SAndroid Build Coastguard Worker lpmove.8 \ 64*5e7646d2SAndroid Build Coastguard Worker lpc.8 65*5e7646d2SAndroid Build Coastguard Worker 66*5e7646d2SAndroid Build Coastguard Worker 67*5e7646d2SAndroid Build Coastguard Worker# 68*5e7646d2SAndroid Build Coastguard Worker# Make everything... 69*5e7646d2SAndroid Build Coastguard Worker# 70*5e7646d2SAndroid Build Coastguard Worker 71*5e7646d2SAndroid Build Coastguard Workerall: $(MAN1) $(MAN5) $(MAN7) $(MAN8) 72*5e7646d2SAndroid Build Coastguard Worker 73*5e7646d2SAndroid Build Coastguard Worker 74*5e7646d2SAndroid Build Coastguard Worker# 75*5e7646d2SAndroid Build Coastguard Worker# Make library targets... 76*5e7646d2SAndroid Build Coastguard Worker# 77*5e7646d2SAndroid Build Coastguard Worker 78*5e7646d2SAndroid Build Coastguard Workerlibs: 79*5e7646d2SAndroid Build Coastguard Worker 80*5e7646d2SAndroid Build Coastguard Worker 81*5e7646d2SAndroid Build Coastguard Worker# 82*5e7646d2SAndroid Build Coastguard Worker# Make unit tests... 83*5e7646d2SAndroid Build Coastguard Worker# 84*5e7646d2SAndroid Build Coastguard Worker 85*5e7646d2SAndroid Build Coastguard Workerunittests: 86*5e7646d2SAndroid Build Coastguard Worker 87*5e7646d2SAndroid Build Coastguard Worker 88*5e7646d2SAndroid Build Coastguard Worker# 89*5e7646d2SAndroid Build Coastguard Worker# Clean all config and object files... 90*5e7646d2SAndroid Build Coastguard Worker# 91*5e7646d2SAndroid Build Coastguard Worker 92*5e7646d2SAndroid Build Coastguard Workerclean: 93*5e7646d2SAndroid Build Coastguard Worker $(RM) mantohtml mantohtml.o 94*5e7646d2SAndroid Build Coastguard Worker 95*5e7646d2SAndroid Build Coastguard Worker 96*5e7646d2SAndroid Build Coastguard Worker# 97*5e7646d2SAndroid Build Coastguard Worker# Dummy depend target... 98*5e7646d2SAndroid Build Coastguard Worker# 99*5e7646d2SAndroid Build Coastguard Worker 100*5e7646d2SAndroid Build Coastguard Workerdepend: 101*5e7646d2SAndroid Build Coastguard Worker 102*5e7646d2SAndroid Build Coastguard Worker 103*5e7646d2SAndroid Build Coastguard Worker# 104*5e7646d2SAndroid Build Coastguard Worker# Install all targets... 105*5e7646d2SAndroid Build Coastguard Worker# 106*5e7646d2SAndroid Build Coastguard Worker 107*5e7646d2SAndroid Build Coastguard Workerinstall: all install-data install-headers install-libs install-exec 108*5e7646d2SAndroid Build Coastguard Worker 109*5e7646d2SAndroid Build Coastguard Worker 110*5e7646d2SAndroid Build Coastguard Worker# 111*5e7646d2SAndroid Build Coastguard Worker# Install data files... 112*5e7646d2SAndroid Build Coastguard Worker# 113*5e7646d2SAndroid Build Coastguard Worker 114*5e7646d2SAndroid Build Coastguard Workerinstall-data: all 115*5e7646d2SAndroid Build Coastguard Worker echo Installing man pages in $(MANDIR)/man1... 116*5e7646d2SAndroid Build Coastguard Worker $(INSTALL_DIR) -m 755 $(MANDIR)/man1 117*5e7646d2SAndroid Build Coastguard Worker for file in $(MAN1); do \ 118*5e7646d2SAndroid Build Coastguard Worker $(INSTALL_MAN) $$file $(MANDIR)/man1; \ 119*5e7646d2SAndroid Build Coastguard Worker done 120*5e7646d2SAndroid Build Coastguard Worker echo Installing man pages in $(MANDIR)/man5... 121*5e7646d2SAndroid Build Coastguard Worker $(INSTALL_DIR) -m 755 $(MANDIR)/man5 122*5e7646d2SAndroid Build Coastguard Worker for file in $(MAN5); do \ 123*5e7646d2SAndroid Build Coastguard Worker $(INSTALL_MAN) $$file $(MANDIR)/man5; \ 124*5e7646d2SAndroid Build Coastguard Worker done 125*5e7646d2SAndroid Build Coastguard Worker echo Installing man pages in $(MANDIR)/man7... 126*5e7646d2SAndroid Build Coastguard Worker $(INSTALL_DIR) -m 755 $(MANDIR)/man7 127*5e7646d2SAndroid Build Coastguard Worker for file in $(MAN7); do \ 128*5e7646d2SAndroid Build Coastguard Worker $(INSTALL_MAN) $$file $(MANDIR)/man7; \ 129*5e7646d2SAndroid Build Coastguard Worker done 130*5e7646d2SAndroid Build Coastguard Worker $(RM) $(MANDIR)/man7/ippeveps.7 131*5e7646d2SAndroid Build Coastguard Worker $(LN) ippevepcl.7 $(MANDIR)/man7/ippeveps.7 132*5e7646d2SAndroid Build Coastguard Worker echo Installing man pages in $(MANDIR)/man8... 133*5e7646d2SAndroid Build Coastguard Worker $(INSTALL_DIR) -m 755 $(MANDIR)/man8 134*5e7646d2SAndroid Build Coastguard Worker for file in $(MAN8); do \ 135*5e7646d2SAndroid Build Coastguard Worker $(INSTALL_MAN) $$file $(MANDIR)/man8; \ 136*5e7646d2SAndroid Build Coastguard Worker done 137*5e7646d2SAndroid Build Coastguard Worker $(RM) $(MANDIR)/man8/cupsdisable.8 138*5e7646d2SAndroid Build Coastguard Worker $(LN) cupsenable.8 $(MANDIR)/man8/cupsdisable.8 139*5e7646d2SAndroid Build Coastguard Worker $(RM) $(MANDIR)/man8/cupsreject.8 140*5e7646d2SAndroid Build Coastguard Worker $(LN) cupsaccept.8 $(MANDIR)/man8/cupsreject.8 141*5e7646d2SAndroid Build Coastguard Worker for file in cups-deviced.8 cups-driverd.8 cups-exec.8; do \ 142*5e7646d2SAndroid Build Coastguard Worker $(RM) $(MANDIR)/man8/$$file; \ 143*5e7646d2SAndroid Build Coastguard Worker $(LN) cupsd-helper.8 $(MANDIR)/man8/$$file; \ 144*5e7646d2SAndroid Build Coastguard Worker done 145*5e7646d2SAndroid Build Coastguard Worker 146*5e7646d2SAndroid Build Coastguard Worker 147*5e7646d2SAndroid Build Coastguard Worker# 148*5e7646d2SAndroid Build Coastguard Worker# Install programs... 149*5e7646d2SAndroid Build Coastguard Worker# 150*5e7646d2SAndroid Build Coastguard Worker 151*5e7646d2SAndroid Build Coastguard Workerinstall-exec: 152*5e7646d2SAndroid Build Coastguard Worker 153*5e7646d2SAndroid Build Coastguard Worker 154*5e7646d2SAndroid Build Coastguard Worker# 155*5e7646d2SAndroid Build Coastguard Worker# Install headers... 156*5e7646d2SAndroid Build Coastguard Worker# 157*5e7646d2SAndroid Build Coastguard Worker 158*5e7646d2SAndroid Build Coastguard Workerinstall-headers: 159*5e7646d2SAndroid Build Coastguard Worker 160*5e7646d2SAndroid Build Coastguard Worker 161*5e7646d2SAndroid Build Coastguard Worker# 162*5e7646d2SAndroid Build Coastguard Worker# Install libraries... 163*5e7646d2SAndroid Build Coastguard Worker# 164*5e7646d2SAndroid Build Coastguard Worker 165*5e7646d2SAndroid Build Coastguard Workerinstall-libs: 166*5e7646d2SAndroid Build Coastguard Worker 167*5e7646d2SAndroid Build Coastguard Worker 168*5e7646d2SAndroid Build Coastguard Worker# 169*5e7646d2SAndroid Build Coastguard Worker# Uninstall files... 170*5e7646d2SAndroid Build Coastguard Worker# 171*5e7646d2SAndroid Build Coastguard Worker 172*5e7646d2SAndroid Build Coastguard Workeruninstall: 173*5e7646d2SAndroid Build Coastguard Worker echo Uninstalling man pages from $(MANDIR)/man1... 174*5e7646d2SAndroid Build Coastguard Worker for file in $(MAN1); do \ 175*5e7646d2SAndroid Build Coastguard Worker $(RM) $(MANDIR)/man1/$$file; \ 176*5e7646d2SAndroid Build Coastguard Worker done 177*5e7646d2SAndroid Build Coastguard Worker -$(RMDIR) $(MANDIR)/man1 178*5e7646d2SAndroid Build Coastguard Worker echo Uninstalling man pages from $(MANDIR)/man5... 179*5e7646d2SAndroid Build Coastguard Worker for file in $(MAN5); do \ 180*5e7646d2SAndroid Build Coastguard Worker $(RM) $(MANDIR)/man5/$$file; \ 181*5e7646d2SAndroid Build Coastguard Worker done 182*5e7646d2SAndroid Build Coastguard Worker -$(RMDIR) $(MANDIR)/man5 183*5e7646d2SAndroid Build Coastguard Worker echo Uninstalling man pages from $(MANDIR)/man7... 184*5e7646d2SAndroid Build Coastguard Worker for file in $(MAN7) ippeveps.7; do \ 185*5e7646d2SAndroid Build Coastguard Worker $(RM) $(MANDIR)/man7/$$file; \ 186*5e7646d2SAndroid Build Coastguard Worker done 187*5e7646d2SAndroid Build Coastguard Worker -$(RMDIR) $(MANDIR)/man7 188*5e7646d2SAndroid Build Coastguard Worker echo Uninstalling man pages from $(MANDIR)/man8... 189*5e7646d2SAndroid Build Coastguard Worker for file in $(MAN8) cupsenable.8 cupsreject.8 cups-deviced.8 cups-driverd.8 cups-exec.8; do \ 190*5e7646d2SAndroid Build Coastguard Worker $(RM) $(MANDIR)/man8/$$file; \ 191*5e7646d2SAndroid Build Coastguard Worker done 192*5e7646d2SAndroid Build Coastguard Worker -$(RMDIR) $(MANDIR)/man8 193*5e7646d2SAndroid Build Coastguard Worker 194*5e7646d2SAndroid Build Coastguard Worker 195*5e7646d2SAndroid Build Coastguard Worker# 196*5e7646d2SAndroid Build Coastguard Worker# Local programs (not built when cross-compiling...) 197*5e7646d2SAndroid Build Coastguard Worker# 198*5e7646d2SAndroid Build Coastguard Worker 199*5e7646d2SAndroid Build Coastguard Workerlocal: html 200*5e7646d2SAndroid Build Coastguard Worker 201*5e7646d2SAndroid Build Coastguard Worker 202*5e7646d2SAndroid Build Coastguard Worker# 203*5e7646d2SAndroid Build Coastguard Worker# Make html versions of man pages... 204*5e7646d2SAndroid Build Coastguard Worker# 205*5e7646d2SAndroid Build Coastguard Worker 206*5e7646d2SAndroid Build Coastguard Workerhtml: $(MAN1) $(MAN5) $(MAN7) $(MAN8) mantohtml 207*5e7646d2SAndroid Build Coastguard Worker echo Converting man pages to HTML... 208*5e7646d2SAndroid Build Coastguard Worker for file in $(MAN1); do \ 209*5e7646d2SAndroid Build Coastguard Worker echo " $$file..."; \ 210*5e7646d2SAndroid Build Coastguard Worker ./mantohtml $$file >../doc/help/man-`basename $$file .1`.html; \ 211*5e7646d2SAndroid Build Coastguard Worker done 212*5e7646d2SAndroid Build Coastguard Worker for file in $(MAN5); do \ 213*5e7646d2SAndroid Build Coastguard Worker echo " $$file..."; \ 214*5e7646d2SAndroid Build Coastguard Worker ./mantohtml $$file >../doc/help/man-`basename $$file .5`.html; \ 215*5e7646d2SAndroid Build Coastguard Worker done 216*5e7646d2SAndroid Build Coastguard Worker for file in $(MAN7); do \ 217*5e7646d2SAndroid Build Coastguard Worker echo " $$file..."; \ 218*5e7646d2SAndroid Build Coastguard Worker ./mantohtml $$file >../doc/help/man-`basename $$file .7`.html; \ 219*5e7646d2SAndroid Build Coastguard Worker done 220*5e7646d2SAndroid Build Coastguard Worker for file in $(MAN8); do \ 221*5e7646d2SAndroid Build Coastguard Worker echo " $$file..."; \ 222*5e7646d2SAndroid Build Coastguard Worker ./mantohtml $$file >../doc/help/man-`basename $$file .8`.html; \ 223*5e7646d2SAndroid Build Coastguard Worker done 224*5e7646d2SAndroid Build Coastguard Worker 225*5e7646d2SAndroid Build Coastguard Workermantohtml: mantohtml.o ../cups/$(LIBCUPSSTATIC) 226*5e7646d2SAndroid Build Coastguard Worker $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ mantohtml.o $(LINKCUPSSTATIC) 227*5e7646d2SAndroid Build Coastguard Worker $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ 228