을 생산하면 내가 가지고있는 다음은 Makefile
는 메이크 내부 조항하는 오류
#.SILENT:
#.PHONY:
SHELL := /bin/bash
################################################################
## Colordefinition
################################################################
NO_COLOR = \x1b[0m
OK_COLOR = \x1b[32;01m
ERROR_COLOR = \x1b[31;01m
%.pdf: %.tex
NAME=`basename $< .tex` ;\
echo -e "\t$(OK_COLOR)Typesetting $$NAME$(NO_COLOR)" ;\
pdflatex -draftmode -interaction=nonstopmode $< > /dev/null ;\
if [ $$? = 0 ] ; then \
echo -e "\t$(OK_COLOR)compilation in draftmode without erros$(NO_COLOR)" ;\
pdflatex -interaction=nonstopmode $< > /dev/null ;\
if [ -e $$NAME.glo ] ; then \
echo -e "$(OK_COLOR)Typesetting $$NAME.glo$(NO_COLOR)" ;\
makeindex -s gglo.ist -o $$NAME.gls $$NAME.glo ;\
fi ;\
if [ -e $$NAME.idx ] ; then \
echo -e "$(OK_COLOR)Typesetting $$NAME.idx$(NO_COLOR)" ;\
makeinde -s gind.ist $$NAME.idx ;\
fi ;\
else \
echo -e "\t$(ERROR_COLOR)compilation in draftmode with erros$(NO_COLOR)" ;\
exit 0;\
fi ;\
echo -e "\t$(OK_COLOR)Typesetting $$NAME finished $(NO_COLOR)" ;\
메이크 넣은 사람은 아니다 작업의 일부 나 오류를 찾을 수 없습니다.
make test.pdf
다음의 예는 (test.tex 그러나)를 테스트하기 위해 사용할 수 있습니다 :
\documentclass{article}
\begin{document}
Hello World!
\end{document}
어떻게 메이크 개선해야한다
내 목표는 입력하는 것입니다?
'make test.pdf '를 타이핑하는 것이 완벽하게 작동 할 것이라 확신합니다. 그러나 유용한 결과를 얻을 수는 없지만'make test.pdf '만 입력하면됩니다. 따라서, "작동하지 않는 것"이 귀하의 경우에 의미하고, "업무"가 무엇이어야하는지 정의하십시오. – thiton
@thiton : 정말 효과가 있습니까? '/ bin/bash : -c : Zeile 14 : Syntax Fehler : Unerwartetes Dateiende '라는 에러가 난다. make : *** [test.pdf] Fehler 1' Try in English :'/ bin/bash : -c : 14 행 : 구문 오류 : 예기치 않은 파일 끝. make : *** [test.pdf] Fehler 1' –
이제 오류 메시지입니다. 다음 번에 귀하의 게시물에 포함 시키십시오. 그리고 독일어를 사용하지 않는 사람들을 위해'LC_ALL = en_US make '를 사용하십시오. – thiton