diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-26 19:02:41 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-26 19:02:41 +0200 |
commit | 09be8a0d1b07dc55a55fea52365c774398658d7d (patch) | |
tree | 3eb8fcd1540b64256cb445cc8c8dbd1e5582a0ae /assignments/Makefile | |
parent | 129a22667006ec4f7ebca9c9d5b8e4d492103304 (diff) | |
download | iot-workshop-09be8a0d1b07dc55a55fea52365c774398658d7d.tar.gz iot-workshop-09be8a0d1b07dc55a55fea52365c774398658d7d.tar.bz2 iot-workshop-09be8a0d1b07dc55a55fea52365c774398658d7d.tar.xz iot-workshop-09be8a0d1b07dc55a55fea52365c774398658d7d.zip |
wip
Diffstat (limited to 'assignments/Makefile')
-rw-r--r-- | assignments/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/assignments/Makefile b/assignments/Makefile index 24208f2..864864e 100644 --- a/assignments/Makefile +++ b/assignments/Makefile @@ -1,13 +1,17 @@ -AS=blink-a-led +AS=blink-a-led mqtt PDFS=$(foreach A,$(AS),$(A)/$(A).pdf) all: README.pdf $(PDFS) README.pdf: README.md -$(eval $(foreach A,$(AS),$(A)/$(A).pdf: $(A)/$(A).md)) +define A_PATTERN +$(1)/$(1).pdf: $(1)/$(1).md +endef +$(eval $(foreach A,$(AS),$(call $(A_PATTERN),$(A)))) %.pdf: %.md - cd $(dir $<); pandoc $(notdir $<) -o $(notdir $@) + @echo pandoc $< + @cd $(dir $<); pandoc $(notdir $<) -o $(notdir $@) #$(patsubst )/%,%,$<) -o $(patsubst $(DIR)/%,%,$@) |