r12256: Add helper script for installing pkg-config files
authorJelmer Vernooij <jelmer@samba.org>
Thu, 15 Dec 2005 17:19:27 +0000 (17:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:47:25 +0000 (13:47 -0500)
source/main.mk
source/script/installpc.sh [new file with mode: 0755]

index 585265bc24a1f23d29031576113a563be373b8e4..96b365dbd22952a05c8e633992a08780e4ea563c 100644 (file)
@@ -113,7 +113,7 @@ installmisc: installdirs
        @$(SHELL) $(srcdir)/script/installmisc.sh $(srcdir) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(BINDIR)
 
 installpc: installdirs
-       @cp $(PC_FILES) $(DESTDIR)$(PKGCONFIGDIR)
+       @$(SHELL) $(srcdir)/script/installpc.sh $(srcdir) $(DESTDIR)$(PKGCONFIGDIR) $(PC_FILES)
 
 uninstall: uninstallbin uninstallman uninstallmisc uninstalllib uninstallheader
 
diff --git a/source/script/installpc.sh b/source/script/installpc.sh
new file mode 100755 (executable)
index 0000000..81ca2f8
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+# install miscellaneous files
+
+SRCDIR="$1"
+PKGCONFIGDIR="$2"
+shift
+shift
+
+cd $SRCDIR || exit 1
+
+for I in $*
+do
+       cp $I $PKGCONFIGDIR
+done
+
+exit 0