无法运行make脚本

时间:2013-03-03 23:21:51

标签: linux permissions makefile

我有以下makefile

R-CEDILLA=$(shell ./diacritice.sh)
PDFLATEX=xelatex
PDFFLAGS=-halt-on-error -interaction=nonstopmode -file-line-error
PROJECT=Dezvoltare web cu PHP
MAKEINDEX=makeindex
MAKEINDEXFLAGS=
NOMENCLATUREFLAGS=-s nomencl.ist
INDICES=abv en-ro important term

.PHONY: clean push cedilla

preview: clean preview-2ndpass
mv "$(PROJECT)-preview.pdf" "dezvoltare_web_cu_php-$(shell date +'%d_%m_%Y').pdf"
preview-1stpass: cedilla
$(PDFLATEX) $(PDFFLAGS) "$(PROJECT)-preview.tex" > error.log 2>&1 && \
$(PDFLATEX) $(PDFFLAGS) "$(PROJECT)-preview.tex" > error.log 2>&1
$(INDICES):
$(MAKEINDEX) $(MAKEINDEXFLAGS) $@.idx
preview-2ndpass: preview-1stpass $(INDICES)
$(PDFLATEX) $(PDFFLAGS) "$(PROJECT)-preview.tex" | ./filter.sh

book: clean book-1stpass $(INDICES)
$(PDFLATEX) $(PDFFLAGS) "$(PROJECT).tex" | ./filter.sh 2>&1
book-1stpass: cedilla
$(PDFLATEX) $(PDFFLAGS) "$(PROJECT).tex" > error.log 2>&1 && \
$(PDFLATEX) $(PDFFLAGS) "$(PROJECT).tex" > error.log 2>&1

tutoring: cedilla
$(PDFLATEX) $(PDFFLAGS) "Tutoring.tex" > error.log 2>&1 && \
$(MAKEINDEX) $(MAKEINDEXFLAGS) *.idx && \
$(PDFLATEX) $(PDFFLAGS) "Tutoring.tex" > error2.log 2>&1
clean:
rm -rf *.{aux,log,out,loe,ilg,ind,idx}
find . -type f -name "*~" -exec rm {} \;
find . -type f -name "*.aux" -exec rm {} \;
rm -rf *.{toc,pdf}
push:
git co stable && git push && git co integration && git merge stable && git push
cedilla:
$(R-CEDILLA)

我尝试运行但得到以下错误

 root@ubuntu:~/Downloads/phpro-book# make
 rm -rf *.{aux,log,out,loe,ilg,ind,idx}
 find . -type f -name "*~" -exec rm {} \;
 find . -type f -name "*.aux" -exec rm {} \;
 rm -rf *.{toc,pdf}
 make: execvp: ./diacritice.sh: Permission denied
 xelatex -halt-on-error -interaction=nonstopmode -file-line-error "Dezvoltare web cu      PHP-preview.tex" > error.log 2>&1 && \
xelatex -halt-on-error -interaction=nonstopmode -file-line-error "Dezvoltare web      cu PHP-preview.tex" > error.log 2>&1
 make: *** [preview-1stpass] Error 1
 root@ubuntu:~/Downloads/phpro-book# 

有谁知道为什么?谢谢! 我提到我安装了Latex。并在终端中以root身份登录。 这应该将一些tex文件编译成pdf。

0 个答案:

没有答案