"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

Need Your Help

Identifying voice as male or female

php audio artificial-intelligence voice

I'm not much into audio engineering, so please be easy on me. I'm receiving an audio file as input, and need to detect whether the speaker is male or female. Any ideas how to go about doing this?

Repopulate form_upload after validation in CodeIgniter


I have problem with repopulating form_upload after validation. Other input fields or selectboxes are repopulated with values, but it's not the case of upload input field. Is it possible somehow or ...