"make: *** [all] Error 1" for compiling tex files
I tried to write a makefile to compile the tex file, but an error made me crazy. I have simplified my makefile like below
all: main.tex xelatex -interaction=nonstopmode ./main.tex
but the error still exists as follows.
make: *** [all] Error 1
I also tried to directly run the command in terminal:
xelatex -interaction=nonstopmode ./main.tex
I have a successful compilation. Similar errors have been found in make: *** [ ] Error 1 error and make: *** [ ] Error 1 error, but the solution does not work for me. Is there anyone could help me? Thanks.
A very dirty and useful trick is to force true in order to avoid the error and to let make continue:
$(FICTEX).pdf: $(FICTEX).aux $(BBL) $(PDFLATEX) $(FICTEX)||true $(PDFLATEX) $(FICTEX)||true