[vlc-devel] [PATCH 6/7] contrib: merge config.mak into the local build Makefile
Steve Lhomme
robux4 at ycbcr.xyz
Tue Mar 5 14:31:06 CET 2019
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.
---
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 57dffdfd6c..1a5906cb27 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
TOOLS := $(TOPSRC)/../extras/tools/build
--
2.17.1
More information about the vlc-devel
mailing list