update.
[elisp/apel.git] / make1.bat
1 echo off\r
2 rem MAKE1.BAT for APEL.\r
3 rem\r
4 rem Version: $Id: make1.bat,v 1.1 2001-02-01 03:19:36 minakaji Exp $\r
5 rem Last Modified: $Date: 2001-02-01 03:19:36 $\r
6 \r
7 rem --- argument\r
8 rem ---   elc : byte compile\r
9 rem ---   all, install : install\r
10 rem ---   clean : cleaning garbage file\r
11 rem ---   what-where : print where to install\r
12 rem ---\r
13 \r
14 rem --- check calling from make.bat\r
15 if not "%SUBMAKEOK%"=="OK" goto prnusage\r
16 set SUBMAKEOK=\r
17 \r
18 rem argument check\r
19 \r
20 set arg1=%1\r
21 \r
22 if "%arg1%"=="elc" goto compile\r
23 if "%arg1%"=="all" goto install\r
24 if "%arg1%"=="install" goto install\r
25 if "%arg1%"=="what-where" goto listing\r
26 if "%arg1%"=="clean" goto clean\r
27 echo Unrecognized argument: specify either 'elc', 'all',\r
28 echo 'install', 'clean' or 'what-where'.\r
29 goto pauseend\r
30 \r
31 :compile\r
32 %EMACS% -q -batch -no-site-file -l APEL-MK -f compile-apel NONE %LISPDIR% %VLISPDIR%\r
33 goto end\r
34 \r
35 :install\r
36 %EMACS% -q -batch -no-site-file -l APEL-MK -f install-apel NONE %LISPDIR% %VLISPDIR%\r
37 goto end\r
38 \r
39 :listing\r
40 %EMACS% -batch -q -no-site-file -l APEL-MK -f what-where-apel\r
41 goto end\r
42 \r
43 :clean\r
44 del *.elc\r
45 \r
46 rem --- This file should not be executed by itself. Use make.bat.\r
47 :prnusage\r
48 echo This file should not be executed by itself. Use make.bat.\r
49 \r
50 rem --- If error occurs, stay display until any key is typed.\r
51 :pauseend\r
52 echo Type any key when you're done reading the error message.\r
53 pause\r
54 \r
55 :end\r
56 \1a\r