%.pdf: %.od[tp]
@# Need separate working directory for soffice instances
@TMPDIR=$$(mktemp -d /tmp/bds-soffice-XXXXXXXXXX);\
soffice -env:UserInstallation=file:///$${TMPDIR} --headless --convert-to pdf $<;\
rm -fr $${TMPDIR}
%.pdf: %.doc
@# Need separate working directory for soffice instances
@TMPDIR=$$(mktemp -d /tmp/bds-soffice-XXXXXXXXXX);\
soffice -env:UserInstallation=file:///$${TMPDIR} --headless --convert-to pdf $<;\
rm -fr $${TMPDIR}