Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (16 sloc) 523 Bytes
SUBDIRS = po gnulib/lib src tests doc
ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4
man_page = $(PACKAGE).1
man_MANS = $(man_page)
MAINTAINERCLEANFILES = $(man_MANS)
EXTRA_DIST = hangon.x $(man_MANS) gnulib/m4/gnulib-cache.m4
# Create the man page from --help and --version output
common_dep = $(top_srcdir)/configure.ac
### TODO remove the explicit name
$(man_page): $(common_dep) $(srcdir)/hangon.x $(srcdir)/src/hangon.c
SUFFIXES = .x .1
.x.1:
$(HELP2MAN) \
--no-info \
--include=$(srcdir)/$*.x \
--output=$@ src/$*