$NetBSD: patch-ad,v 1.3 2010/02/10 21:56:41 asau Exp $

Fix path to include files.
Split install target.

--- packages/Makefile.in.orig	2010-01-10 16:53:32.000000000 +0300
+++ packages/Makefile.in	2010-01-19 02:29:05.000000000 +0300
@@ -36,7 +36,7 @@
 PLARCH=@ARCH@
 PLLDFLAGS=@LDFLAGS@
 PLDIR=$(shell dirname `pwd`)
-PLINCL=$(PLDIR)/include
+PLINCL=$(PLDIR)/src
 LIBDIR=$(PLDIR)/lib/$(PLARCH)
 PLSHARED=@PLSHARED@
 INSTALL=@INSTALL@
@@ -83,6 +83,8 @@
 	for p in $(PKG); do \
 	    if [ -r $$p/Makefile ]; then ( cd $$p && $(MAKE) $@ ) || exit 1; fi; \
         done
+
+post-install::
 	@echo "*** Forcing update of library index ***"
 	rm -f $(DESTDIR)$(PLLIB)/INDEX.pl
 	./pl.sh -f none -g "make_library_index('$(DESTDIR)$(PLLIB)')" -t halt
