help2man optional
[ppastats.git] / src / Makefile.in
index 12908ec..e164fd8 100644 (file)
@@ -184,7 +184,8 @@ target_alias = @target_alias@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-AM_CPPFLAGS = -Wall -std=gnu99 -Werror \
+AM_CPPFLAGS = -Wall -std=gnu99 -Werror\
+        -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\
        $(CURL_CFLAGS) $(JSON_CFLAGS)
 
 ppastats_SOURCES = \
@@ -556,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.