Hello,

Am Mittwoch, 30. November 2016, 16:17:49 CET schrieb Steve Beattie:
> Speaking of the odt files in the documentation directory...
> 
> documentaion: add Makefile to generate pdfs from odt files
> 
> The odt files in the documentation directory are hard to consume
> in that form. This adds a Makefile that generates pdfs from the
> odt files, using the unoconv tool, based on the idea/github tree
> https://github.com/jessfraz/apparmor-docs from
> Jessica Frazelle <m...@jessfraz.com>.

Good idea!

> That said, renaming the odt files to not have spaces would simplify
> this a lot.

Indeed. Please do this first instead of commiting a Makefile with ugly 
workarounds ;-)

For renaming all *.odt files to names without spaces:
Acked-by: Christian Boltz <appar...@cboltz.de>

> Signed-off-by: Steve Beattie <st...@nxnw.org>
> ---
...
> +++ b/documentation/Makefile
> @@ -0,0 +1,59 @@
...
> +# cannot figure out how to get make to honor the %.odt dependency correctly 
> +# so need to manually enter the list below
> +%.pdf:
> +     unoconv -v -f pdf --output "$@" $(call us,$(@:.pdf=.odt))

common/Make.rules has

%.1 %.2 %.3 %.4 %.5 %.6 %.7 %.8: %.pod
    $(POD2MAN) $< --release=$(MAN_RELEASE) --center=AppArmor --stderr 
--section=$(subst .,,$(suffix $@)) > $@

So I'd guess you need something like (untested!)

%.pdf: %.odt
    unoconv -v -f pdf --output "$@" "$<"


Regards,

Christian Boltz
-- 
Das hier ist eine Anfängerliste.
Ich will Dir auch erklären warum:
Den 'Linux Profi' gibt es IMHO nicht.
[Bernd Obermayr in suse-linux]

Attachment: signature.asc
Description: This is a digitally signed message part.

-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to