[x264-devel] [PATCH 4/9] build: Split up 'install-lib-dev' into smaller subrecipes

Stephen Hutchinson qyot27 at gmail.com
Sat Apr 26 23:45:18 CEST 2014


'install-lib-headers' and 'install-lib-pc' now exist to handle
these particular tasks, allowing the use of automatic variables.
---
 Makefile | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index ca76334..19f591c 100644
--- a/Makefile
+++ b/Makefile
@@ -251,10 +251,15 @@ install-cli: x264$(EXE)
 	$(INSTALL) -d $(DESTDIR)$(bindir)
 	$(INSTALL) $< $(DESTDIR)$(bindir)
 
-install-lib-dev:
-	$(INSTALL) -d $(DESTDIR)$(includedir) $(DESTDIR)$(libdir) $(DESTDIR)$(libdir)/pkgconfig
-	$(INSTALL) -m 644 $(SRCPATH)/x264.h x264_config.h $(DESTDIR)$(includedir)
-	$(INSTALL) -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig
+install-lib-dev: install-lib-headers install-lib-pc
+
+install-lib-headers: $(SRCPATH)/x264.h x264_config.h
+	$(INSTALL) -d $(DESTDIR)$(includedir)
+	$(INSTALL) -m 644 $^ $(DESTDIR)$(includedir)
+
+install-lib-pc: x264.pc
+	$(INSTALL) -d $(DESTDIR)$(libdir) $(DESTDIR)$(libdir)/pkgconfig
+	$(INSTALL) -m 644 $< $(DESTDIR)$(libdir)/pkgconfig
 
 install-lib-static: lib-static install-lib-dev
 	$(INSTALL) -m 644 $(LIBX264) $(DESTDIR)$(libdir)
-- 
1.9.1



More information about the x264-devel mailing list