summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--Makefile15
2 files changed, 10 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
index 8983c58..bca55f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-/assignments/**/*.pdf
-/assignments/**/*.zip
+3431709-*.pdf
+3431709-*.tar.gz
diff --git a/Makefile b/Makefile
index 7289df1..03a5797 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
MD_FILE = assignments/1/README.md
-PDF_FILE = assignments/1/3431709-assignment-1.pdf
-ZIP_FILE = assignments/1/3431709-assignment-1.zip
+PDF_FILE = 3431709-assignment-1.pdf
+TAR_FILE = 3431709-assignment-1.tar.gz
-all: pdf zip
+all: pdf tarball
pdf: $(PDF_FILE)
@@ -11,15 +11,16 @@ $(PDF_FILE): $(MD_FILE)
--pdf-engine=pdflatex \
--variable=geometry:margin=1in \
--variable=fontsize:11pt \
+ --variable=header-includes:'\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\DeclareUnicodeCharacter{03C1}{\ensuremath{\rho}}\DeclareUnicodeCharacter{2264}{\ensuremath{\leq}}\DeclareUnicodeCharacter{2265}{\ensuremath{\geq}}\DeclareUnicodeCharacter{2080}{\ensuremath{_0}}\DeclareUnicodeCharacter{2248}{\ensuremath{\approx}}\DeclareUnicodeCharacter{2212}{\ensuremath{-}}\DeclareUnicodeCharacter{03B1}{\ensuremath{\alpha}}\DeclareUnicodeCharacter{03B2}{\ensuremath{\beta}}\DeclareUnicodeCharacter{03BB}{\ensuremath{\lambda}}\DeclareUnicodeCharacter{03BC}{\ensuremath{\mu}}\DeclareUnicodeCharacter{03A3}{\ensuremath{\Sigma}}' \
--toc \
--number-sections
-zip: $(ZIP_FILE)
+tarball: $(TAR_FILE)
-$(ZIP_FILE): $(PDF_FILE)
- cd assignments/1 && zip -r 3431709-assignment-1.zip . -x "*.zip" ".DS_Store"
+$(TAR_FILE): $(PDF_FILE)
+ tar -czvf $(TAR_FILE) assignments/1
clean:
- rm -f $(PDF_FILE) $(ZIP_FILE)
+ rm -f $(PDF_FILE) $(TAR_FILE)
rebuild: clean all