doc: add 'html' target to Makefile.am
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
afb2f39291
commit
20ab91fb79
1 changed files with 39 additions and 8 deletions
|
@ -14,6 +14,22 @@ ASCIIDOC_MANS = \
|
||||||
|
|
||||||
DOXYGEN_MANS = $(wildcard man3/*.3)
|
DOXYGEN_MANS = $(wildcard man3/*.3)
|
||||||
|
|
||||||
|
HTML_MANPAGES = \
|
||||||
|
pacman.8.html \
|
||||||
|
makepkg.8.html \
|
||||||
|
repo-add.8.html \
|
||||||
|
PKGBUILD.5.html \
|
||||||
|
makepkg.conf.5.html \
|
||||||
|
pacman.conf.5.html \
|
||||||
|
libalpm.3.html
|
||||||
|
|
||||||
|
HTML_OTHER = \
|
||||||
|
index.html
|
||||||
|
|
||||||
|
HTML_DOCS = \
|
||||||
|
$(HTML_MANPAGES) \
|
||||||
|
$(HTML_OTHER)
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
asciidoc.conf \
|
asciidoc.conf \
|
||||||
pacman.8.txt \
|
pacman.8.txt \
|
||||||
|
@ -25,12 +41,13 @@ EXTRA_DIST = \
|
||||||
pacman.conf.5.txt \
|
pacman.conf.5.txt \
|
||||||
libalpm.3.txt \
|
libalpm.3.txt \
|
||||||
footer.txt \
|
footer.txt \
|
||||||
|
index.txt \
|
||||||
Doxyfile \
|
Doxyfile \
|
||||||
$(ASCIIDOC_MANS) \
|
$(ASCIIDOC_MANS) \
|
||||||
$(DOXYGEN_MANS)
|
$(DOXYGEN_MANS)
|
||||||
|
|
||||||
# Files that should be removed, but which Automake does not know.
|
# Files that should be removed, but which Automake does not know.
|
||||||
MOSTLYCLEANFILES = *.xml $(ASCIIDOC_MANS)
|
MOSTLYCLEANFILES = *.xml $(ASCIIDOC_MANS) $(HTML_DOCS)
|
||||||
|
|
||||||
# Ensure manpages are fresh when building a dist tarball
|
# Ensure manpages are fresh when building a dist tarball
|
||||||
dist-hook:
|
dist-hook:
|
||||||
|
@ -56,6 +73,8 @@ doxygen.in:
|
||||||
$(DOXYGEN) $(srcdir)/Doxyfile
|
$(DOXYGEN) $(srcdir)/Doxyfile
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
html: $(HTML_DOCS)
|
||||||
|
|
||||||
ASCIIDOC_OPTS = \
|
ASCIIDOC_OPTS = \
|
||||||
-f asciidoc.conf \
|
-f asciidoc.conf \
|
||||||
-a pacman_version="$(REAL_PACKAGE_VERSION)" \
|
-a pacman_version="$(REAL_PACKAGE_VERSION)" \
|
||||||
|
@ -72,13 +91,25 @@ A2X_OPTS = \
|
||||||
$(ASCIIDOC_MANS): asciidoc.conf footer.txt
|
$(ASCIIDOC_MANS): asciidoc.conf footer.txt
|
||||||
a2x $(A2X_OPTS) --asciidoc-opts="$(ASCIIDOC_OPTS)" $@.txt
|
a2x $(A2X_OPTS) --asciidoc-opts="$(ASCIIDOC_OPTS)" $@.txt
|
||||||
|
|
||||||
pacman.8: pacman.8.txt
|
%.html: %.txt
|
||||||
makepkg.8: makepkg.8.txt
|
asciidoc $(ASCIIDOC_OPTS) -a linkcss $*.txt
|
||||||
repo-add.8: repo-add.8.txt
|
dos2unix $@
|
||||||
PKGBUILD.5: PKGBUILD.5.txt PKGBUILD-example.txt
|
|
||||||
makepkg.conf.5: makepkg.conf.5.txt
|
# Customizations for certain HTML docs
|
||||||
pacman.conf.5: pacman.conf.5.txt
|
$(HTML_MANPAGES): asciidoc.conf footer.txt
|
||||||
libalpm.3: libalpm.3.txt
|
$(HTML_OTHER): asciidoc.conf
|
||||||
|
%.8.html: ASCIIDOC_OPTS += -d manpage
|
||||||
|
%.5.html: ASCIIDOC_OPTS += -d manpage
|
||||||
|
%.3.html: ASCIIDOC_OPTS += -d manpage
|
||||||
|
|
||||||
|
# Dependency rules
|
||||||
|
pacman.8 pacman.8.html: pacman.8.txt
|
||||||
|
makepkg.8 makepkg.8.html: makepkg.8.txt
|
||||||
|
repo-add.8 repo-add.8.html: repo-add.8.txt
|
||||||
|
PKGBUILD.5 PKGBUILD.5.html: PKGBUILD.5.txt PKGBUILD-example.txt
|
||||||
|
makepkg.conf.5 makepkg.conf.5.html: makepkg.conf.5.txt
|
||||||
|
pacman.conf.5 pacman.conf.5.html: pacman.conf.5.txt
|
||||||
|
libalpm.3 libalpm.3.html: libalpm.3.txt
|
||||||
# this one is just a symlink
|
# this one is just a symlink
|
||||||
repo-remove.8: repo-add.8
|
repo-remove.8: repo-add.8
|
||||||
rm -f repo-remove.8
|
rm -f repo-remove.8
|
||||||
|
|
Loading…
Add table
Reference in a new issue