SHA256
20 lines
471 B
Makefile
20 lines
471 B
Makefile
TYPST := typst
|
|
FONTFLAGS := --font-path report/fonts
|
|
SRCS := $(wildcard report/day*.typ)
|
|
PDFS := $(SRCS:.typ=.pdf)
|
|
DEPS := report/연구실실습일지작성양식.typ report/hy-bg.png $(wildcard report/fonts/*)
|
|
MERGED := report/day_1-5.pdf
|
|
|
|
all: $(MERGED)
|
|
|
|
$(MERGED): $(PDFS)
|
|
pdfunite $(shell ls report/day*.pdf | sort -V) $@
|
|
|
|
report/day%.pdf: report/day%.typ $(DEPS)
|
|
$(TYPST) compile $(FONTFLAGS) $< $@
|
|
|
|
clean:
|
|
rm -f $(PDFS)
|
|
|
|
.PHONY: all clean
|