Skip to content
Snippets Groups Projects
Commit 1a0e4a85 authored by James Vasile's avatar James Vasile
Browse files

Don't try to build files that start with .#

Those are backup files or autosave files, and they muck up the build
process, especially if they're a link to a file that doesn't exist.
parent c091f06a
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@ ifeq ("$(wildcard $(REVBIN))","")
REVBIN := $(shell find . -type f -name get_revision -print -quit)
endif
LTX=$(wildcard *.ltx)
PDFLATEX="pdflatex"
default: build-or-help
......@@ -67,8 +69,8 @@ all-drafts:
# but no content was changed, then 'latexmk' will run very quickly:
# it'll wake up, issue its cheery version-header greeting, realize
# that nothing actually needs to be done, and exit.)
LTX_SRCS := $(shell find . -name '*.ltx')
%.pdf: %.ltx $(LTX_SRCS)
LTX_SRCS := $(shell find . -name '*.ltx' ! -path './.\#*')
%.pdf: %.ltx #$(LTX_SRCS)
@latexmk -pdf -pdflatex=$(PDFLATEX) -halt-on-error $<
# This builds the draft. It can handle underscores in the jobname,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment