[vlc-commits] Makefile: fix prerequisites

Rémi Denis-Courmont git at videolan.org
Sun Sep 27 21:35:18 CEST 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Sep 27 22:31:49 2020 +0300| [c708d15a26193ba2c89126e880257930028321f2] | committer: Rémi Denis-Courmont

Makefile: fix prerequisites

We cannot write suffix rules with dependencies that way. Fortunately,
there is only one usage of each of the 3 affected rules. This fixes the
GNU/make warning:
    "warning: ignoring prerequisites on suffix rule definition"

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c708d15a26193ba2c89126e880257930028321f2
---

 lib/Makefile.am | 2 +-
 src/Makefile.am | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/Makefile.am b/lib/Makefile.am
index 15763fb97a..26e8851b3f 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -77,7 +77,7 @@ endif
 
 pkgconfig_DATA = libvlc.pc
 
-.pc.in.pc: $(top_builddir)/config.status
+libvlc.pc: libvlc.pc.in $(top_builddir)/config.status
 	$(AM_V_GEN)cd "$(top_builddir)" && \
 	$(SHELL) ./config.status --file="lib/$@"
 
diff --git a/src/Makefile.am b/src/Makefile.am
index 73ff1b4934..3e2d18ad8a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -153,7 +153,7 @@ pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = vlc-plugin.pc
 CLEANFILES += $(pkgconfig_DATA)
 
-.pc.in.pc: $(top_builddir)/config.status
+vlc-plugin.pc: vlc-plugin.pc.in $(top_builddir)/config.status
 	$(AM_V_GEN)cd "$(top_builddir)" && \
 	$(SHELL) ./config.status --file="src/$@"
 
@@ -166,7 +166,7 @@ noinst_DATA = libvlc_win32_rc.rc
 endif
 EXTRA_DIST += libvlc_win32_rc.rc.in
 
-.rc.in.rc: $(top_builddir)/config.status
+libvlc_win32_rc.rc: libvlc_win32_rc.rc.in $(top_builddir)/config.status
 	cd "$(top_builddir)" && \
 	$(SHELL) ./config.status --file="src/$@"
 



More information about the vlc-commits mailing list