summaryrefslogtreecommitdiffstats
path: root/posters/Makefile
blob: 032d6bc0964d9f05f47baeb00ebea2019e02dd5c (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
30
31
32
33
34
35
36
37
38
39
40
41
42


ALL = \
2017-08-28-libre-office-forum.pdf \
2017-08-28-libre-office-forum.png \
2017-10-23-migrate-google.pdf \
2017-10-23-migrate-google.png \
2017-11-11-miljoe.pdf\
2018-nextcloud-release.pdf \
2018-nextcloud-release.png \


SEND_FILES = *.pdf *.png

all: $(ALL)

# General cases

%.pdf: %.odg
	libreoffice --headless "-env:UserInstallation=file:///tmp/lo-$$" --convert-to pdf $<

%.pdf: %.odt
	libreoffice --headless "-env:UserInstallation=file:///tmp/lo-$$" --convert-to pdf $<

%.png: %.pdf
	convert $< $@

# Special cases

2017-11-11-miljoe.pdf: 0000556932-01_miljo.pdf
	cp $< $@

# Sends to fripost.org for publication

send:
	rsync -ruvp --chmod=Dugo+rx,Fugo+r $(SEND_FILES) www.fripost.org:/var/www/fripost.org/material/
	@echo; echo Now avialable as; for f in $(SEND_FILES); do echo " - https://fripost.org/material/$$f"; done

clean:
	rm -fr $(ALL)

SHELL = /bin/bash