mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
Revert "[cmake] Fix installing docs"
INSTALL_DOCS is not a controllable option, and is only used to indicate
whether they will be installed or not.
This reverts commit e800b18ee9
.
This commit is contained in:
parent
3ec1fab7aa
commit
b5aea3fd8b
|
@ -42,7 +42,7 @@ SET(MANUALS ${CMAKE_CURRENT_BINARY_DIR}/share/man/man1/fish.1
|
|||
${CMAKE_CURRENT_BINARY_DIR}/share/man/man1/fish_key_reader.1)
|
||||
|
||||
# These are the manpages that go in fish-specific manpath.
|
||||
FILE(GLOB HELP_MANPAGES ${CMAKE_CURRENT_BINARY_DIR}/share/man/man1/*.1)
|
||||
FILE(GLOB HELP_MANPAGES share/man/man1/*.1)
|
||||
|
||||
# Determine which man pages we don't want to install.
|
||||
# On OS X, don't install a man page for open, since we defeat fish's open
|
||||
|
@ -186,10 +186,14 @@ INSTALL(DIRECTORY share/tools/web_config
|
|||
PATTERN "*.js"
|
||||
PATTERN "*.fish")
|
||||
|
||||
# @echo "Installing more man pages";
|
||||
# $v $(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man1;
|
||||
# $v for i in $(MANUALS); do \
|
||||
# $(INSTALL) -m 644 $$i $(DESTDIR)$(mandir)/man1/; \
|
||||
# true; \
|
||||
# done;
|
||||
# Building the man pages is optional: if doxygen isn't installed, they're not built
|
||||
IF(INSTALL_DOCS)
|
||||
INSTALL(FILES ${MANUALS} DESTINATION ${mandir}/man1/)
|
||||
ENDIF()
|
||||
INSTALL(FILES ${MANUALS} DESTINATION ${mandir}/man1/ OPTIONAL)
|
||||
|
||||
#install-doc: $(user_doc)
|
||||
# @echo "Installing online user documentation";
|
||||
|
@ -200,11 +204,9 @@ ENDIF()
|
|||
# fi; \
|
||||
# done;
|
||||
# Building the manual is optional
|
||||
IF(INSTALL_DOCS)
|
||||
INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/user_doc/html/ # Trailing slash is important!
|
||||
DESTINATION ${docdir})
|
||||
INSTALL(FILES CHANGELOG.md DESTINATION ${docdir})
|
||||
ENDIF()
|
||||
INSTALL(DIRECTORY user_doc/html/ # Trailing slash is important!
|
||||
DESTINATION ${docdir} OPTIONAL)
|
||||
INSTALL(FILES CHANGELOG.md DESTINATION ${docdir})
|
||||
|
||||
# $v $(INSTALL) -m 644 share/lynx.lss $(DESTDIR)$(datadir)/fish/
|
||||
INSTALL(FILES share/lynx.lss DESTINATION ${rel_datadir}/fish/)
|
||||
|
|
Loading…
Reference in New Issue
Block a user