summaryrefslogtreecommitdiff
blob: e8406b647d4bd78a22459855e40b2e29713fede5 (plain)
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
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@
 CDB_USELIB = $(LIB)
 NSS_USELIB = $(PICLIB)
 LIBMAP = $(LIBBASE).map
-INSTALLPROG = cdb
+INSTALLPROG = cdb-shared
 
 # The following assumes GNU CC/LD -
 # used for building shared libraries only
@@ -59,7 +59,7 @@
  ChangeLog NEWS
 DEBIANFILES = debian/control debian/rules debian/copyright debian/changelog
 
-all: static
+all: shared
 static: staticlib cdb
 staticlib: $(LIB)
 nss: $(NSS_CDB)
@@ -128,6 +128,7 @@
 
 do_install = \
  while [ "$$1" ] ; do \
+   if [ ! -f $$1 ]; then shift 4; continue; fi; \
    if [ .$$4 = .- ]; then f=$$1; else f=$$4; fi; \
    d=$(DESTDIR)$$3 ; echo installing $$1 to $$d/$$f; \
    [ -d $$d ] || mkdir -p $$d || exit 1 ; \