]> git.proxmox.com Git - pve-docs.git/commitdiff
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 43382d57f9820c6818c59c0efec3b4e62f07ce82..bd9df330eb517a85ef04ae97a6d93cadcc5f07bd 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 fa23ad1b1e9a9f3047c5585d4275a995b434021c..333bd89af335ab37649fa22e5d9013ffc46f2897 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) {