mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
documentation: 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 <me@jessfraz.com>. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
parent
55214a8b8d
commit
d80596a3c4
1 changed files with 36 additions and 0 deletions
36
documentation/Makefile
Normal file
36
documentation/Makefile
Normal file
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue