aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index b03db14ee..935339479 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -72,6 +72,29 @@ m4/elm_check_backend.m4 \
config.rpath \
pkgbuild/PKGBUILD
+sed_process = \
+$(SED) \
+-e 's,@VERSION\@,$(VERSION),g' \
+-e 's,@VMAJ\@,$(VMAJ),g' \
+-e 's,@prefix\@,$(prefix),g' \
+-e 's,@exec_prefix\@,$(exec_prefix),g' \
+-e 's,@libdir\@,$(libdir),g' \
+-e 's,@includedir\@,$(includedir),g' \
+-e 's,@datarootdir\@,$(datarootdir),g' \
+-e 's,@datadir\@,$(datadir),g' \
+-e 's,@pkgdatadir\@,$(pkgdatadir),g' \
+-e 's,@requirement_elm_pc\@,$(requirement_elm_pc),g' \
+-e 's,@ELEMENTARY_LIBS\@,$(ELEMENTARY_LIBS),g' \
+< $< > $@ || rm $@
+
+pc_verbose = $(pc_verbose_@AM_V@)
+pc_verbose_ = $(pc_verbose_@AM_DEFAULT_V@)
+pc_verbose_0 = @echo " PC " $@;
+
+elementary.pc: $(top_srcdir)/elementary.pc.in Makefile
+ $(AM_V_at)rm -f $@
+ $(pc_verbose)$(sed_process)
+
if HAVE_FREEBSD
pkgconfigdir = $(libdir)data/pkgconfig
else
@@ -80,6 +103,8 @@ endif
pkgconfig_DATA = elementary.pc
+CLEANFILES = elementary.pc
+
cmakeconfigdir = $(libdir)/cmake/Elementary
cmakeconfig_DATA = \
cmakeconfig/ElementaryConfig.cmake \