help2man optional
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 3 Sep 2011 15:13:33 +0000 (15:13 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 3 Sep 2011 15:13:33 +0000 (15:13 +0000)
NEWS
src/Makefile.am
src/Makefile.in

diff --git a/NEWS b/NEWS
index 7ff7df5..57c85c9 100644 (file)
--- 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.
index 4b42165..bcb15aa 100644 (file)
@@ -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;
index bcbf144..e164fd8 100644 (file)
@@ -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.