mirror of https://github.com/c3d2/slidenado/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
575 B
23 lines
575 B
PRESENTATIONS=$(patsubst %.tex, %.pdf, $(wildcard presentations/*.tex)) |
|
BUILD_DIR=build |
|
BUILD_DECKS=$(subst presentations, presentations/$(BUILD_DIR), $(wildcard presentations/content/*)) |
|
LATEX=pdflatex -output-directory $(BUILD_DIR) |
|
|
|
all: ${PRESENTATIONS} |
|
|
|
clean: |
|
rm -fr presentations/$(BUILD_DIR) |
|
|
|
distclean: clean |
|
rm -f presentations/*.pdf |
|
|
|
.SECONDARY: $(BUILD_DECKS) |
|
presentations/$(BUILD_DIR)/%: |
|
mkdir -p $@ |
|
|
|
.ONESHELL: |
|
presentations/%.pdf : presentations/%.tex $(BUILD_DECKS) |
|
cd presentations |
|
$(LATEX) $(notdir $<) |
|
$(LATEX) $(notdir $<) |
|
mv $(BUILD_DIR)/$*.pdf .
|
|
|