summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--posters/Makefile24
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