[vlc-commits] contrib: 'make list' to list packages

Rémi Denis-Courmont git at videolan.org
Mon Jul 4 16:43:43 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul  4 11:37:09 2011 +0300| [44b51330e420b7af111833adf7f2d77eb45278e6] | committer: Rémi Denis-Courmont

contrib: 'make list' to list packages

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

 contrib/bootstrap    |    3 ++-
 contrib/src/main.mak |   18 ++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/contrib/bootstrap b/contrib/bootstrap
index fe99786..024ead9 100755
--- a/contrib/bootstrap
+++ b/contrib/bootstrap
@@ -190,6 +190,7 @@ Other targets:
  * make fetch        fetch required source tarballs
  * make fetch-all    fetch all source tarballs
  * make distclean    clean everything and undo bootstrap
- * make clean        clean everything
  * make mostlyclean  clean everything except source tarballs
+ * make clean        clean everything
+ * make list         list packages
 EOF
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index a79d9c7..c1c65e2 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -230,6 +230,24 @@ package: install
 	(cd $(PREFIX)/.. && \
 	tar cvJ $(notdir $(PREFIX))/) > ../vlc-contrib-$(HOST)-$(DATE).tar.xz
 
+list:
+	@echo All packages:
+	@echo '  $(PKGS_ALL)' | fmt
+	@echo Distribution-provided packages:
+	@echo '  $(PKGS_FOUND)' | fmt
+	@echo Automatically selected packages:
+	@echo '  $(PKGS_AUTOMATIC)' | fmt
+	@echo Manually deselected packages:
+	@echo '  $(PKGS_DISABLE)' | fmt
+	@echo Manually selected packages:
+	@echo '  $(PKGS_ENABLE)' | fmt
+	@echo Depended-on packages:
+	@echo '  $(PKGS_DEPS)' | fmt
+	@echo To-be-built packages:
+	@echo '  $(PKGS)' | fmt
+
+.PHONY: all fetch fetch-all install mostlyclean clean distclean package list
+
 # CMake toolchain
 toolchain.cmake:
 	$(RM) $@



More information about the vlc-commits mailing list