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