diff --git a/Makefile b/Makefile index 43382d5..bd9df33 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,6 @@ include ./pve-doc-generator.mk GEN_DEB_SOURCES= \ pve-doc-generator.mk \ ${MANUAL_SOURCES} \ - ${PVESM_ADOCSOURCES} \ pmxcfs.8-synopsis.adoc \ docinfo.xml diff --git a/scan-adoc-refs b/scan-adoc-refs index fa23ad1..333bd89 100755 --- a/scan-adoc-refs +++ b/scan-adoc-refs @@ -372,6 +372,12 @@ if ($generate_depends) { my $man_sources_hash = {}; foreach my $sourcefile (keys %{$fileinfo->{outfile}->{manvolnum}}) { $man_sources_hash->{$sourcefile} = 1; + my $ihash = $fileinfo->{include}->{manvolnum}->{$sourcefile}; + foreach my $include (keys %$ihash) { + if ($include !~ m/-(opts|synopsis).adoc$/) { + $man_sources_hash->{$include} = 1; + } + } } foreach my $e (@$start_env) {