Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB

AC_PATH_PROGS(HELP2MAN, help2man)
AM_CONDITIONAL(HAVE_HELP2MAN, test x"${HELP2MAN}" != x"")

# Checks for libraries.
AC_CHECK_LIB([dl], [dlopen])
AC_CHECK_LIB([pthread], [pthread_create])
Expand Down
9 changes: 9 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,14 @@ boothd_LDFLAGS = $(OS_DYFLAGS) -L./
noinst_HEADERS = booth.h list.h pacemaker.h paxos_lease.h timer.h \
config.h log.h paxos.h ticket.h transport.h

if HAVE_HELP2MAN
man_MANS = booth.8 boothd.8
MAINTAINERCLEANFILES += $(man_MANS)
EXTRA_DIST = $(man_MANS)

%.8: %
$(HELP2MAN) -N -o $@ ./$<
endif

lint:
-splint $(INCLUDES) $(LINT_FLAGS) $(CFLAGS) *.c