From 6a0bd6ce8b22127a84bffd4b8256e1433d254024 Mon Sep 17 00:00:00 2001
From: Benjamin Kircher <kircher@otris.de>
Date: Tue, 8 Sep 2015 16:22:39 +0200
Subject: [PATCH] winbuild: run buildconf.bat if necessary

---
 winbuild/Makefile.vc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/winbuild/Makefile.vc b/winbuild/Makefile.vc
index 5b726cd57d..5653232d22 100644
--- a/winbuild/Makefile.vc
+++ b/winbuild/Makefile.vc
@@ -182,6 +182,9 @@ CURL_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-curl
 DIRDIST = ..\builds\$(CONFIG_NAME_LIB)\
 
 $(MODE):
+	@IF NOT EXIST ..\include\curl\curlbuild.h ( \
+	   CALL ..\buildconf.bat \
+	)
 	@SET DIROBJ=$(LIBCURL_DIROBJ)
 	@SET MACRO_NAME=LIBCURL_OBJS
 	@SET OUTFILE=LIBCURL_OBJS.inc
-- 
GitLab