From: Jean-Philippe Orsini Date: Sat, 3 Sep 2011 15:13:33 +0000 (+0000) Subject: help2man optional X-Git-Tag: v1.3.0~157 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=ppastats.git;a=commitdiff_plain;h=79035c81c5c623a30d0139bca33bd41ee1756930 help2man optional --- diff --git a/NEWS b/NEWS index 7ff7df5..57c85c9 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ * v0.0.4 ** Fixed memory issue (patch submitted by Lekensteyn). ** Added help for -s option. +** Don't generate manpage if help2man not present. * v0.0.3 ** Generated HTML pages for package versions. diff --git a/src/Makefile.am b/src/Makefile.am index 4b42165..bcb15aa 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -19,6 +19,7 @@ ppastats_SOURCES = \ dist_man_MANS = ppastats.1 ppastats.1: main.c $(top_srcdir)/configure.ac - $(MAKE) $(AM_MAKEFLAGS) ppastats$(EXEEXT) - help2man -N --name="PPA Statistics command line tool" --output=ppastats.1 ./ppastats$(EXEEXT) - + if ! test -z "$(HELP2MAN)"; then \ + $(MAKE) $(AM_MAKEFLAGS) ppastats$(EXEEXT); \ + help2man -N --name="PPA Statistics command line tool" --output=ppastats.1 ./ppastats$(EXEEXT); \ + fi; diff --git a/src/Makefile.in b/src/Makefile.in index bcbf144..e164fd8 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -557,8 +557,10 @@ uninstall-man: uninstall-man1 ppastats.1: main.c $(top_srcdir)/configure.ac - $(MAKE) $(AM_MAKEFLAGS) ppastats$(EXEEXT) - help2man -N --name="PPA Statistics command line tool" --output=ppastats.1 ./ppastats$(EXEEXT) + if ! test -z "$(HELP2MAN)"; then \ + $(MAKE) $(AM_MAKEFLAGS) ppastats$(EXEEXT); \ + help2man -N --name="PPA Statistics command line tool" --output=ppastats.1 ./ppastats$(EXEEXT); \ + fi; # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded.