[vlc-commits] contrib: merge config.mak into the local build Makefile

Steve Lhomme git at videolan.org
Mon May 20 11:49:38 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Mar  5 09:46:57 2019 +0100| [282c1827126668442ece5819ac91de4755876b04] | committer: Steve Lhomme

contrib: merge config.mak into the local build Makefile

Editing main.mak requires a bootstrap call on Windows because ln -s makes a
hard copy of the file. With a local Makefile we can make changes and they are
used right away as on other platforms.

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

 contrib/bootstrap    | 10 ++++++----
 contrib/src/main.mak |  5 -----
 2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/contrib/bootstrap b/contrib/bootstrap
index 96c59f71fa..d7f92c30e3 100755
--- a/contrib/bootstrap
+++ b/contrib/bootstrap
@@ -164,8 +164,9 @@ fi
 #
 # Prepare files
 #
-echo "Creating configuration file... config.mak"
-exec 3>config.mak || exit $?
+echo "Creating makefile..."
+test -e Makefile && unlink Makefile
+exec 3>Makefile || exit $?
 cat >&3 << EOF
 # This file was automatically generated.
 # Any change will be overwritten if ../bootstrap is run again.
@@ -380,8 +381,9 @@ esac
 #
 # Results output
 #
-test -e Makefile && unlink Makefile
-ln -sf ../../contrib/src/main.mak Makefile || exit $?
+echo TOPSRC = .. >> Makefile
+echo TOPDST = . >> Makefile
+echo include $\(TOPSRC\)/src/main.mak >> Makefile
 echo "Bootstrap completed."
 make help
 mkdir -p ../../contrib/tarballs || exit $?
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 9ddb083ab0..e5e8e68899 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -5,11 +5,6 @@
 
 all: install
 
-# bootstrap configuration
-include config.mak
-
-TOPSRC ?= ../../contrib
-TOPDST ?= ..
 SRC := $(TOPSRC)/src
 TARBALLS := $(TOPSRC)/tarballs
 



More information about the vlc-commits mailing list