diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-25 23:28:02 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-25 23:28:02 +0200 |
commit | 129a22667006ec4f7ebca9c9d5b8e4d492103304 (patch) | |
tree | 991035d5d48d4fa3ce5774177e304d2d16dac779 /assignments/Makefile | |
parent | 4bae244f426a39951f404af8f752f715a151f20e (diff) | |
download | iot-workshop-129a22667006ec4f7ebca9c9d5b8e4d492103304.tar.gz iot-workshop-129a22667006ec4f7ebca9c9d5b8e4d492103304.tar.bz2 iot-workshop-129a22667006ec4f7ebca9c9d5b8e4d492103304.tar.xz iot-workshop-129a22667006ec4f7ebca9c9d5b8e4d492103304.zip |
wip
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)/%,%,$@) |