Skip to content

Commit

Permalink
INSTALL: #1209 Fixed missing manindex.db during intallation.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Dec 13, 2023
1 parent 219a06b commit ee7967e
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions man/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,20 @@ function(pldoc tex input)
endif()
endforeach()

set(haspl)
foreach(dep ${depends})
get_filename_component(ext ${dep} EXT)
if(ext STREQUAL ".pl")
set(haspl true)
if(tex MATCHES "^lib/")
set(haspl)
foreach(dep ${depends})
get_filename_component(ext ${dep} EXT)
if(ext STREQUAL ".pl")
set(haspl true)
endif()
endforeach()

if(haspl)
set(options ${options} --summaries)
get_filename_component(base ${tex} NAME_WE)
set(byproducts lib/summaries.d/${base}.tex)
endif()
endforeach()

if(haspl)
set(options ${options} --summaries)
get_filename_component(base ${tex} NAME_WE)
set(byproducts lib/summaries.d/${base}.tex)
endif()

add_custom_command(
Expand Down Expand Up @@ -210,8 +212,7 @@ pldoc(lib/main.tex "library(main)")
endif()
pldoc(lib/dcgbasics.tex "library(dcg/basics)")
pldoc(lib/dcghighorder.tex "library(dcg/high_order)")
pldoc(libprofile.tex "library(prolog_profile)"
OPTIONS --subsection)
pldoc(libprofile.tex "library(prolog_profile)" --subsection)

# Check that we do not have both a .doc file and extract from the
# Prolog source
Expand Down

0 comments on commit ee7967e

Please sign in to comment.