1# 2# Example files makefile for CUPS. 3# 4# Copyright © 2007-2019 by Apple Inc. 5# Copyright © 2002-2005 by Easy Software Products. 6# 7# Licensed under Apache License v2.0. See the file "LICENSE" for more 8# information. 9# 10 11# 12# Include standard definitions... 13# 14 15include ../Makedefs 16 17 18# 19# Examples... 20# 21 22DRVFILES = \ 23 color.drv \ 24 constraint.drv \ 25 custom.drv \ 26 grouping.drv \ 27 laserjet-basic.drv \ 28 laserjet-pjl.drv \ 29 minimum.drv \ 30 postscript.drv \ 31 r300-basic.drv \ 32 r300-colorman.drv \ 33 r300-remote.drv 34DATAFILES = \ 35 color.jpg \ 36 document-a4.pdf \ 37 document-a4.ps \ 38 document-letter.pdf \ 39 document-letter.ps \ 40 gray.jpg \ 41 onepage-a4.pdf \ 42 onepage-a4.ps \ 43 onepage-letter.pdf \ 44 onepage-letter.ps \ 45 testfile.jpg \ 46 testfile.pcl \ 47 testfile.pdf \ 48 testfile.ps \ 49 testfile.txt 50TESTFILES = \ 51 cancel-current-job.test \ 52 create-job-format.test \ 53 create-job-sheets.test \ 54 create-job-timeout.test \ 55 create-job.test \ 56 create-printer-subscription.test \ 57 cups-create-local-printer.test \ 58 fax-job.test \ 59 get-completed-jobs.test \ 60 get-devices.test \ 61 get-job-attributes.test \ 62 get-job-attributes2.test \ 63 get-job-template-attributes.test \ 64 get-jobs.test \ 65 get-notifications.test \ 66 get-ppd-printer.test \ 67 get-ppd.test \ 68 get-ppds-drv-only.test \ 69 get-ppds-language.test \ 70 get-ppds-make-and-model.test \ 71 get-ppds-make.test \ 72 get-ppds-product.test \ 73 get-ppds-psversion.test \ 74 get-ppds.test \ 75 get-printer-attributes-suite.test \ 76 get-printer-attributes.test \ 77 get-printer-description-attributes.test \ 78 get-printers-printer-id.test \ 79 get-printers.test \ 80 get-subscriptions.test \ 81 identify-printer-display.test \ 82 identify-printer-multiple.test \ 83 identify-printer.test \ 84 ipp-1.1.test \ 85 ipp-2.0.test \ 86 ipp-2.1.test \ 87 ipp-2.2.test \ 88 ipp-backend.test \ 89 ipp-everywhere.test \ 90 print-job-and-wait.test \ 91 print-job-deflate.test \ 92 print-job-gzip.test \ 93 print-job-hold.test \ 94 print-job-letter.test \ 95 print-job-manual.test \ 96 print-job-media-col.test \ 97 print-job-password.test \ 98 print-job.test \ 99 print-uri.test \ 100 set-attrs-hold.test \ 101 validate-job.test 102 103 104# 105# Make everything... 106# 107 108all: 109 110 111# 112# Make library targets... 113# 114 115libs: 116 117 118# 119# Make unit tests... 120# 121 122unittests: 123 124 125# 126# Clean everything... 127# 128 129clean: 130 131 132# 133# Dummy depend... 134# 135 136depend: 137 138 139# 140# Install all targets... 141# 142 143install: all install-data install-headers install-libs install-exec 144 145 146# 147# Install data files... 148# 149 150install-data: 151 echo Installing sample PPD compiler files in $(DATADIR)/examples... 152 $(INSTALL_DIR) $(DATADIR)/examples 153 for file in $(DRVFILES); do \ 154 $(INSTALL_DATA) $$file $(DATADIR)/examples; \ 155 done 156 echo Installing sample ipptool files in $(DATADIR)/ipptool... 157 $(INSTALL_DIR) -m 755 $(DATADIR)/ipptool 158 for file in $(DATAFILES); do \ 159 $(INSTALL_COMPDATA) $$file $(DATADIR)/ipptool; \ 160 done 161 for file in $(TESTFILES); do \ 162 $(INSTALL_DATA) $$file $(DATADIR)/ipptool; \ 163 done 164 165 166# 167# Install programs... 168# 169 170install-exec: 171 172 173# 174# Install headers... 175# 176 177install-headers: 178 179 180# 181# Install libraries... 182# 183 184install-libs: 185 186 187# 188# Uninstall files... 189# 190 191uninstall: 192 echo Uninstalling sample PPD compiler files from $(DATADIR)/examples... 193 for file in $(DRVFILES); do \ 194 $(RM) $(DATADIR)/examples/$$file; \ 195 done 196 -$(RMDIR) $(DATADIR)/examples 197 echo Uninstalling sample ipptool files from $(DATADIR)/ipptool... 198 for file in $(DATAFILES); do \ 199 $(RM) $(DATADIR)/ipptool/$$file; \ 200 done 201 for file in $(TESTFILES); do \ 202 $(RM) $(DATADIR)/ipptool/$$file; \ 203 done 204 -$(RMDIR) $(DATADIR)/ipptool 205