Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This makefile uses pdflatex instead of latexmk, which will only compile tex files that has changed.
- # This makefile works great with dropbox or other online storage services.
- # If there is no need to merge all the files, comment out line 13.
- # list all the tex files
- texfiles = $(shell echo *.tex)
- # change all the suffix into pdf
- output = $(texfiles:.tex=.pdf)
- # build requires all the pdf files
- all: $(output)
- # merge all the pdf files
- pdfjoin $(output) -o merge.pdf
- # remove all the other files
- rm *.aux *.log
- # all pdf files depends on tex file with same name
- %.pdf: %.tex
- # use pdflatex to generate pdf. the $< means all the first dependency
- pdflatex $<
- clean:
- rm *.pdf *.aux *.log
Add Comment
Please, Sign In to add comment