Skip to content

Commit

Permalink
build: grab "dependent_headers" from respective Makefile.am
Browse files Browse the repository at this point in the history
...with "echo path/*.h" fallback (equivalent of wildcard function) if
the new methods fails for some reason.
  • Loading branch information
jnpkrn committed Feb 18, 2016
1 parent cabe021 commit 0b04ed5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,19 @@ noinst_HEADERS = mainpage.h
dist_man_MANS = man8/qb-blackbox.8
if HAVE_DOXYGEN
inc_dir = $(top_srcdir)/include/qb
dependent_headers = $(wildcard $(inc_dir)/qb*.h)

dependent_headers = $(subst $(inc_dir),,$(shell \
printf 'include $(inc_dir)/Makefile.am\n\n%%.var:\n\t@echo $$($$*)' \
| ${MAKE} --no-print-directory -f - inst_HEADERS.var \
|| echo $(inc_dir)/qb*.h))

dist_man_MANS += man3/qbipcc.h.3 man3/qbipcs.h.3 man3/qbatomic.h.3 \
man3/qbhdb.h.3 man3/qbipc_common.h.3 man3/qblist.h.3 \
man3/qbloop.h.3 man3/qbutil.h.3 man3/qbarray.h.3 \
man3/qblog.h.3 man3/qbmap.h.3


$(dist_man_MANS): man.dox $(dependent_headers)
$(dist_man_MANS): man.dox $(dependent_headers:%=$(inc_dir)/%)
mkdir -p man3
doxygen man.dox

Expand Down

0 comments on commit 0b04ed5

Please sign in to comment.