performance: keep track of the ddts older than 4 weeks
[ppastats.git] / src / Makefile.am
1
2 AM_CPPFLAGS = -Wall -std=gnu99 -Werror\
3         -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\
4         $(CURL_CFLAGS) $(JSON_CFLAGS)
5
6 LIBS += $(CURL_LIBS) $(JSON_LIBS)
7
8 DEFS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" @DEFS@
9
10 bin_PROGRAMS = ppastats
11 ppastats_SOURCES = \
12         cache.h cache.c\
13         fcache.h fcache.c\
14         html.h html.c\
15         http.h http.c\
16         list.h list.c\
17         log.h log.c\
18         lp.h lp.c\
19         lp_json.h lp_json.c\
20         lp_ws.h lp_ws.c\
21         main.c\
22         ppastats.h ppastats.c\
23         pio.h pio.c\
24         pstr.h pstr.c
25
26 dist_man_MANS = ppastats.1
27
28 ppastats.1: main.c $(top_srcdir)/configure.ac
29         if ! test -z "$(HELP2MAN)"; then \
30          $(MAKE) $(AM_MAKEFLAGS) ppastats$(EXEEXT); \
31          help2man -N --name="PPA Statistics command line tool" --output=ppastats.1 ./ppastats$(EXEEXT); \
32         fi;