summaryrefslogtreecommitdiff
path: root/print/foomatic-db/files/patch-Makefile.in
blob: 075ec02723859591ba5af424912cdb87df327c07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- Makefile.in	2009-05-29 02:21:24.000000000 -0500
+++ Makefile.in	2009-05-30 11:38:15.000000000 -0500
@@ -65,8 +65,11 @@
 	install -d $(DESTDIR)$(LIBDIR)/db/source/driver
 	install -d $(DESTDIR)$(LIBDIR)/db/source/opt
 	install -d $(DESTDIR)$(LIBDIR)/db/source/PPD
+	install -d $(DESTDIR)$(datadir)/cups/model
 	cp db/oldprinterids $(DESTDIR)$(LIBDIR)/db
-	cp db/source/printer/*.xml $(DESTDIR)$(LIBDIR)/db/source/printer
+	( for file in `find db/source/printer/ -name \*.xml`; do \
+	   cp $$file $(DESTDIR)$(LIBDIR)/db/source/printer; \
+	  done )
 	( cd db/source/driver/; \
 	  for d in $(DRIVERXMLS); do \
 	    cp $$d $(DESTDIR)$(LIBDIR)/db/source/driver; \
@@ -77,10 +80,8 @@
 	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
+	
 
 build:
 	@echo "Nothing to compile/build, use \"make install\" to install the database."