diff options
author | Loïc Hoguin <[email protected]> | 2016-01-09 15:48:41 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-01-09 15:48:41 +0100 |
commit | badc6ee4d0d1f01feaf0655c58faffefe5040803 (patch) | |
tree | ba59047980408639fc2e1a39a27740ea5329fd1c /plugins/asciidoc.mk | |
parent | c512f49ad95c2cffae1de9b80f49228d3430e988 (diff) | |
download | erlang.mk-badc6ee4d0d1f01feaf0655c58faffefe5040803.tar.gz erlang.mk-badc6ee4d0d1f01feaf0655c58faffefe5040803.tar.bz2 erlang.mk-badc6ee4d0d1f01feaf0655c58faffefe5040803.zip |
Add AsciiDoc tests and documentation
Also fixes install-docs to allow installing regardless of being
root or a normal user. The current user/group will be used for
the installed files.
Diffstat (limited to 'plugins/asciidoc.mk')
-rw-r--r-- | plugins/asciidoc.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/asciidoc.mk b/plugins/asciidoc.mk index baf4d3b..ab7fa4b 100644 --- a/plugins/asciidoc.mk +++ b/plugins/asciidoc.mk @@ -8,12 +8,12 @@ MAN_SECTIONS ?= 3 7 docs:: asciidoc -asciidoc: distclean-asciidoc doc-deps asciidoc-guide asciidoc-manual +asciidoc: asciidoc-guide asciidoc-manual ifeq ($(wildcard doc/src/guide/book.asciidoc),) asciidoc-guide: else -asciidoc-guide: +asciidoc-guide: distclean-asciidoc doc-deps a2x -v -f pdf doc/src/guide/book.asciidoc && mv doc/src/guide/book.pdf doc/guide.pdf a2x -v -f chunked doc/src/guide/book.asciidoc && mv doc/src/guide/book.chunked/ doc/html/ endif @@ -21,7 +21,7 @@ endif ifeq ($(wildcard doc/src/manual/*.asciidoc),) asciidoc-manual: else -asciidoc-manual: +asciidoc-manual: distclean-asciidoc doc-deps for f in doc/src/manual/*.asciidoc ; do \ a2x -v -f manpage $$f ; \ done @@ -36,7 +36,7 @@ install-docs:: install-asciidoc install-asciidoc: asciidoc-manual for s in $(MAN_SECTIONS); do \ mkdir -p $(MAN_INSTALL_PATH)/man$$s/ ; \ - install -g 0 -o 0 -m 0644 doc/man$$s/*.gz $(MAN_INSTALL_PATH)/man$$s/ ; \ + install -g `id -u` -o `id -g` -m 0644 doc/man$$s/*.gz $(MAN_INSTALL_PATH)/man$$s/ ; \ done endif |