From 129a22667006ec4f7ebca9c9d5b8e4d492103304 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 25 Apr 2018 23:28:02 +0200 Subject: wip --- assignments/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'assignments/Makefile') diff --git a/assignments/Makefile b/assignments/Makefile index c7ae828..24208f2 100644 --- a/assignments/Makefile +++ b/assignments/Makefile @@ -1,5 +1,13 @@ -AS=01-blink-a-led +AS=blink-a-led -BASEDIR=$(CURDIR) +PDFS=$(foreach A,$(AS),$(A)/$(A).pdf) -include $(patsubst %,%/Makefile,$(AS)) +all: README.pdf $(PDFS) + +README.pdf: README.md +$(eval $(foreach A,$(AS),$(A)/$(A).pdf: $(A)/$(A).md)) + +%.pdf: %.md + cd $(dir $<); pandoc $(notdir $<) -o $(notdir $@) + +#$(patsubst )/%,%,$<) -o $(patsubst $(DIR)/%,%,$@) -- cgit v1.2.3