96f0c4ed3e30bdeb5175589bc8009028f40acb6b
[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         lp.h lp.c\
18         lp_json.h lp_json.c\
19         lp_ws.h lp_ws.c\
20         main.c\
21         plog.h plog.c\
22         ppastats.h ppastats.c\
23         pio.h pio.c\
24         pstr.h pstr.c\
25         ptime.h ptime.c
26
27 dist_man_MANS = ppastats.1
28
29 ppastats.1: main.c $(top_srcdir)/configure.ac
30         if ! test -z "$(HELP2MAN)"; then \
31          $(MAKE) $(AM_MAKEFLAGS) ppastats$(EXEEXT); \
32          help2man -N --name="PPA Statistics command line tool" --output=ppastats.1 ./ppastats$(EXEEXT); \
33         fi;