X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2FMakefile.am;h=0173371ebe9599927b32a3dce388b96a403bc99b;hb=9a8af404ffbfb331575dc4b37b044d49d728be8b;hp=dad0d6adc7e42a58cb78961577aeeb35ddf31e6c;hpb=5ed73c995d6fcb5f3b4626bf7ebf609fc52f5d94;p=ppastats.git diff --git a/src/Makefile.am b/src/Makefile.am index dad0d6a..0173371 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,13 +1,32 @@ -AM_CPPFLAGS = -Wall -std=gnu99 -Werror \ +AM_CPPFLAGS = -Wall -std=gnu99 -Werror\ + -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\ $(CURL_CFLAGS) $(JSON_CFLAGS) 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\ + log.h log.c\ lp.h lp.c\ lp_json.h lp_json.c\ lp_ws.h lp_ws.c\ - main.c + main.c\ + ppastats.h ppastats.c\ + pio.h pio.c\ + pstr.h pstr.c + +dist_man_MANS = ppastats.1 + +ppastats.1: main.c $(top_srcdir)/configure.ac + if ! test -z "$(HELP2MAN)"; then \ + $(MAKE) $(AM_MAKEFLAGS) ppastats$(EXEEXT); \ + help2man -N --name="PPA Statistics command line tool" --output=ppastats.1 ./ppastats$(EXEEXT); \ + fi;