From e0f01d68de673cc4e9fd7f6b6faa73c8ff7d0f46 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 18 Dec 2015 20:34:19 +0000 Subject: [PATCH] configure.ac: Make location of .pc overrideable FreeBSD stores them in /usr/local/libdata/pkgconfig This allows us to remove some local hooks in the process. Signed-off-by: Ruben Kerkhof Reviewed-by: Jan Friesse --- pkgconfig/Makefile.am | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/pkgconfig/Makefile.am b/pkgconfig/Makefile.am index 70fce1df..db73df3c 100644 --- a/pkgconfig/Makefile.am +++ b/pkgconfig/Makefile.am @@ -35,10 +35,16 @@ EXTRA_DIST = libtemplate.pc.in corosync.pc.in LIBS = cfg cpg quorum \ totem_pg votequorum sam cmap corosync_common +pkgconfigdir = $(libdir)/pkgconfig + target_LIBS = $(LIBS:%=lib%.pc) target_PACKAGE = corosync.pc +pkgconfig_DATA = $(target_LIBS) $(target_PACKAGE) + +CLEANFILES = $(pkgconfig_DATA) + lib%.pc: libtemplate.pc.in Makefile rm -f $@-t $@ sed \ @@ -60,15 +66,3 @@ lib%.pc: libtemplate.pc.in Makefile chmod a-w $@-t mv $@-t $@ -all-local: $(target_LIBS) $(target_PACKAGE) - -install-exec-local: $(target_LIBS) $(target_PACKAGE) - $(INSTALL) -d $(DESTDIR)/$(libdir)/pkgconfig - $(INSTALL) -m 644 $(target_LIBS) $(target_PACKAGE) $(DESTDIR)/$(libdir)/pkgconfig - -uninstall-local: - cd $(DESTDIR)/$(libdir)/pkgconfig && rm -f $(target_LIBS) $(target_PACKAGE) - rmdir $(DESTDIR)/$(libdir)/pkgconfig 2> /dev/null || : - -clean-local: - rm -f *.pc