Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 4e2ca96

Browse files
committed
feat: add dist to create release for lectures
1 parent b1ed943 commit 4e2ca96

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
lectures := $(shell find -type d -name 'lecture-*')
22

3-
.PHONY = clean
3+
.PHONY = clean dist
44

55
all: $(lectures:%=%/main.pdf)
66

7+
dist: $(lectures:%=%/main.pdf)
8+
$(foreach lecture,$(lectures:%=%),cp $(lecture)/main.pdf $(lecture).pdf;)
9+
tar cvfz lectures.tar.gz $(lectures:%=%.pdf)
10+
rm $(lectures:%=%.pdf)
11+
712
$(lectures:%=%/main.pdf): $(lectures:%=%/main.tex)
813
@echo "building $@"
914
cd $(dir $@) && latexmk

0 commit comments

Comments
 (0)