| 1 |
## Copyright (C) 2000 Roger Leigh |
| 2 |
## |
| 3 |
## This program is free software; you can redistribute it and/or modify |
| 4 |
## it under the terms of the GNU General Public License as published by |
| 5 |
## the Free Software Foundation; either version 2, or (at your option) |
| 6 |
## any later version. |
| 7 |
## |
| 8 |
## This program is distributed in the hope that it will be useful, |
| 9 |
## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 |
## GNU General Public License for more details. |
| 12 |
## |
| 13 |
## You should have received a copy of the GNU General Public License |
| 14 |
## along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 15 |
|
| 16 |
## Process this file with automake to produce Makefile.in. |
| 17 |
|
| 18 |
@SET_MAKE@ |
| 19 |
|
| 20 |
include $(top_srcdir)/scripts/global.mk |
| 21 |
|
| 22 |
|
| 23 |
## Variables |
| 24 |
|
| 25 |
empty= |
| 26 |
PACKAGE = cups |
| 27 |
|
| 28 |
BASE_VERSION = \"@GUTENPRINT_BASE_VERSION@\" |
| 29 |
|
| 30 |
bindir = @cups_bindir@ |
| 31 |
sbindir = @cups_sbindir@ |
| 32 |
|
| 33 |
pkgdatadir = $(cups_conf_datadir) |
| 34 |
pkglibdir = $(cups_conf_serverbin) |
| 35 |
pkgsysconfdir = $(cups_conf_serverroot) |
| 36 |
|
| 37 |
cupsexec_driverdir = $(pkglibdir)/driver |
| 38 |
cupsexec_filterdir = $(pkglibdir)/filter |
| 39 |
|
| 40 |
if BUILD_LIBUSB_BACKENDS |
| 41 |
cupsexec_backenddir = $(pkglibdir)/backend |
| 42 |
cupsdata_blacklistdir = $(pkgdatadir)/usb/ |
| 43 |
endif |
| 44 |
|
| 45 |
if CUPS_PPDS_AT_TOP_LEVEL |
| 46 |
cups_modeldir = $(pkgdatadir)/model/ |
| 47 |
DONT_UNINSTALL_PPDS=true |
| 48 |
else |
| 49 |
cups_modeldir = $(pkgdatadir)/model/gutenprint/@GUTENPRINT_RELEASE_VERSION@/ |
| 50 |
endif |
| 51 |
|
| 52 |
LOCAL_CPPFLAGS = $(GUTENPRINT_CFLAGS) $(CUPS_CFLAGS) -DBASE_VERSION=$(BASE_VERSION) -DSBINDIR=\"$(sbindir)/\" |
| 53 |
|
| 54 |
PPD_DIR=ppd |
| 55 |
|
| 56 |
STP_NONLS_ENV= STP_MODULE_PATH=$(top_builddir)/src/main/.libs:$(top_builddir)/src/main STP_DATA_PATH=$(top_srcdir)/src/xml STP_LOCALEDIR= |
| 57 |
|
| 58 |
STP_ENV= $(STP_NONLS_ENV) STP_LOCALEDIR=$(top_builddir)/src/cups/$(PPD_DIR)catalog |
| 59 |
|
| 60 |
## Programs |
| 61 |
if BUILD_TRANSLATED_CUPS_PPDS |
| 62 |
if BUILD_GLOBALIZED_CUPS_PPDS |
| 63 |
PPD = ppd-global |
| 64 |
else |
| 65 |
PPD = $(PPD_NLS_1) |
| 66 |
endif |
| 67 |
LINGUAS = $(ALL_LINGUAS) |
| 68 |
TRANSLATE_PPDS = -DCUPS_TRANSLATED_PPDS |
| 69 |
else |
| 70 |
PPD = ppd-nonls |
| 71 |
endif |
| 72 |
|
| 73 |
if BUILD_SIMPLIFIED_CUPS_PPDS |
| 74 |
BUILD_SIMPLE_PPDS=-DGENERATE_SIMPLIFIED_PPDS |
| 75 |
endif |
| 76 |
|
| 77 |
if BUILD_CUPS_1_2 |
| 78 |
cupsexec_driver_PROGRAMS = gutenprint.@GUTENPRINT_RELEASE_VERSION@ |
| 79 |
endif |
| 80 |
|
| 81 |
if BUILD_CUPS |
| 82 |
bin_PROGRAMS = cups-calibrate |
| 83 |
sbin_PROGRAMS = cups-genppd.@GUTENPRINT_RELEASE_VERSION@ |
| 84 |
sbin_SCRIPTS = cups-genppdupdate |
| 85 |
cupsexec_filter_PROGRAMS = rastertogutenprint.@GUTENPRINT_RELEASE_VERSION@ commandtoepson commandtocanon commandtodyesub |
| 86 |
|
| 87 |
if BUILD_LIBUSB_BACKENDS |
| 88 |
cupsexec_backend_PROGRAMS = backend_gutenprint |
| 89 |
endif |
| 90 |
|
| 91 |
## CUPS backends require no world-execute permissions if they are to be |
| 92 |
## executed as root, and the backend must be run as root. |
| 93 |
## See http://www.cups.org/documentation.php/doc-1.6/man-backend.html |
| 94 |
if BUILD_LIBUSB_BACKENDS |
| 95 |
install-exec-hook: |
| 96 |
chmod 700 $(DESTDIR)$(pkglibdir)/backend/backend_gutenprint |
| 97 |
mv $(DESTDIR)$(pkglibdir)/backend/backend_gutenprint "$(DESTDIR)$(pkglibdir)/backend/gutenprint$(GUTENPRINT_MAJOR_VERSION)$(GUTENPRINT_MINOR_VERSION)+usb" |
| 98 |
endif |
| 99 |
|
| 100 |
AM_TESTS_ENVIRONMENT=$(STP_ENV) |
| 101 |
test-rastertogutenprint: min-pagesize |
| 102 |
test-rastertogutenprint.test: test-rastertogutenprint |
| •103 |
TESTS= test-ppds.test |
| 104 |
test-rastertogutenprint.log: test-ppds.log |
| 105 |
|
| 106 |
noinst_SCRIPTS=test-ppds.test \ |
| 107 |
test-rastertogutenprint \ |
| 108 |
test-rastertogutenprint.test \ |
| 109 |
min-pagesize |
| 110 |
endif |
| 111 |
|
| 112 |
if BUILD_GENPPD_STATIC |
| 113 |
STATIC_LDOPTS=-static -export-dynamic |
| 114 |
endif |
| 115 |
|
| 116 |
cups_calibrate_SOURCES = cups-calibrate.c |
| 117 |
cups_calibrate_LDADD = -lm |
| 118 |
|
| 119 |
commandtocanon_SOURCES = commandtocanon.c |
| 120 |
commandtocanon_LDADD = $(CUPS_LIBS) |
| 121 |
|
| 122 |
commandtoepson_SOURCES = commandtoepson.c |
| 123 |
commandtoepson_LDADD = $(CUPS_LIBS) |
| 124 |
|
| 125 |
if BUILD_LIBUSB_BACKENDS |
| 126 |
backend_gutenprint_SOURCES = backend_canonselphy.c backend_canonselphyneo.c backend_kodak1400.c backend_kodak6800.c backend_kodak605.c backend_shinkos2145.c backend_sonyupd.c backend_sonyupdneo.c backend_dnpds40.c backend_mitsu70x.c backend_mitsu9550.c backend_sinfonia.c backend_sinfonia.h backend_common.c backend_common.h backend_shinkos1245.c backend_shinkos6145.c backend_shinkos6245.c backend_mitsup95d.c backend_magicard.c backend_mitsud90.c backend_hiti.c backend_mitsu.c backend_mitsu.h backend_kodak8800.c backend_panodata.h |
| 127 |
|
| 128 |
backend_gutenprint_LDADD = $(LIBUSB_LIBS) $(LIBUSB_BACKEND_LIBDEPS) |
| 129 |
backend_gutenprint_CPPFLAGS = $(AM_CPPFLAGS) $(LIBUSB_CFLAGS) -DLIBUSB_PRE_1_0_10 |
| 130 |
endif |
| 131 |
|
| 132 |
cups_genppd_@GUTENPRINT_RELEASE_VERSION@_SOURCES = cups-genppd.c genppd.c genppd.h i18n.c i18n.h |
| 133 |
cups_genppd_@GUTENPRINT_RELEASE_VERSION@_CFLAGS = -DALL_LINGUAS='"$(ALL_LINGUAS)"' $(BUILD_SIMPLE_PPDS) $(TRANSLATE_PPDS) |
| 134 |
cups_genppd_@GUTENPRINT_RELEASE_VERSION@_LDADD = $(CUPS_LIBS) $(GENPPD_LIBS) $(GUTENPRINT_LIBS) @LIBICONV@ |
| 135 |
cups_genppd_@GUTENPRINT_RELEASE_VERSION@_LDFLAGS = $(STATIC_LDOPTS) |
| 136 |
|
| 137 |
gutenprint_@GUTENPRINT_RELEASE_VERSION@_SOURCES = gutenprint.c genppd.c genppd.h i18n.c i18n.h |
| 138 |
gutenprint_@GUTENPRINT_RELEASE_VERSION@_CFLAGS = -DALL_LINGUAS='"$(ALL_LINGUAS)"' $(BUILD_SIMPLE_PPDS) $(TRANSLATE_PPDS) |
| 139 |
gutenprint_@GUTENPRINT_RELEASE_VERSION@_LDADD = $(CUPS_LIBS) $(GENPPD_LIBS) $(GUTENPRINT_LIBS) @LIBICONV@ |
| 140 |
gutenprint_@GUTENPRINT_RELEASE_VERSION@_LDFLAGS = $(STATIC_LDOPTS) |
| 141 |
|
| 142 |
rastertogutenprint_@GUTENPRINT_RELEASE_VERSION@_SOURCES = rastertogutenprint.c i18n.c i18n.h |
| 143 |
rastertogutenprint_@GUTENPRINT_RELEASE_VERSION@_LDADD = $(CUPS_LIBS) $(GUTENPRINT_LIBS) @LIBICONV@ |
| 144 |
rastertogutenprint_@GUTENPRINT_RELEASE_VERSION@_LDFLAGS = $(STATIC_LDOPTS) |
| 145 |
|
| 146 |
|
| 147 |
## Data |
| 148 |
|
| 149 |
if BUILD_CUPS |
| 150 |
CUPS_PKG = calibrate.ppm |
| 151 |
endif |
| 152 |
if BUILD_CUPS |
| 153 |
CUPS_CONF = command.types |
| 154 |
endif |
| 155 |
|
| 156 |
pkgdata_DATA = $(CUPS_PKG) |
| 157 |
pkgsysconf_DATA = $(CUPS_CONF) |
| 158 |
|
| 159 |
if BUILD_CUPS_PPDS |
| 160 |
INSTALL_DATA_LOCAL_DEPS = ppd-stamp |
| 161 |
endif |
| 162 |
|
| 163 |
if USE_NLS |
| 164 |
PPD_NLS_1 = ppd-nls |
| 165 |
endif |
| 166 |
|
| 167 |
if BUILD_LIBUSB_BACKENDS |
| 168 |
INSTALL_BLACKLIST=install-blacklist |
| 169 |
install-blacklist: |
| 170 |
$(MKDIR_P) $(DESTDIR)$(cupsdata_blacklistdir) |
| 171 |
$(INSTALL_DATA) $(srcdir)/blacklist $(DESTDIR)$(cupsdata_blacklistdir)/net.sf.gimp-print.usb-quirks |
| 172 |
endif |
| 173 |
|
| 174 |
install-data-local: $(INSTALL_DATA_LOCAL_DEPS) $(INSTALL_BLACKLIST) |
| 175 |
if test -n "$(CUPS_PKG)" -a -n "$(INSTALL_DATA_LOCAL_DEPS)" ; then \ |
| 176 |
$(MKDIR_P) $(DESTDIR)$(cups_modeldir); \ |
| 177 |
cd ppd ; \ |
| 178 |
for language in * ; do \ |
| 179 |
cd ..; \ |
| 180 |
$(MKDIR_P) $(DESTDIR)$(cups_modeldir)/$$language; \ |
| 181 |
cd ppd/$$language; \ |
| 182 |
for ppdfile in * ; do \ |
| 183 |
(cd ../..; $(INSTALL_DATA) ppd/$$language/$$ppdfile $(DESTDIR)$(cups_modeldir)/$$language) ; \ |
| 184 |
done; \ |
| 185 |
cd ..; \ |
| 186 |
done \ |
| 187 |
fi |
| 188 |
$(MKDIR_P) "$(DESTDIR)$(localedir)" |
| 189 |
for file in $(srcdir)/../../po/*.po; do \ |
| 190 |
lang=`basename $$file .po`; \ |
| 191 |
$(MKDIR_P) "$(DESTDIR)$(localedir)/$$lang"; \ |
| 192 |
$(INSTALL_DATA) $$file "$(DESTDIR)$(localedir)/$$lang/gutenprint_$$lang.po"; \ |
| 193 |
done |
| 194 |
|
| 195 |
uninstall-local: $(INSTALL_DATA_LOCAL_DEPS) $(INSTALL_BLACKLIST) |
| 196 |
# Remove PPDs installed in new PPD location |
| 197 |
if test -z "DONT_UNINSTALL_PPDS" ; then \ |
| 198 |
if test -n "$(INSTALL_DATA_LOCAL_DEPS)" ; then \ |
| 199 |
$(RM) -fr $(DESTDIR)$(cups_modeldir)/* ; \ |
| 200 |
fi ; \ |
| 201 |
fi |
| 202 |
for file in $(srcdir)/../../po/*.po; do \ |
| 203 |
lang=`basename $$file .po`; \ |
| 204 |
$(RM) "$(DESTDIR)$(localedir)/$$lang/gutenprint_$$lang.po"; \ |
| 205 |
done |
| 206 |
$(RM) -f "$(DESTDIR)$(cupsdata_blacklistdir)/net.sf.gimp-print.usb-quirks" |
| 207 |
$(RM) -f "$(DESTDIR)$(pkglibdir)/backend/gutenprint$(GUTENPRINT_MAJOR_VERSION)$(GUTENPRINT_MINOR_VERSION)+usb" |
| 208 |
|
| 209 |
install-data-hook: |
| 210 |
# Remove unused directories in install tree |
| 211 |
-@echo 'Expect a number of "rmdir: Directory not empty" warnings' |
| 212 |
-@echo 'These messages are harmless and should be ignored.' |
| 213 |
-rmdir $(DESTDIR)$(cups_modeldir) |
| 214 |
-rmdir $(DESTDIR)$(pkgdatadir) |
| 215 |
-rmdir $(DESTDIR)$(cupsexec_driverdir) |
| 216 |
-rmdir $(DESTDIR)$(cupsexec_filterdir) |
| 217 |
-rmdir $(DESTDIR)$(cupsexec_backenddir) |
| 218 |
-rmdir $(DESTDIR)$(cupsdata_blacklistdir) |
| 219 |
-rmdir $(DESTDIR)$(bindir) |
| 220 |
-rmdir $(DESTDIR)$(sbindir) |
| 221 |
-rmdir $(DESTDIR)$(pkglibdir) |
| 222 |
-rmdir $(DESTDIR)$(pkgsysconfdir) |
| 223 |
-rmdir `dirname $(DESTDIR)$(pkgdatadir)` |
| 224 |
-rmdir `dirname $(DESTDIR)$(pkglibdir)` |
| 225 |
-rmdir `dirname $(DESTDIR)$(pkgsysconfdir)` |
| 226 |
|
| 227 |
.PHONY: ppd ppd-stamp-pre ppd-stamp-nonls ppd-stamp-nls ppd-stamp-phony \ |
| 228 |
ppd-catalog-clean ppd-clean $(INSTALL_BLACKLIST) |
| 229 |
|
| 230 |
all-local: $(INSTALL_DATA_LOCAL_DEPS) |
| 231 |
|
| 232 |
ppd: ppd-stamp |
| 233 |
|
| 234 |
ppd-stamp: cups-genppd.@GUTENPRINT_RELEASE_VERSION@ $(top_srcdir)/src/xml/xml-stamp ppd-stamp-pre |
| 235 |
$(MAKE) ppd-stamp-pre |
| 236 |
$(MAKE) ppd-stamp-phony |
| 237 |
touch ppd-stamp |
| 238 |
|
| 239 |
ppd-stamp-phony: $(PPD) |
| 240 |
|
| 241 |
ppd-catalog-clean: |
| 242 |
$(RM) -rf $(PPD_DIR)catalog |
| 243 |
|
| 244 |
ppd-clean: |
| 245 |
$(RM) -rf $(PPD_DIR) |
| 246 |
|
| 247 |
ppd-stamp-pre: ppd-catalog-clean ppd-clean |
| 248 |
|
| 249 |
ppd-catalog: ppd-catalog-clean |
| 250 |
$(MKDIR_P) catalog |
| 251 |
for file in $(top_srcdir)/po/*.po; do \ |
| 252 |
lang=`basename $$file .po`; \ |
| 253 |
$(MKDIR_P) "$(PPD_DIR)catalog/$$lang"; \ |
| 254 |
$(INSTALL_DATA) $$file "$(PPD_DIR)catalog/$$lang/gutenprint_$$lang.po"; \ |
| 255 |
done |
| 256 |
|
| 257 |
ppd-nonls: cups-genppd.@GUTENPRINT_RELEASE_VERSION@ |
| 258 |
@echo "Non-localized PPDs:" |
| 259 |
$(MKDIR_P) $(PPD_DIR)/C |
| 260 |
$(MAKE) ppd-catalog-clean |
| 261 |
LC_ALL= LANG= LANGUAGE= $(STP_NONLS_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ -l C -p $(PPD_DIR)/C @WHICH_PPDS@ $(EXTRA_GENPPD_OPTS) |
| 262 |
|
| 263 |
ppd-nonls-a: cups-genppd.@GUTENPRINT_RELEASE_VERSION@ |
| 264 |
@echo "Non-localized PPDs (all):" |
| 265 |
$(MKDIR_P) $(PPD_DIR)/C |
| 266 |
$(MAKE) ppd-catalog-clean |
| 267 |
LC_ALL= LANG= LANGUAGE= $(STP_NONLS_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ -l C -p $(PPD_DIR)/C -a $(EXTRA_GENPPD_OPTS) |
| 268 |
|
| 269 |
ppd-nonls-s: cups-genppd.@GUTENPRINT_RELEASE_VERSION@ |
| 270 |
@echo "Non-localized PPDs (simplified):" |
| 271 |
$(MKDIR_P) $(PPD_DIR)/C |
| 272 |
$(MAKE) ppd-catalog-clean |
| 273 |
LC_ALL= LANG= LANGUAGE= $(STP_NONLS_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ -l C -p $(PPD_DIR)/C -s $(EXTRA_GENPPD_OPTS) |
| 274 |
|
| 275 |
ppd-global: cups-genppd.@GUTENPRINT_RELEASE_VERSION@ |
| 276 |
@echo "Global PPDs:" |
| 277 |
$(MKDIR_P) $(PPD_DIR)/Global |
| 278 |
$(MAKE) ppd-catalog |
| 279 |
LC_ALL= LANG= LANGUAGE= $(STP_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ -p $(PPD_DIR)/Global @WHICH_PPDS@ $(EXTRA_GENPPD_OPTS) |
| 280 |
$(MAKE) ppd-catalog-clean |
| 281 |
|
| 282 |
ppd-global-a: cups-genppd.@GUTENPRINT_RELEASE_VERSION@ |
| 283 |
@echo "Global PPDs (all):" |
| 284 |
$(MKDIR_P) $(PPD_DIR)/Global |
| 285 |
$(MAKE) ppd-catalog |
| 286 |
LC_ALL= LANG= LANGUAGE= $(STP_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ -p $(PPD_DIR)/Global -a $(EXTRA_GENPPD_OPTS) |
| 287 |
$(MAKE) ppd-catalog-clean |
| 288 |
|
| 289 |
ppd-global-s: cups-genppd.@GUTENPRINT_RELEASE_VERSION@ |
| 290 |
@echo "Global PPDs (simplified):" |
| 291 |
$(MKDIR_P) $(PPD_DIR)/Global |
| 292 |
$(MAKE) ppd-catalog |
| 293 |
LC_ALL= LANG= LANGUAGE= $(STP_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ -p $(PPD_DIR)/Global -s $(EXTRA_GENPPD_OPTS) |
| 294 |
$(MAKE) ppd-catalog-clean |
| 295 |
|
| 296 |
ppd-global-ln: cups-genppd.@GUTENPRINT_RELEASE_VERSION@ |
| 297 |
@echo "Global PPDs (localized numbers for testing):" |
| 298 |
$(MKDIR_P) $(PPD_DIR)/Global |
| 299 |
$(MAKE) ppd-catalog |
| 300 |
LC_ALL= LANG= LANGUAGE= $(STP_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ -p $(PPD_DIR)/Global -N @WHICH_PPDS@ $(EXTRA_GENPPD_OPTS) |
| 301 |
$(MAKE) ppd-catalog-clean |
| 302 |
|
| 303 |
ppd-global-ln-a: cups-genppd.@GUTENPRINT_RELEASE_VERSION@ |
| 304 |
@echo "Global PPDs (all, localized numbers for testing):" |
| 305 |
$(MKDIR_P) $(PPD_DIR)/Global |
| 306 |
$(MAKE) ppd-catalog |
| 307 |
LC_ALL= LANG= LANGUAGE= $(STP_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ -p $(PPD_DIR)/Global -N -a $(EXTRA_GENPPD_OPTS) |
| 308 |
$(MAKE) ppd-catalog-clean |
| 309 |
|
| 310 |
ppd-global-ln-s: cups-genppd.@GUTENPRINT_RELEASE_VERSION@ |
| 311 |
@echo "Global PPDs (all, localized numbers for testing):" |
| 312 |
$(MKDIR_P) $(PPD_DIR)/Global |
| 313 |
$(MAKE) ppd-catalog |
| 314 |
LC_ALL= LANG= LANGUAGE= $(STP_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ -p $(PPD_DIR)/Global -N -s $(EXTRA_GENPPD_OPTS) |
| 315 |
$(MAKE) ppd-catalog-clean |
| 316 |
|
| 317 |
ppd-nls: cups-genppd.@GUTENPRINT_RELEASE_VERSION@ ppd-nonls |
| 318 |
@echo "Localized PPD files:" |
| 319 |
$(MKDIR_P) ppd |
| 320 |
$(MAKE) ppd-catalog |
| 321 |
for language in `$(STP_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ @WHICH_PPDS@ -L` ; do \ |
| 322 |
$(MKDIR_P) $(PPD_DIR)/$$language ; \ |
| 323 |
echo -n "$$language: " ; \ |
| 324 |
LC_ALL=$$language LANG=$$language LANGUAGE=$$language $(STP_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ -l $$language -p $(PPD_DIR)/$$language $(EXTRA_GENPPD_OPTS); \ |
| 325 |
done |
| 326 |
$(MAKE) ppd-catalog-clean |
| 327 |
|
| 328 |
ppd-nls-a: cups-genppd.@GUTENPRINT_RELEASE_VERSION@ @WHICH_PPDS@ ppd-nonls |
| 329 |
@echo "Localized PPD files (all):" |
| 330 |
$(MKDIR_P) ppd |
| 331 |
$(MAKE) ppd-catalog |
| 332 |
for language in `$(STP_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ @WHICH_PPDS@ -L` ; do \ |
| 333 |
$(MKDIR_P) $(PPD_DIR)/$$language ; \ |
| 334 |
echo -n "$$language: " ; \ |
| 335 |
LC_ALL=$$language LANG=$$language LANGUAGE=$$language $(STP_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ @WHICH_PPDS@ -l $$language -p $(PPD_DIR)/$$language -a $(EXTRA_GENPPD_OPTS); \ |
| 336 |
done |
| 337 |
$(MAKE) ppd-catalog-clean |
| 338 |
|
| 339 |
ppd-nls-s: cups-genppd.@GUTENPRINT_RELEASE_VERSION@ @WHICH_PPDS@ ppd-nonls |
| 340 |
@echo "Localized PPD files (simplified):" |
| 341 |
$(MKDIR_P) ppd |
| 342 |
$(MAKE) ppd-catalog |
| 343 |
for language in `$(STP_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ @WHICH_PPDS@ -L` ; do \ |
| 344 |
$(MKDIR_P) $(PPD_DIR)/$$language ; \ |
| 345 |
echo -n "$$language: " ; \ |
| 346 |
LC_ALL=$$language LANG=$$language LANGUAGE=$$language $(STP_ENV) ./cups-genppd.@GUTENPRINT_RELEASE_VERSION@ @WHICH_PPDS@ -l $$language -p $(PPD_DIR)/$$language -s $(EXTRA_GENPPD_OPTS); \ |
| 347 |
done |
| 348 |
$(MAKE) ppd-catalog-clean |
| 349 |
|
| 350 |
dist-hook: |
| 351 |
for dir in commands ; do \ |
| 352 |
if test -d $(srcdir)/$$dir ; then \ |
| 353 |
mkdir $(distdir)/$$dir; \ |
| 354 |
for dirfile in $(srcdir)/$$dir/*; do \ |
| 355 |
if test -f $$dirfile ; then \ |
| 356 |
cp -p $$dirfile $(distdir)/$$dir; \ |
| 357 |
fi \ |
| 358 |
done \ |
| 359 |
fi \ |
| 360 |
done |
| 361 |
|
| 362 |
clean-local: ppd-catalog-clean ppd-clean |
| 363 |
|
| 364 |
|
| 365 |
## Clean |
| 366 |
|
| 367 |
CLEANFILES = ppd-stamp |
| 368 |
DISTCLEANFILES = cups-genppdupdate test-ppds.test |
| 369 |
MAINTAINERCLEANFILES = Makefile.in |
| 370 |
|
| 371 |
EXTRA_DIST = \ |
| 372 |
COPYING \ |
| 373 |
blacklist \ |
| 374 |
calibrate.ppm \ |
| 375 |
command.txt \ |
| 376 |
command.types |