|
1 --- a/Makefile.in-bkp 2011-05-28 00:56:06.178936359 +0200 |
|
2 +++ b/Makefile.in 2011-05-28 01:01:05.832899219 +0200 |
|
3 @@ -60,26 +60,27 @@ |
|
4 install: install-db |
|
5 |
|
6 install-db: |
|
7 - install -d $(DESTDIR)$(LIBDIR) |
|
8 - install -d $(DESTDIR)$(LIBDIR)/db/source/printer |
|
9 - install -d $(DESTDIR)$(LIBDIR)/db/source/driver |
|
10 - install -d $(DESTDIR)$(LIBDIR)/db/source/opt |
|
11 - install -d $(DESTDIR)$(LIBDIR)/db/source/PPD |
|
12 - cp db/oldprinterids $(DESTDIR)$(LIBDIR)/db |
|
13 - cp db/source/printer/*.xml $(DESTDIR)$(LIBDIR)/db/source/printer |
|
14 + ginstall -d $(DESTDIR)$(LIBDIR) |
|
15 + ginstall -d $(DESTDIR)$(LIBDIR)/db/source/printer |
|
16 + ginstall -d $(DESTDIR)$(LIBDIR)/db/source/driver |
|
17 + ginstall -d $(DESTDIR)$(LIBDIR)/db/source/opt |
|
18 + ginstall -d $(DESTDIR)$(LIBDIR)/db/source/PPD |
|
19 + cp -f db/oldprinterids $(DESTDIR)$(LIBDIR)/db |
|
20 + cp -f db/source/printer/*.xml $(DESTDIR)$(LIBDIR)/db/source/printer |
|
21 ( cd db/source/driver/; \ |
|
22 for d in $(DRIVERXMLS); do \ |
|
23 - cp $$d $(DESTDIR)$(LIBDIR)/db/source/driver; \ |
|
24 + cp -f $$d $(DESTDIR)$(LIBDIR)/db/source/driver; \ |
|
25 done ) |
|
26 - cp db/source/opt/*.xml $(DESTDIR)$(LIBDIR)/db/source/opt |
|
27 - ( cd db/source && tar cf - --exclude=.svn PPD ) | \ |
|
28 - ( cd $(DESTDIR)$(LIBDIR)/db/source && tar xf -) |
|
29 + cp -f db/source/opt/*.xml $(DESTDIR)$(LIBDIR)/db/source/opt |
|
30 + ( cd db/source && /usr/bin/gtar cf - --exclude=.svn PPD ) | \ |
|
31 + ( cd $(DESTDIR)$(LIBDIR)/db/source && /usr/bin/gtar xf -) |
|
32 if test $(GZIP) != GZIP_NOT_FOUND -a $(GZIP_PPDS) != no ; then \ |
|
33 - GZIP='' find $(DESTDIR)$(LIBDIR)/db/source/PPD -name "*.ppd" -exec $(GZIP) "{}" \; ; \ |
|
34 + GZIP='' find $(DESTDIR)$(LIBDIR)/db/source/PPD -name "*.ppd" -exec $(GZIP) -f "{}" \; ; \ |
|
35 fi |
|
36 if test $(CUPS_PPDS) != CUPS_PPDS_NOT_FOUND -a $(PPDS_TO_CUPS) != no ; then \ |
|
37 - install -d $(DESTDIR)$(CUPS_PPDS); \ |
|
38 - ln -sf $(LIBDIR)/db/source/PPD $(DESTDIR)$(CUPS_PPDS)/foomatic-db-ppds; \ |
|
39 + mkdir -p $(DESTDIR)$(CUPS_PPDS); \ |
|
40 + rm -f $(DESTDIR)$(CUPS_PPDS)/foomatic-db-ppds; \ |
|
41 + ln -sf ../../../..$(LIBDIR)/db/source/PPD $(DESTDIR)$(CUPS_PPDS)/foomatic-db-ppds; \ |
|
42 fi |
|
43 |
|
44 build: |