diff options
Diffstat (limited to 'assignments/Makefile')
-rw-r--r-- | assignments/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
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)/%,%,$@) |