Fossil SCM
Another minor simplification to the MSVC makefile.
Commit
0387226c38e36305a814fe4bef2df5669dbbf96001265101d31931cd12fe9b5f
Parent
84346a317b77041…
2 files changed
+7
-4
+7
-4
+7
-4
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -1509,11 +1509,14 @@ | ||
| 1509 | 1509 | !endif |
| 1510 | 1510 | |
| 1511 | 1511 | # Perl is only necessary if OpenSSL support is enabled and it must |
| 1512 | 1512 | # be built from source code. The PERLDIR variable should point to |
| 1513 | 1513 | # the directory containing the main Perl binary (i.e. "perl.exe"). |
| 1514 | +!ifndef PERLDIR | |
| 1514 | 1515 | PERLDIR = C:\Perl\bin |
| 1516 | +!endif | |
| 1517 | + | |
| 1515 | 1518 | PERL = perl.exe |
| 1516 | 1519 | |
| 1517 | 1520 | # Enable debugging symbols? |
| 1518 | 1521 | !ifndef DEBUG |
| 1519 | 1522 | DEBUG = 0 |
| @@ -1849,18 +1852,18 @@ | ||
| 1849 | 1852 | !endif |
| 1850 | 1853 | |
| 1851 | 1854 | clean-zlib: |
| 1852 | 1855 | @pushd "$(ZLIBDIR)" && $(MAKE) /f win32\Makefile.msc clean && popd |
| 1853 | 1856 | |
| 1854 | - | |
| 1855 | 1857 | !if $(FOSSIL_ENABLE_SSL)!=0 |
| 1856 | 1858 | openssl: |
| 1857 | 1859 | @echo Building OpenSSL from "$(SSLDIR)"... |
| 1858 | -!if "$(PERLDIR)" != "" | |
| 1859 | - @set "PATH=$(PERLDIR);$(PATH)" | |
| 1860 | -!endif | |
| 1860 | +!ifdef PERLDIR | |
| 1861 | + @pushd "$(SSLDIR)" && "$(PERLDIR)\$(PERL)" Configure $(SSLCONFIG) && popd | |
| 1862 | +!else | |
| 1861 | 1863 | @pushd "$(SSLDIR)" && "$(PERL)" Configure $(SSLCONFIG) && popd |
| 1864 | +!endif | |
| 1862 | 1865 | !if $(FOSSIL_ENABLE_WINXP)!=0 |
| 1863 | 1866 | @pushd "$(SSLDIR)" && "$(MAKE)" "CC=cl $(XPCFLAGS)" "LFLAGS=$(XPLDFLAGS)" && popd |
| 1864 | 1867 | !else |
| 1865 | 1868 | @pushd "$(SSLDIR)" && "$(MAKE)" && popd |
| 1866 | 1869 | !endif |
| 1867 | 1870 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -1509,11 +1509,14 @@ | |
| 1509 | !endif |
| 1510 | |
| 1511 | # Perl is only necessary if OpenSSL support is enabled and it must |
| 1512 | # be built from source code. The PERLDIR variable should point to |
| 1513 | # the directory containing the main Perl binary (i.e. "perl.exe"). |
| 1514 | PERLDIR = C:\Perl\bin |
| 1515 | PERL = perl.exe |
| 1516 | |
| 1517 | # Enable debugging symbols? |
| 1518 | !ifndef DEBUG |
| 1519 | DEBUG = 0 |
| @@ -1849,18 +1852,18 @@ | |
| 1849 | !endif |
| 1850 | |
| 1851 | clean-zlib: |
| 1852 | @pushd "$(ZLIBDIR)" && $(MAKE) /f win32\Makefile.msc clean && popd |
| 1853 | |
| 1854 | |
| 1855 | !if $(FOSSIL_ENABLE_SSL)!=0 |
| 1856 | openssl: |
| 1857 | @echo Building OpenSSL from "$(SSLDIR)"... |
| 1858 | !if "$(PERLDIR)" != "" |
| 1859 | @set "PATH=$(PERLDIR);$(PATH)" |
| 1860 | !endif |
| 1861 | @pushd "$(SSLDIR)" && "$(PERL)" Configure $(SSLCONFIG) && popd |
| 1862 | !if $(FOSSIL_ENABLE_WINXP)!=0 |
| 1863 | @pushd "$(SSLDIR)" && "$(MAKE)" "CC=cl $(XPCFLAGS)" "LFLAGS=$(XPLDFLAGS)" && popd |
| 1864 | !else |
| 1865 | @pushd "$(SSLDIR)" && "$(MAKE)" && popd |
| 1866 | !endif |
| 1867 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -1509,11 +1509,14 @@ | |
| 1509 | !endif |
| 1510 | |
| 1511 | # Perl is only necessary if OpenSSL support is enabled and it must |
| 1512 | # be built from source code. The PERLDIR variable should point to |
| 1513 | # the directory containing the main Perl binary (i.e. "perl.exe"). |
| 1514 | !ifndef PERLDIR |
| 1515 | PERLDIR = C:\Perl\bin |
| 1516 | !endif |
| 1517 | |
| 1518 | PERL = perl.exe |
| 1519 | |
| 1520 | # Enable debugging symbols? |
| 1521 | !ifndef DEBUG |
| 1522 | DEBUG = 0 |
| @@ -1849,18 +1852,18 @@ | |
| 1852 | !endif |
| 1853 | |
| 1854 | clean-zlib: |
| 1855 | @pushd "$(ZLIBDIR)" && $(MAKE) /f win32\Makefile.msc clean && popd |
| 1856 | |
| 1857 | !if $(FOSSIL_ENABLE_SSL)!=0 |
| 1858 | openssl: |
| 1859 | @echo Building OpenSSL from "$(SSLDIR)"... |
| 1860 | !ifdef PERLDIR |
| 1861 | @pushd "$(SSLDIR)" && "$(PERLDIR)\$(PERL)" Configure $(SSLCONFIG) && popd |
| 1862 | !else |
| 1863 | @pushd "$(SSLDIR)" && "$(PERL)" Configure $(SSLCONFIG) && popd |
| 1864 | !endif |
| 1865 | !if $(FOSSIL_ENABLE_WINXP)!=0 |
| 1866 | @pushd "$(SSLDIR)" && "$(MAKE)" "CC=cl $(XPCFLAGS)" "LFLAGS=$(XPLDFLAGS)" && popd |
| 1867 | !else |
| 1868 | @pushd "$(SSLDIR)" && "$(MAKE)" && popd |
| 1869 | !endif |
| 1870 |
+7
-4
| --- win/Makefile.msc | ||
| +++ win/Makefile.msc | ||
| @@ -34,11 +34,14 @@ | ||
| 34 | 34 | !endif |
| 35 | 35 | |
| 36 | 36 | # Perl is only necessary if OpenSSL support is enabled and it must |
| 37 | 37 | # be built from source code. The PERLDIR variable should point to |
| 38 | 38 | # the directory containing the main Perl binary (i.e. "perl.exe"). |
| 39 | +!ifndef PERLDIR | |
| 39 | 40 | PERLDIR = C:\Perl\bin |
| 41 | +!endif | |
| 42 | + | |
| 40 | 43 | PERL = perl.exe |
| 41 | 44 | |
| 42 | 45 | # Enable debugging symbols? |
| 43 | 46 | !ifndef DEBUG |
| 44 | 47 | DEBUG = 0 |
| @@ -785,18 +788,18 @@ | ||
| 785 | 788 | !endif |
| 786 | 789 | |
| 787 | 790 | clean-zlib: |
| 788 | 791 | @pushd "$(ZLIBDIR)" && $(MAKE) /f win32\Makefile.msc clean && popd |
| 789 | 792 | |
| 790 | - | |
| 791 | 793 | !if $(FOSSIL_ENABLE_SSL)!=0 |
| 792 | 794 | openssl: |
| 793 | 795 | @echo Building OpenSSL from "$(SSLDIR)"... |
| 794 | -!if "$(PERLDIR)" != "" | |
| 795 | - @set "PATH=$(PERLDIR);$(PATH)" | |
| 796 | -!endif | |
| 796 | +!ifdef PERLDIR | |
| 797 | + @pushd "$(SSLDIR)" && "$(PERLDIR)\$(PERL)" Configure $(SSLCONFIG) && popd | |
| 798 | +!else | |
| 797 | 799 | @pushd "$(SSLDIR)" && "$(PERL)" Configure $(SSLCONFIG) && popd |
| 800 | +!endif | |
| 798 | 801 | !if $(FOSSIL_ENABLE_WINXP)!=0 |
| 799 | 802 | @pushd "$(SSLDIR)" && "$(MAKE)" "CC=cl $(XPCFLAGS)" "LFLAGS=$(XPLDFLAGS)" && popd |
| 800 | 803 | !else |
| 801 | 804 | @pushd "$(SSLDIR)" && "$(MAKE)" && popd |
| 802 | 805 | !endif |
| 803 | 806 |
| --- win/Makefile.msc | |
| +++ win/Makefile.msc | |
| @@ -34,11 +34,14 @@ | |
| 34 | !endif |
| 35 | |
| 36 | # Perl is only necessary if OpenSSL support is enabled and it must |
| 37 | # be built from source code. The PERLDIR variable should point to |
| 38 | # the directory containing the main Perl binary (i.e. "perl.exe"). |
| 39 | PERLDIR = C:\Perl\bin |
| 40 | PERL = perl.exe |
| 41 | |
| 42 | # Enable debugging symbols? |
| 43 | !ifndef DEBUG |
| 44 | DEBUG = 0 |
| @@ -785,18 +788,18 @@ | |
| 785 | !endif |
| 786 | |
| 787 | clean-zlib: |
| 788 | @pushd "$(ZLIBDIR)" && $(MAKE) /f win32\Makefile.msc clean && popd |
| 789 | |
| 790 | |
| 791 | !if $(FOSSIL_ENABLE_SSL)!=0 |
| 792 | openssl: |
| 793 | @echo Building OpenSSL from "$(SSLDIR)"... |
| 794 | !if "$(PERLDIR)" != "" |
| 795 | @set "PATH=$(PERLDIR);$(PATH)" |
| 796 | !endif |
| 797 | @pushd "$(SSLDIR)" && "$(PERL)" Configure $(SSLCONFIG) && popd |
| 798 | !if $(FOSSIL_ENABLE_WINXP)!=0 |
| 799 | @pushd "$(SSLDIR)" && "$(MAKE)" "CC=cl $(XPCFLAGS)" "LFLAGS=$(XPLDFLAGS)" && popd |
| 800 | !else |
| 801 | @pushd "$(SSLDIR)" && "$(MAKE)" && popd |
| 802 | !endif |
| 803 |
| --- win/Makefile.msc | |
| +++ win/Makefile.msc | |
| @@ -34,11 +34,14 @@ | |
| 34 | !endif |
| 35 | |
| 36 | # Perl is only necessary if OpenSSL support is enabled and it must |
| 37 | # be built from source code. The PERLDIR variable should point to |
| 38 | # the directory containing the main Perl binary (i.e. "perl.exe"). |
| 39 | !ifndef PERLDIR |
| 40 | PERLDIR = C:\Perl\bin |
| 41 | !endif |
| 42 | |
| 43 | PERL = perl.exe |
| 44 | |
| 45 | # Enable debugging symbols? |
| 46 | !ifndef DEBUG |
| 47 | DEBUG = 0 |
| @@ -785,18 +788,18 @@ | |
| 788 | !endif |
| 789 | |
| 790 | clean-zlib: |
| 791 | @pushd "$(ZLIBDIR)" && $(MAKE) /f win32\Makefile.msc clean && popd |
| 792 | |
| 793 | !if $(FOSSIL_ENABLE_SSL)!=0 |
| 794 | openssl: |
| 795 | @echo Building OpenSSL from "$(SSLDIR)"... |
| 796 | !ifdef PERLDIR |
| 797 | @pushd "$(SSLDIR)" && "$(PERLDIR)\$(PERL)" Configure $(SSLCONFIG) && popd |
| 798 | !else |
| 799 | @pushd "$(SSLDIR)" && "$(PERL)" Configure $(SSLCONFIG) && popd |
| 800 | !endif |
| 801 | !if $(FOSSIL_ENABLE_WINXP)!=0 |
| 802 | @pushd "$(SSLDIR)" && "$(MAKE)" "CC=cl $(XPCFLAGS)" "LFLAGS=$(XPLDFLAGS)" && popd |
| 803 | !else |
| 804 | @pushd "$(SSLDIR)" && "$(MAKE)" && popd |
| 805 | !endif |
| 806 |