summaryrefslogtreecommitdiffstats
path: root/posters/Makefile
diff options
context:
space:
mode:
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