Skip to content

Conversation

@jnpkrn
Copy link
Contributor

@jnpkrn jnpkrn commented Mar 10, 2016

Generating the man pages definitely doesn't depend on existence of
(possibly generated) header files that we omit anyway.

Generating the man pages definitely doesn't depend on existence of
(possibly generated) header files that we omit anyway.
Although this is not as rigorously correct as the previous arrangement
(introduced with 80834ea), i.e., from the perspective of
$(abs_top_builddir)/tests/Makefile (generated from from
$(top_srcdir)/tests/Makefile.am), for which $(top_builddir)
is literally "..":

- qbconfig.h is generated from $(top_srcdir)/include/qb/qbconfig.h.in
  into $(top_builddir)/include/qb directory, and consumed from here

- rest of these header files are consumed directly from
  $(top_srcdir)/include/qb directory

this new simplified variant:

- avoids code duplication (DRY)

- works thanks to VPATH in $(abs_top_builddir)/tests/Makefile
  pointing to $(top_srcdir)/tests, which means that unsatisfied
  dependencies on "$(top_builddir)/include/qb/%.h" (resolved to
  "../include/qb/%.h") will be subsequently sought as
  "$(top_srcdir)/tests/../include/qb/%.h", which has the same effect
  as previous explicit "$(top_srcdir)/include/qb/%.h" specification
  (note that such automatic VPATH provision is supported by automake
   "since beginning" so no backward incompatibility is expected)
@jnpkrn jnpkrn force-pushed the reenable-out-of-tree-build branch from 1ae36f4 to 328f99e Compare March 10, 2016 17:15
jnpkrn added 4 commits March 10, 2016 21:06
Previously, stuffing CLEANFILES with anything would not work in the
affected files.
This required moving the test programs over from *_PROGRAMS and hooking
the respective build recipe under explicit "check" target.
@jnpkrn jnpkrn force-pushed the reenable-out-of-tree-build branch from dab8170 to 9107af6 Compare March 10, 2016 21:45
jnpkrn added 2 commits March 11, 2016 08:04
This is to allow running auto_header_check-based tests independently of
the rest of the (possibly lengthy) tests.
chrissie-c added a commit that referenced this pull request Mar 17, 2016
build: fix out-of-tree build broken with 0b04ed5 (#184)
@chrissie-c chrissie-c merged commit 0e8c01a into ClusterLabs:master Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants