Commit 887d14de authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz

fix libspot.pc and libspotltsmin.pc generation

Report from Jeroen Meijer.

* spot/Makefile.am (libspot.pc): Depends on Makefile.  Use a
temporary.  Declare in CLEANFILES instead of DISTCLEANFILES.
* spot/ltsmin/Makefile.am (libspotltsmin.pc): Likewise.
parent 800db9c2
......@@ -54,12 +54,12 @@ EXTRA_DIST = $(srcdir)/libspot.pc.in
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = libspot.pc
libspot.pc: $(srcdir)/libspot.pc.in
libspot.pc: $(srcdir)/libspot.pc.in Makefile
sed -e 's![@]prefix[@]!$(prefix)!g' \
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
-e 's![@]includedir[@]!$(includedir)!g' \
-e 's![@]libdir[@]!$(libdir)!g' \
-e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!g' \
$(srcdir)/libspot.pc.in > $@
$(srcdir)/libspot.pc.in > $@.tmp && mv $@.tmp $@
DISTCLEANFILES = libspot.pc
CLEANFILES = libspot.pc
......@@ -40,12 +40,12 @@ EXTRA_DIST = $(srcdir)/libspotltsmin.pc.in
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = libspotltsmin.pc
libspotltsmin.pc: $(srcdir)/libspotltsmin.pc.in
libspotltsmin.pc: $(srcdir)/libspotltsmin.pc.in Makefile
sed -e 's![@]prefix[@]!$(prefix)!g' \
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
-e 's![@]includedir[@]!$(includedir)!g' \
-e 's![@]libdir[@]!$(libdir)!g' \
-e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!g' \
$(srcdir)/libspotltsmin.pc.in > $@
$(srcdir)/libspotltsmin.pc.in > $@.tmp && mv $@.tmp $@
DISTCLEANFILES = libspotltsmin.pc
CLEANFILES = libspotltsmin.pc
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment