From 5ebb35a3be33cff4e54322c2d83b09ed70856b96 Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 15 Sep 2025 15:50:21 -0600 Subject: chore: generate a tarball --- Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3