Created
February 14, 2018 10:19
-
-
Save dorchard/f9bd837e2b0dfdc159bf7d3d2825aa94 to your computer and use it in GitHub Desktop.
A script that generates a simple makefile (with no dependency tracking) for latex / bibtex that I use all the time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| default: quick | |
| quick: | |
| pdflatex paper.tex | |
| full: | |
| pdflatex paper.tex | |
| bibtex paper | |
| pdflatex paper.tex | |
| pdflatex paper.tex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Usage: | |
| # makemakefile | |
| # creates Makefile in the current directory for paper.tex | |
| # makemakefile name | |
| # creates Makefile in the current directory for name.tex | |
| cp ~/.local/bin/Makefile.template . | |
| if [ $# -eq 1 ] | |
| then | |
| sed s/paper/$1/ Makefile.template >Makefile | |
| rm Makefile.template | |
| else | |
| mv Makefile.template Makefile | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment