aboutsummaryrefslogtreecommitdiffstats
path: root/print/foomatic-db/files/patch-Makefile.in
blob: b1e1fd0d6aecbddc01b0a2c7d5c07d82bc4ae656 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- Makefile.in.orig	2013-11-25 04:41:21.000000000 +0400
+++ Makefile.in	2013-11-25 12:16:27.911379666 +0400
@@ -67,6 +67,7 @@ install-db:
 	install -d $(DESTDIR)$(LIBDIR)/db/source/opt
 	install -d $(DESTDIR)$(LIBDIR)/db/source/PPD
 	install -d $(DESTDIR)$(LIBDIR)/xmlschema
+	install -d $(DESTDIR)$(datadir)/cups/model
 	cp db/oldprinterids $(DESTDIR)$(LIBDIR)/db
 	cp db/source/printer/*.xml $(DESTDIR)$(LIBDIR)/db/source/printer
 	( cd db/source/driver/; \
@@ -79,10 +80,7 @@ install-db:
 	if test $(GZIP) != GZIP_NOT_FOUND -a $(GZIP_PPDS) != no ; then \
 	  GZIP='' find $(DESTDIR)$(LIBDIR)/db/source/PPD -name "*.ppd" -exec $(GZIP) "{}" \; ; \
 	fi
-	if test $(CUPS_PPDS) != CUPS_PPDS_NOT_FOUND -a $(PPDS_TO_CUPS) != no ; then \
-	  install -d $(DESTDIR)$(CUPS_PPDS); \
-	  ln -sf $(LIBDIR)/db/source/PPD $(DESTDIR)$(CUPS_PPDS)/foomatic-db-ppds; \
-	fi
+	ln -sf $(LIBDIR)/db/source/PPD $(DESTDIR)$(datadir)/cups/model/foomatic-db-ppds
 	cp xmlschema/*.xsd $(DESTDIR)$(LIBDIR)/xmlschema
 
 build: