summaryrefslogtreecommitdiffstats
path: root/posters/Makefile
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@etraveli.com>2017-08-14 19:49:15 +0200
committerGustav Eek <gustav.eek@etraveli.com>2017-08-14 20:24:51 +0200
commit4caec4587d254ab3779dad036ece6fbec2dd15d1 (patch)
tree3291b233be95e6f56cac5871ec839742b27bc5a3 /posters/Makefile
parentdc4d37c670ac3fdc99cd566b31905129c4abf265 (diff)
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.
Diffstat (limited to 'posters/Makefile')
-rw-r--r--posters/Makefile24
1 files changed, 22 insertions, 2 deletions
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