summaryrefslogtreecommitdiffstats
path: root/posters/Makefile
blob: edf3d1825350529f2ece3c46e7a7030b39d13510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29


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/

clean:
	rm -fr $(ALL)

SHELL = /bin/bash