X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2FMakefile.am;h=96f0c4ed3e30bdeb5175589bc8009028f40acb6b;hb=28356baaaaa4271e7c5bea180836cca4aa4d06ad;hp=4b421654139309671d8448f8fa2a502cc04a8b1a;hpb=0ffa32c4daf36b425e7aca8caf1d2f81809be2ee;p=ppastats.git diff --git a/src/Makefile.am b/src/Makefile.am index 4b42165..96f0c4e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -5,20 +5,29 @@ AM_CPPFLAGS = -Wall -std=gnu99 -Werror\ LIBS += $(CURL_LIBS) $(JSON_LIBS) +DEFS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" @DEFS@ + bin_PROGRAMS = ppastats ppastats_SOURCES = \ cache.h cache.c\ + fcache.h fcache.c\ html.h html.c\ + http.h http.c\ list.h list.c\ lp.h lp.c\ lp_json.h lp_json.c\ lp_ws.h lp_ws.c\ main.c\ - ppastats.h ppastats.c + plog.h plog.c\ + ppastats.h ppastats.c\ + pio.h pio.c\ + pstr.h pstr.c\ + ptime.h ptime.c 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;