!MESSAGE configuration name: $(CONFIG_NAME_LIB)
+# Note these directories are removed by this makefile's 'clean' so they should
+# not be changed to point to user-specified directories that may contain other
+# data. MakefileBuild.vc uses the same variable names but allows some user
+# changes and therefore does not remove the directories.
BUILD_DIR=../builds/$(CONFIG_NAME_LIB)
LIBCURL_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-lib
CURL_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-curl
FOR %%i IN ($(CURLX_CFILES:/=\)) DO copy %%i ..\src\
clean:
+ @if exist $(LIBCURL_DIROBJ) rd /s /q $(LIBCURL_DIROBJ)
+ @if exist $(CURL_DIROBJ) rd /s /q $(CURL_DIROBJ)
+ @if exist $(DIRDIST) rd /s /q $(DIRDIST)
$(MAKE) /NOLOGO /F MakefileBuild.vc $@
\r
!ENDIF # End of case where a config was provided.\r
\r
+# Makefile.vc's clean removes (LIB)CURL_DIROBJ and DIRDIST dirs then calls\r
+# this clean. Note those are the original directories we control and not the\r
+# directories possibly modified by this makefile to point to user-specified\r
+# directories.\r
+# For example, don't remove DIRDIST here since it may contain user files if it\r
+# has been changed by WITH_PREFIX to a different output dir (eg C:\usr\local).\r
clean:\r
@-erase /s *.dll 2> NUL\r
@-erase /s *.exp 2> NUL\r
@-erase /s *.pch 2> NUL\r
@-erase /s *.pdb 2> NUL\r
@-erase /s *.res 2> NUL\r
- @if exist $(LIB_DIROBJ) rd /s/q $(LIB_DIROBJ)\r
- @if exist $(CURL_DIROBJ)rd /s/q $(CURL_DIROBJ)\r
- @if exist $(DIRDIST) rd /s/q $(DIRDIST)\r