1# 2# Template makefile for CUPS. 3# 4# Copyright 2007-2017 by Apple Inc. 5# Copyright 1993-2007 by Easy Software Products. 6# 7# Licensed under Apache License v2.0. See the file "LICENSE" for more information. 8# 9 10include ../Makedefs 11 12# 13# Template files... 14# 15 16FILES = \ 17 add-class.tmpl \ 18 add-printer.tmpl \ 19 admin.tmpl \ 20 choose-device.tmpl \ 21 choose-make.tmpl \ 22 choose-model.tmpl \ 23 choose-serial.tmpl \ 24 choose-uri.tmpl \ 25 class.tmpl \ 26 class-added.tmpl \ 27 class-confirm.tmpl \ 28 class-deleted.tmpl \ 29 class-jobs-header.tmpl \ 30 class-modified.tmpl \ 31 classes.tmpl \ 32 classes-header.tmpl \ 33 command.tmpl \ 34 edit-config.tmpl \ 35 error.tmpl \ 36 error-op.tmpl \ 37 header.tmpl \ 38 help-header.tmpl \ 39 help-trailer.tmpl \ 40 help-printable.tmpl \ 41 job-cancel.tmpl \ 42 job-hold.tmpl \ 43 job-move.tmpl \ 44 job-moved.tmpl \ 45 job-release.tmpl \ 46 job-restart.tmpl \ 47 jobs.tmpl \ 48 jobs-header.tmpl \ 49 list-available-printers.tmpl \ 50 modify-class.tmpl \ 51 modify-printer.tmpl \ 52 norestart.tmpl \ 53 option-boolean.tmpl \ 54 option-conflict.tmpl \ 55 option-header.tmpl \ 56 option-pickmany.tmpl \ 57 option-pickone.tmpl \ 58 option-trailer.tmpl \ 59 pager.tmpl \ 60 printer.tmpl \ 61 printer-accept.tmpl \ 62 printer-added.tmpl \ 63 printer-cancel-jobs.tmpl \ 64 printer-configured.tmpl \ 65 printer-confirm.tmpl \ 66 printer-default.tmpl \ 67 printer-deleted.tmpl \ 68 printer-jobs-header.tmpl \ 69 printer-modified.tmpl \ 70 printer-reject.tmpl \ 71 printer-start.tmpl \ 72 printer-stop.tmpl \ 73 printers.tmpl \ 74 printers-header.tmpl \ 75 restart.tmpl \ 76 samba-export.tmpl \ 77 samba-exported.tmpl \ 78 search.tmpl \ 79 set-printer-options-header.tmpl \ 80 set-printer-options-trailer.tmpl \ 81 test-page.tmpl \ 82 trailer.tmpl \ 83 users.tmpl 84 85 86# 87# Make everything... 88# 89 90all: 91 92 93# 94# Make library targets... 95# 96 97libs: 98 99 100# 101# Make unit tests... 102# 103 104unittests: 105 106 107# 108# Clean all config and object files... 109# 110 111clean: 112 113 114# 115# Dummy depend... 116# 117 118depend: 119 120 121# 122# Install all targets... 123# 124 125install: all install-data install-headers install-libs install-exec 126 127 128# 129# Install data files... 130# 131 132install-data: $(INSTALL_LANGUAGES) 133 $(INSTALL_DIR) -m 755 $(DATADIR)/templates 134 for file in $(FILES); do \ 135 $(INSTALL_DATA) $$file $(DATADIR)/templates; \ 136 done 137 138install-languages: 139 for lang in $(LANGUAGES); do \ 140 if test -d $$lang; then \ 141 $(INSTALL_DIR) -m 755 $(DATADIR)/templates/$$lang; \ 142 for file in $(FILES); do \ 143 $(INSTALL_DATA) $$lang/$$file $(DATADIR)/templates/$$lang >/dev/null 2>&1 || true; \ 144 done \ 145 fi \ 146 done 147 148install-langbundle: 149 150 151# 152# Install programs... 153# 154 155install-exec: 156 157 158# 159# Install headers... 160# 161 162install-headers: 163 164 165# 166# Install libraries... 167# 168 169install-libs: 170 171 172# 173# Uninstall files... 174# 175 176uninstall: $(UNINSTALL_LANGUAGES) 177 for file in $(FILES); do \ 178 $(RM) $(DATADIR)/templates/$$file; \ 179 done 180 -$(RMDIR) $(DATADIR)/templates 181 182uninstall-languages: 183 for lang in $(LANGUAGES); do \ 184 for file in $(FILES); do \ 185 $(RM) $(DATADIR)/templates/$$lang/$$file; \ 186 done \ 187 $(RMDIR) $(DATADIR)/templates/$$lang; \ 188 done 189 190uninstall-langbundle: 191