extras/tools: Allow some packages to be built as dependencies only
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 13 Jul 2018 09:54:26 +0000 (11:54 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 13 Jul 2018 10:03:17 +0000 (12:03 +0200)
extras/tools/bootstrap

index df29cb6..d9455be 100755 (executable)
@@ -145,7 +145,7 @@ check_nasm 2.13.01
 check gettext
 check help2man
 
-[ -n "$NEEDED" ] && mkdir -p build/ && echo "To-be-built packages: $NEEDED"
+DEPS_ONLY="help2man"
 
 CPUS=
 case `uname` in
@@ -179,9 +179,18 @@ done
 
 for t in $NEEDED; do
     echo .$t: .build$t >> Makefile
-    TARGETS="$TARGETS .build$t"
+    case "$t" in
+        *$DEPS_ONLY*)
+            ;; # Dependency only, not build by default
+        *)
+            PACKAGES="$PACKAGES $t"
+            TARGETS="$TARGETS .build$t"
+            ;;
+    esac
 done
 
+[ -n "$PACKAGES" ] && mkdir -p build/ && echo "To-be-built packages: $PACKAGES"
+
 cat >> Makefile << EOF
 all: $TARGETS
        @echo "You are ready to build VLC and its contribs"