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 \ SEND_FILES = *.pdf *.png all: $(ALL) # Sends to fripost.org for publication %.pdf: %.odg libreoffice --invisible --convert-to pdf $< %.pdf: %.odt 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