Created
February 12, 2021 07:51
-
-
Save pr1metine/845115d6d9075b4adcd9a79f4e1331ab to your computer and use it in GitHub Desktop.
Simple Makefile for pdflatex
This file contains 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
all: open | |
# Customize these variables to your project | |
FILENAME:= | |
LOCAL_DESTINATION:= | |
REMOTE_DESTINATION:= | |
$(FILENAME).pdf: $(FILENAME).tex | |
pdflatex $^ | |
.PHONY=open install clean | |
open: $(FILENAME).pdf | |
open $^ | |
install: $(FILENAME).pdf | |
cp $^ $(LOCAL_DESTINATION) | |
cp $^ $(REMOTE_DESTINATION) | |
clean: $(FILENAME).pdf | |
rm $^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment