Skip to content

Commit

Permalink
Removed extra compiler run for files without article citation
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaDmitryuk committed Mar 22, 2023
1 parent 9200ca2 commit 917fb0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ diploma presentation:

%.pdf: %.tex
$(LATEX_COMPILER) $(LATEX_COMPILER_FLAGS) $*
@if grep -r "citation{.*}" $*.aux; then \
@if (grep "citation{.*}" $*.aux > /dev/null); then \
$(BIBLIO_COMPILER) $(BIBLIO_COMPILER_FLAGS) $*; \
$(LATEX_COMPILER) $(LATEX_COMPILER_FLAGS) $*; \
fi
$(LATEX_COMPILER) $(LATEX_COMPILER_FLAGS) $*
$(LATEX_COMPILER) $(LATEX_COMPILER_FLAGS) $*

clean:
$(RM) $(FILES_TO_BUILD) $(LOG_FILES) $(TEMPORARY_FILES)
Expand Down

0 comments on commit 917fb0a

Please sign in to comment.