]> git.sesse.net Git - vlc/commitdiff
contrib: 'make list' to list packages
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 4 Jul 2011 08:37:09 +0000 (11:37 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 4 Jul 2011 14:12:00 +0000 (17:12 +0300)
contrib/bootstrap
contrib/src/main.mak

index fe9978668531f4647db86af4971b7dfe9c1d5057..024ead91a22dcbca2dc67a66be84544e9c0b59ac 100755 (executable)
@@ -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
index a79d9c7c3e7e8204ca7dd684f71ffd9ae511884b..c1c65e282dbb761285ea91970a74f7119e5d28ae 100644 (file)
@@ -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) $@