[x264-devel] [PATCH 2/4] build: Do not let the install-cli target depend on a phony target

Diego Biurrun diego at biurrun.de
Tue Apr 15 23:12:00 CEST 2014


Real dependencies are preferable to phony ones where possible.
This also allows simplifying a recipe line with an automatic variable.
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index a2bc0dc..c128553 100644
--- a/Makefile
+++ b/Makefile
@@ -245,9 +245,9 @@ clean:
 distclean: clean
 	rm -f config.mak x264_config.h config.h config.log x264.pc x264.def
 
-install-cli: cli
+install-cli: x264$(EXE)
 	$(INSTALL) -d $(DESTDIR)$(bindir)
-	$(INSTALL) x264$(EXE) $(DESTDIR)$(bindir)
+	$(INSTALL) $< $(DESTDIR)$(bindir)
 
 install-lib-dev:
 	$(INSTALL) -d $(DESTDIR)$(includedir)
-- 
1.8.3.2



More information about the x264-devel mailing list