From 4caec4587d254ab3779dad036ece6fbec2dd15d1 Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Mon, 14 Aug 2017 19:49:15 +0200 Subject: Send routine modification for posters (Aug 28 Libre Office...) The Makfile is updated to create PDF's and send also PNG. PNG files also added to .gitignore file. --- .gitignore | 3 +++ posters/Makefile | 24 ++++++++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1a46c08..0cb05c6 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,9 @@ *.pdf *.eepic +# Generated pictures +*.png + # directories doxygen beamerexample diff --git a/posters/Makefile b/posters/Makefile index e4d4211..edf3d18 100644 --- a/posters/Makefile +++ b/posters/Makefile @@ -1,9 +1,29 @@ -send-files = *.pdf + +ALL = \ +2017-08-28-libre-office-forum.pdf \ +2017-08-28-libre-office-forum.png \ + +SEND_FILES = *.pdf *.png + +all: $(ALL) + # Sends to fripost.org for publication +%.pdf: %.odg + libreoffice --invisible --convert-to pdf $< + +%.pdf: %.odf + libreoffice --invisible --convert-to pdf $< + +%.png: %.pdf + convert $< $@ + send: - rsync -ruvp --chmod=Dugo+rx,Fugo+r $(send-files) www.fripost.org:/var/www/fripost.org/material/ + rsync -ruvp --chmod=Dugo+rx,Fugo+r $(SEND_FILES) www.fripost.org:/var/www/fripost.org/material/ + +clean: + rm -fr $(ALL) SHELL = /bin/bash -- cgit v1.2.3