make.bat 2.12 KB
Newer Older
1
@echo off
2
3
:: Usage: ./make.sh [keyword=argument ...] <command>
:: See the Makefile for the list of acceptable keyword arguments
4
5
6

set here=%~dp0
set header_lisp=header.lisp
7
8
set driver_lisp=uiop\package.lisp + uiop\common-lisp.lisp + uiop\utility.lisp + uiop\os.lisp + uiop\pathname.lisp + uiop\filesystem.lisp + uiop\stream.lisp + uiop\image.lisp + uiop\run-program.lisp + uiop\lisp-build.lisp + uiop\configuration.lisp + uiop\backward-driver.lisp + uiop\driver.lisp
set defsystem_lisp=upgrade.lisp + component.lisp + system.lisp + cache.lisp + find-system.lisp + find-component.lisp + operation.lisp + action.lisp + lisp-action.lisp + plan.lisp + operate.lisp + output-translations.lisp + source-registry.lisp + parse-defsystem.lisp + bundle.lisp + concatenate-source.lisp + package-inferred-system.lisp + backward-internals.lisp + backward-interface.lisp + interface.lisp + user.lisp + footer.lisp
9
10
11
12

%~d0
cd %~p0

13
14
15
16
17
18
19
if "%~1"=="" goto all
if "%~1"=="all" goto all
if "%~1"=="build_asdf" goto build_asdf
if "%~1"=="ext" goto ext
if "%~1"=="noext" goto noext
if "%~1"=="driver_files" goto driver_files
if "%~1"=="defsystem_files" goto defsystem_files
20

21
22
call %0 build_asdf
%here%\tools\asdf-tools.bat env %*
23
24
25
26
27
28
goto :end


:all
:: Default action: bootstrap asdf.lisp

29
:build_asdf
30
31
32
:: That's the only thing that we really need before we may invoke asdf-builder.
 if not exist build mkdir build
 set a=build\asdf.lisp
33
 copy /y /b %header_lisp% + %driver_lisp% + %defsystem_lisp% %a%.tmp > nul
34
35
36
37
38
39
40
41
 if not exist %a% goto clobber
 fc /b /0 %a%.tmp %a% > nul
 if errorlevel 1 goto clobber
 del /f /q %a%.tmp
 goto end

:clobber
 if exist %a% del /f /q %a%
42
 rename %a%.tmp asdf.lisp
43
44
45
46
47
48
49
50
51
52
53
54
 goto end

:ext
:: Download all the development-time dependencies of ASDF:
 git submodule update --init
 goto end

:noext
:: Remove all the development-time dependencies of ASDF:
 git submodule deinit .
 goto end

55
:driver_files
56
57
58
59
:: These targets are used during tests to ensure the Makefile is in synch with the .asd files.
 echo %driver_lisp%
 goto end

60
:defsystem_files
61
62
63
64
65
:: These targets are used during tests to ensure the Makefile is in synch with the .asd files.
 echo %defsystem_lisp%
 goto end

:end