summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-06-30 08:46:10 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-06-30 08:46:10 +0000
commita630d1b4ac1a8863e645f6e9d0ca070cc96fdcfd (patch)
treebc18bce89f2d71f54065a60d7a584eedc5009106 /Makefile.in
parent3611f5a8a5c5c62dfa26c09b58e1dfc23a2a400a (diff)
downloadlibapr-a630d1b4ac1a8863e645f6e9d0ca070cc96fdcfd.tar.gz
* Makefile.in (APR_PCFILE): New target.
(install): Install pkgconfig .pc file with -N suffix. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65242 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 7d9e437d0..74ce32c18 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -27,6 +27,7 @@ CLEAN_SUBDIRS= test
INSTALL_SUBDIRS=@INSTALL_SUBDIRS@
TARGET_LIB = lib@APR_LIBNAME@.la
+APR_PCFILE = apr-$(APR_MAJOR_VERSION).pc
#
# Rules for building specific targets, starting with 'all' for
@@ -38,7 +39,8 @@ TARGETS = $(TARGET_LIB) export_vars.c apr.exp
@INCLUDE_RULES@
@INCLUDE_OUTPUTS@
-CLEAN_TARGETS = apr-config.out apr.exp exports.c export_vars.c .make.dirs
+CLEAN_TARGETS = apr-config.out apr.exp exports.c export_vars.c .make.dirs \
+ $(APR_PCFILE)
DISTCLEAN_TARGETS = config.cache config.log config.status \
include/apr.h include/arch/unix/apr_private.h \
libtool apr-config build/apr_rules.mk apr.pc
@@ -56,7 +58,11 @@ installbuilddir=@installbuilddir@
apr-config.out: apr-config
sed 's,^\(location=\).*$$,\1installed,' < apr-config > $@
-install: $(TARGET_LIB) apr-config.out
+$(APR_PCFILE): apr.pc
+ @rm -f $@
+ cp apr.pc $@
+
+install: $(TARGET_LIB) apr-config.out $(APR_PCFILE)
if [ ! -d $(DESTDIR)$(includedir) ]; then \
$(top_srcdir)/build/mkdir.sh $(DESTDIR)$(includedir); \
fi;
@@ -73,7 +79,7 @@ install: $(TARGET_LIB) apr-config.out
if [ ! -d $(DESTDIR)$(libdir)/pkgconfig ]; then \
$(top_srcdir)/build/mkdir.sh $(DESTDIR)$(libdir)/pkgconfig; \
fi;
- cp -p apr.pc $(DESTDIR)$(libdir)/pkgconfig;
+ cp -p $(APR_PCFILE) $(DESTDIR)$(libdir)/pkgconfig
if [ ! -d $(DESTDIR)$(installbuilddir) ]; then \
$(top_srcdir)/build/mkdir.sh $(DESTDIR)$(installbuilddir); \
fi;