libcgi: fix target install if usr/include doesn't exist
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 8 Jul 2010 11:25:09 +0000 (13:25 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 8 Jul 2010 11:25:09 +0000 (13:25 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/libcgi/libcgi.patch

diff --git a/CHANGES b/CHANGES
index 9f3d1a422050f9aeb53b1237b0ae6cd0a5b4b86d..da62f139afaf44099ca04999bc74398af8b694c1 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -17,7 +17,7 @@
        Updated/fixed packages: berkeleydb, bash, blackbox, busybox,
        bzip2, cdrkit, dash, dialog, diffutils, distcc, dmalloc,
        dnsmasq, dropbear, e2fsprogs, fbv, file, gawk, gstreamer,
-       gzip, intltool, ipsec-tools, iptables, libart, libfuse,
+       gzip, intltool, ipsec-tools, iptables, libart, libcgi, libfuse,
        libgpg-error, libidn, liblockfile, links, lmbench, lrzsz,
        make, module-init-tools, nbd, ncurses, netperf, ntfsprogs,
        openssl, php, qt, quagga, sqlite, sdl, sdl_mixer, sdl_sound,
index 5cf4915de95f65e528a7e4c52bdbbdadb58afb16..716d83cfca9d1ee568980f7c640bc2984dea22c6 100644 (file)
@@ -71,7 +71,7 @@
 -      cp src/session.h $(INCDIR)
 +      cp src/libcgi.a $(DESTDIR)/$(LIBDIR)
 +      cp src/libcgi.so $(DESTDIR)/$(LIBDIR)
-+      [ -d $(DESTDIR)/$(INCDIR) ] || mkdir $(DESTDIR)/$(INCDIR)
++      [ -d $(DESTDIR)/$(INCDIR) ] || mkdir -p $(DESTDIR)/$(INCDIR)
 +      cp src/cgi.h $(DESTDIR)/$(INCDIR)
 +      cp src/session.h $(DESTDIR)/$(INCDIR)