started writing a Makefile

This commit is contained in:
scbj
2025-01-31 16:52:28 +01:00
parent e0a934821e
commit b599fdd905
4 changed files with 29 additions and 0 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
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)/$@