[apparmor] [patch] documentaion: add Makefile to generate pdfs from odt files

Seth Arnold seth.arnold at canonical.com
Thu Dec 1 23:11:07 UTC 2016


On Thu, Dec 01, 2016 at 02:46:10PM -0800, Steve Beattie wrote:
> Here's what the Makefile would look like after the renaming of the odt
> files occurred (much simpler):

This is much easier on the eyes :)

If John doesn't hate the renaming..

Acked-by: Seth Arnold <seth.arnold at canonical.com>

Acked for everything :)

Thanks

> ---
>  documentation/Makefile |   36 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 36 insertions(+)
> 
> Index: b/documentation/Makefile
> ===================================================================
> --- /dev/null
> +++ b/documentation/Makefile
> @@ -0,0 +1,36 @@
> +# ----------------------------------------------------------------------
> +#    Copyright (c) 2016 Canonical Ltd.
> +#
> +#    This program is free software; you can redistribute it and/or
> +#    modify it under the terms of version 2 of the GNU General Public
> +#    License published by the Free Software Foundation.
> +#
> +#    This program is distributed in the hope that it will be useful,
> +#    but WITHOUT ANY WARRANTY; without even the implied warranty of
> +#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> +#    GNU General Public License for more details.
> +# ----------------------------------------------------------------------
> +NAME 		= documentation
> +all:
> +COMMONDIR=../common/
> +
> +include $(COMMONDIR)/Make.rules
> +
> +all: docs
> +
> +SOURCES:= $(wildcard *.odt)
> +DOCS:=$(SOURCES:.odt=.pdf)
> +
> +.PHONY: docs
> +docs: $(DOCS)
> +
> +%.pdf: %.odt
> +	unoconv -v -f pdf --output "$@" "$<"
> +
> +.PHONY: clean
> +ifndef VERBOSE
> +.SILENT: clean
> +endif
> +clean:
> +	rm -f *.pdf
> +
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20161201/d50ee28c/attachment-0001.pgp>


More information about the AppArmor mailing list