From 589e0723a20421181f210db15cebd9702c488ea0 Mon Sep 17 00:00:00 2001
From: Orestis <orestis.malaspinas@hesge.ch>
Date: Fri, 13 Nov 2020 23:37:13 +0100
Subject: [PATCH] updated makefile to get yq

---
 slides/Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/slides/Makefile b/slides/Makefile
index d80a9bf..50ae2dd 100644
--- a/slides/Makefile
+++ b/slides/Makefile
@@ -26,7 +26,7 @@ markdown: $(MARKDOWN)
 %.html: %.md metadata.yaml
 	pandoc -s $(OPTIONS) $(REVEALOPTIONS) -o $@ $^
 
-%.markdown: %.md metadata.yaml
+%.markdown: %.md metadata.yaml yq
 	sed '1 { /^---/ { :a N; /\n---/! ba; d} }' $< > no_header
 	grep -v -F -x -f  no_header $< > header.yaml
 	echo "---" > tmp.yaml
@@ -34,7 +34,9 @@ markdown: $(MARKDOWN)
 	cat tmp.yaml no_header > $@
 	rm no_header header.yaml tmp.yaml
 
-
+yq:
+	wget -nc https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64
+	chmod "u+x" yq_linux_amd64 
 
 deploy: all 
 	mkdir -p prog_seq_c_cours
@@ -42,4 +44,4 @@ deploy: all
 	cp *.html prog_seq_c_cours
 
 clean:
-	rm -f *.pdf *.html *.markdown
+	rm -f *.pdf *.html *.markdown yq_linux_amd64*
-- 
GitLab