mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Add install-doc rule
This commit is contained in:
parent
75bf42bfe0
commit
b8301917ec
19
doc/Makefile
19
doc/Makefile
@ -6,6 +6,12 @@ SUBDIRS = man
|
|||||||
# A little trick to simplify some of the rules.
|
# A little trick to simplify some of the rules.
|
||||||
VPATH = $(builddir):$(srcdir):$(top_srcdir)/contrib/perl
|
VPATH = $(builddir):$(srcdir):$(top_srcdir)/contrib/perl
|
||||||
|
|
||||||
|
docdir = $(datadir)/doc
|
||||||
|
|
||||||
|
# Used by install-doc
|
||||||
|
HTML_DIR = $(DESTDIR)$(docdir)/$(PACKAGE)/html
|
||||||
|
PDF_DIR = $(DESTDIR)$(docdir)/$(PACKAGE)/pdf
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
# Build files
|
# Build files
|
||||||
|
|
||||||
@ -54,6 +60,19 @@ man: txt $(MAN_DOCS)
|
|||||||
|
|
||||||
all-docs: man html pdf
|
all-docs: man html pdf
|
||||||
|
|
||||||
|
install-doc: all-docs install
|
||||||
|
$(foreach doc,$(HTML_DOCS), \
|
||||||
|
if test -d $(doc); then \
|
||||||
|
$(MKINSTALLDIRS) $(DESTDIR)$(docdir)/$(PACKAGE)/html/$(doc); \
|
||||||
|
$(call ncmd,installdata,$(doc)/*,$(HTML_DIR)/$(doc)); \
|
||||||
|
else \
|
||||||
|
$(MKINSTALLDIRS) $(DESTDIR)$(docdir)/$(PACKAGE)/html; \
|
||||||
|
$(call ncmd,installdata,$(doc),$(HTML_DIR)); \
|
||||||
|
fi;)
|
||||||
|
$(foreach doc,$(PDF_DOCS), \
|
||||||
|
$(MKINSTALLDIRS) $(DESTDIR)$(docdir)/$(PACKAGE)/pdf; \
|
||||||
|
$(call ncmd,installdata,$(doc),$(PDF_DIR);))
|
||||||
|
|
||||||
update-man: man
|
update-man: man
|
||||||
$(call cmd,installdata,elinks.1,man/man1/elinks.1.in)
|
$(call cmd,installdata,elinks.1,man/man1/elinks.1.in)
|
||||||
$(call cmd,installdata,elinkskeys.5,man/man5/)
|
$(call cmd,installdata,elinkskeys.5,man/man5/)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user