[vlc-devel] [PATCH 10/10] contrib: add an extract phase to extract all the sources that will be built

Steve Lhomme robux4 at ycbcr.xyz
Mon Jul 6 15:14:12 CEST 2020


This is convenient for Windows builds with PDB. It allows extracting all
the sources to see the debugged sources without having to build them.
---
 contrib/src/help.txt | 1 +
 contrib/src/main.mak | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/contrib/src/help.txt b/contrib/src/help.txt
index d64ca8ef2c8..be8d8de1532 100644
--- a/contrib/src/help.txt
+++ b/contrib/src/help.txt
@@ -4,6 +4,7 @@ Other targets:
  * make install      same as "make"
  * make prebuilt     fetch and install prebuilt binaries
  * make list         list packages
+ * make extract      fetch and extract required source tarballs
  * make fetch        fetch required source tarballs
  * make fetch-all    fetch all source tarballs
  * make distclean    clean everything and undo bootstrap
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 84e2fd48ab4..ac553d2d81f 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -480,7 +480,8 @@ PKGS := $(sort $(PKGS_MANUAL) $(PKGS_DEPS))
 
 fetch: $(PKGS:%=.sum-%)
 fetch-all: $(PKGS_ALL:%=.sum-%)
-install: fetch $(PKGS:%=.%)
+extract: fetch $(PKGS)
+install: extract $(PKGS:%=.%)
 
 mostlyclean:
 	-$(RM) $(foreach p,$(PKGS_ALL),.$(p) .sum-$(p) .dep-$(p))
@@ -546,7 +547,7 @@ list:
 help:
 	@cat $(SRC)/help.txt
 
-.PHONY: all fetch fetch-all install mostlyclean clean distclean package list help prebuilt
+.PHONY: all fetch fetch-all extract install mostlyclean clean distclean package list help prebuilt
 
 CMAKE_SYSTEM_NAME =
 ifdef HAVE_WIN32
-- 
2.26.2



More information about the vlc-devel mailing list