build: fix for `make distcheck` without enable-gtk-doc
authorThomas Haller <thaller@redhat.com>
Sat, 16 Nov 2013 15:51:27 +0000 (16:51 +0100)
committerThomas Haller <thaller@redhat.com>
Mon, 18 Nov 2013 18:19:13 +0000 (19:19 +0100)
commit044cebade409fa2a19f7744a0693046459538f92
tree9e6a2eb9e2b44913f96560b4f14ff008866f38bb
parent63d486b4de0e48a183025e98f7d20fb3912c6911
build: fix for `make distcheck` without enable-gtk-doc

Without this patch, the following fails with a rather obscure message
about missing make target.

  ./autogen.sh && make && make distcheck
  ...
  *** No rule to make target `NetworkManager.8', needed by `distdir'. Stop.

Swap the order of the subdirectories 'docs' and 'man' to build
'docs' earlier. This way, `make distcheck` fails in the directory 'docs'
with a better error message:
  *** gtk-doc must be installed and enabled in order to make dist

Also, add 'man/nmcli-examples.5' to the list of files, to determine
whether to use the pre generated doc files.

Signed-off-by: Thomas Haller <thaller@redhat.com>
Makefile.am
configure.ac