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