X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2FMakefile.am;h=e19e20a3eb3fdc3908b91de652b1d9992530cf5e;hb=50cb5b56107bbbdc5eb1565404015efaba66bed4;hp=1cd1da4281397e429e9d1e68fcb8d1e57b7bab4f;hpb=f2b0384f6231324f53e78aa458b9a46b0e659c43;p=ppastats.git diff --git a/src/Makefile.am b/src/Makefile.am index 1cd1da4..e19e20a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,22 +1,28 @@ -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\ html.h html.c\ + io.h io.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.h ppastats.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;