aboutsummaryrefslogtreecommitdiff
path: root/pkg-config/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'pkg-config/Makefile.am')
-rw-r--r--pkg-config/Makefile.am19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkg-config/Makefile.am b/pkg-config/Makefile.am
new file mode 100644
index 000000000..384c9c135
--- /dev/null
+++ b/pkg-config/Makefile.am
@@ -0,0 +1,19 @@
+MAINTAINERCLEANFILES = Makefile.in
+pkgconfigdir = $(libdir)/pkgconfig/
+pkgconfig_DATA = paludis.pc
+EXTRA_DIST = paludis.pc.in
+CLEANFILES = paludis.pc
+
+built-sources : $(BUILT_SOURCES)
+ for s in $(SUBDIRS) ; do $(MAKE) -C $$s built-sources || exit 1 ; done
+
+paludis.pc : paludis.pc.in Makefile
+ sed \
+ -e "s,#PALUDIS_PC_PREFIX#,$(prefix)," \
+ -e "s,#PALUDIS_PC_LIBDIR#,$(libdir)," \
+ -e "s,#PALUDIS_PC_INCLUDEDIR#,$(includedir)/paludis-$(PALUDIS_PC_SLOT)," \
+ -e "s,#PALUDIS_PC_VERSION#,$(PALUDIS_PC_VERSION)," \
+ -e "s,#PALUDIS_PC_LIBS#,$(PALUDIS_PC_LIBS)," \
+ -e "s,#PALUDIS_PC_CFLAGS#,$(PALUDIS_PC_CFLAGS)," \
+ < $(srcdir)/paludis.pc.in > paludis.pc
+