From d4ec265fcdc44fbf115d0b4ecb17ae6e708ea3f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 15 Nov 2021 20:07:00 +0100 Subject: =?UTF-8?q?izbolj=C5=A1al=20make=20sistem.=20potrebno=20=C4=8De=20?= =?UTF-8?q?implementati=20dokument.tex=20v=20make?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0dfb3ff..b75bf65 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,13 @@ -dirs := $(subst /Makefile,,$(wildcard */Makefile)) -.PHONY: clean default $(dirs) -default: $(dirs) +dirs := $(subst " . "," ",$(subst /Makefile,,$(shell find -name Makefile))) +pdfs := $(subst .md,.pdf,$(shell find -name *.md)) +.PHONY: clean default +default: $(dirs) $(pdfs) $(dirs): $(MAKE) -C $@ +%.pdf: %.md + pandoc -V geometry:margin=1cm $< -o $@ clean: for dir in $(dirs); do \ $(MAKE) -C $$dir clean; \ done + rm -rf $(pdfs) -- cgit v1.2.3