Skip to content

Commit

Permalink
build: header-based man pages: dependent_headers - blacklist
Browse files Browse the repository at this point in the history
IOW, make tracking of interfaces to document via man pages maintainable.
  • Loading branch information
jnpkrn committed Feb 18, 2016
1 parent 0b04ed5 commit cf1588c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/Makefile.am
Expand Up @@ -29,12 +29,11 @@ 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))
dependent_headers_omit = qbconfig.h qbdefs.h qbrb.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 += $(patsubst %,man3/%.3,$(filter-out \
$(dependent_headers_omit),$(dependent_headers) \
))

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

0 comments on commit cf1588c

Please sign in to comment.