PowerDNS / pdns

PowerDNS Authoritative, PowerDNS Recursor, dnsdist
https://www.powerdns.com/
GNU General Public License v2.0
3.58k stars 898 forks source link

Building docs fails in a previously built tree #5957

Open zeha opened 6 years ago

zeha commented 6 years ago

To reproduce, in a previously built tree:

~/pdns/docs (git)-[master] % rm dnspcap2protobuf.1 
~/pdns/docs (git)-[master] % make
make: *** No rule to make target `dnspcap2protobuf.1', needed by `all-am'.  Stop.

Running this makes the docs build work again:

~/pdns/docs (git)-[master] % cp mans/dnspcap2protobuf.1 .

But make really should just rebuild and copy the files it needs in this case.

Environment:

~/pdns (git)-[master] % grep HAVE_VIRTUALENV config.log
HAVE_VIRTUALENV_FALSE='#'
HAVE_VIRTUALENV_TRUE=''
~/pdns (git)-[master] % grep HAVE_PROTO config.log
| #define HAVE_PROTOBUF 1
| #define HAVE_PROTOBUF 1
HAVE_PROTOBUF_FALSE='#'
HAVE_PROTOBUF_TRUE=''
HAVE_PROTOC_FALSE='#'
HAVE_PROTOC_TRUE=''
#define HAVE_PROTOBUF 1
zeha commented 6 years ago

I think I ended up in this situation by having a built-tree and running git pull :)

pieterlexis commented 6 years ago

I think I have seen things like this before. It has to do with how sphinx builds manpages

zeha commented 6 years ago

I think make did not even invoke sphinx for this.

Habbie commented 5 years ago

I have rm -f docs/pdns_server.1 as part of my 'configure' script as a workaround.