Files
collection/Makefile
2025-01-31 16:52:28 +01:00

18 lines
241 B
Makefile

OUT_DIR = ./output
SRC_FILES = $(wildcard *.md)
OUT_FILES = $(SRC_FILES:.md=.pdf)
PANDOC_OPT = --standalone
.PHONY: all clean git test
all: $(OUT_FILES)
clean:
rm -f $(OUT_DIR)/*
%.pdf: %.md
pandoc $(PANDOC_OPT) $^ -o $(OUT_DIR)/$@