aboutsummaryrefslogtreecommitdiff
path: root/assignments/Makefile
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-04-25 23:28:02 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-04-25 23:28:02 +0200
commit129a22667006ec4f7ebca9c9d5b8e4d492103304 (patch)
tree991035d5d48d4fa3ce5774177e304d2d16dac779 /assignments/Makefile
parent4bae244f426a39951f404af8f752f715a151f20e (diff)
downloadiot-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/Makefile14
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)/%,%,$@)