]> piware.de Git - talk-cockpit-auth-anywhere.git/blobdiff - Makefile
Refinements
[talk-cockpit-auth-anywhere.git] / Makefile
index 9e2846744219e8f1a57d0bf067e2c138faf0fd04..63c7b939e11f571d5cd5502a3d6061772f2216ed 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,22 @@
 cockpit-auth-anywhere.pdf: cockpit-auth-anywhere.md
        pandoc -t beamer -o $@ $<
+       sed '/setbeameroption/ s/{.*notes/{show only notes/' cockpit-auth-anywhere.md | pandoc -t beamer -o cockpit-auth-anywhere-notes.pdf -
 
 clean:
-       rm -f cockpit-auth-anywhere.pdf
+       rm -f cockpit-auth-anywhere.pdf cockpit-auth-anywhere-notes.pdf
 
 # install the necessary tools to build this presentation
 deps:
-       sudo dnf install -y pandoc texlive-beamer texlive-latex-bin texlive-collection-fontsrecommended texlive-hyphen-german texlive-hyphen-english texlive-dehyph texlive-fancyhdr texlive-dinbrief texlive-german texlive-a4wide
+       which pandoc || sudo dnf install -y pandoc texlive-beamer texlive-latex-bin texlive-collection-fontsrecommended texlive-hyphen-german texlive-hyphen-english texlive-dehyph texlive-fancyhdr texlive-dinbrief texlive-german texlive-a4wide
 
-.PHONY: deps clean
+bots:
+       git clone --depth=1 https://github.com/cockpit-project/bots
+
+# download test VMs
+download: bots
+       bots/image-download rhel-7-8 windows-10
+
+upload: cockpit-auth-anywhere.pdf
+       scp cockpit-auth-anywhere.pdf cockpit-auth-anywhere-notes.pdf piware.de:www/www/docs/
+
+.PHONY: deps clean download upload