aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2014-09-04 18:39:56 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-09-04 17:33:06 +0200
commit6bac453dde684f458a293481fa9d39952e44e785 (patch)
tree3f3cf6bacb041d54b5c5afdaf8cfaffa5ab9940e
parentuse variable instead of configure replacement (diff)
downloadelementary-6bac453dde684f458a293481fa9d39952e44e785.tar.gz
create elementary.pc at make time to follow GNU coding standards
-rw-r--r--Makefile.am25
-rw-r--r--configure.ac1
2 files changed, 25 insertions, 1 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 \
diff --git a/configure.ac b/configure.ac
index 8780879ed..06fd1057f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -436,7 +436,6 @@ esac
AC_CONFIG_FILES([
Makefile
elementary.spec
-elementary.pc
doc/Makefile
doc/Doxyfile
doc/widgets/Makefile