scan-adoc-refs: include all sources in MANUAL_SOURCES
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 15 Oct 2016 09:43:01 +0000 (11:43 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 15 Oct 2016 09:43:01 +0000 (11:43 +0200)
Makefile
scan-adoc-refs

index 43382d5..bd9df33 100644 (file)
--- 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
 
index fa23ad1..333bd89 100755 (executable)
@@ -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) {