diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/templates/candidate/nomake.cmd')
-rw-r--r-- | Master/texmf-dist/doc/latex/disser/templates/candidate/nomake.cmd | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/disser/templates/candidate/nomake.cmd b/Master/texmf-dist/doc/latex/disser/templates/candidate/nomake.cmd index 542e4e15259..39d5656ea50 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/candidate/nomake.cmd +++ b/Master/texmf-dist/doc/latex/disser/templates/candidate/nomake.cmd @@ -1,25 +1,40 @@ @echo off +rem Makefile for documents and templates +rem Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com> + set latexnmk=call ..\..\include\latex.nmk.cmd -if "%1"=="help" ( +if "%1"=="" ( + %latexnmk% +) else ( + for %%f in (%*) do if "%%f"=="help" ( + call :%%f + ) else if "%%f"=="all" ( + call :%%f + ) else if "%%f"=="allpdf" ( + call :%%f + ) else ( + %latexnmk% %%f + ) +) + +exit /b + :help - %latexnmk% %1 - echo all build DVI of autoref and thesis - echo allpdf build PDF of autoref and thesis + echo all build DVI of autoref and thesis + echo allpdf build PDF of autoref and thesis + %latexnmk% help goto :eof -) else if "%1"=="all" ( + :all set target=thesis & %latexnmk% dvi set target=autoref & %latexnmk% dvi set target= goto :eof -) else if "%1"=="allpdf" ( + :allpdf set target=thesis & %latexnmk% pdf set target=autoref & %latexnmk% pdf set target= goto :eof -) else ( - %latexnmk% %* -) |