From 887d14dea2318f088a07be691862adbf28f388df Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Thu, 4 May 2017 11:03:53 +0200 Subject: [PATCH] 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. --- spot/Makefile.am | 6 +++--- spot/ltsmin/Makefile.am | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spot/Makefile.am b/spot/Makefile.am index 63194aeb5..e8229e8f2 100644 --- a/spot/Makefile.am +++ b/spot/Makefile.am @@ -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 diff --git a/spot/ltsmin/Makefile.am b/spot/ltsmin/Makefile.am index 728280882..fee392da7 100644 --- a/spot/ltsmin/Makefile.am +++ b/spot/ltsmin/Makefile.am @@ -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