4 datarootdir
=@datarootdir@
6 exec_prefix=@
exec_prefix@
7 PACKAGE_TARNAME
=@PACKAGE_TARNAME@
11 IBINDIR
= -DBINDIR
=\"@
bindir@
\"
13 SYSCONFDIR
= @sysconfdir@
15 ISYSCONFDIR
= -DSYSCONFDIR
=\"@sysconfdir@
\"
16 IHTMLDIR
= -DHTMLDIR
=\"@HTMLDIR@
\"
26 INSTALL_PROGRAM
= $(INSTALL
)
28 SRCS
= util.c log.c report.c topuser.c email.c
sort.c html.c \
29 totger.c index.c getconf.c usage.c decomp.c ip2name.c \
30 useragent.c exclude.c convlog.c totday.c repday.c datafile.c\
31 indexonly.c splitlog.c lastlog.c topsites.c siteuser.c css.c \
32 smartfilter.c denied.cauthfail.c language.c charset.c \
33 squidguard_log.c squidguard_report.c auth.c download.c grepday.c \
34 dansguardian_log.c dansguardian_report.c realtime.c
35 OBJS
= util.o log.o report.o topuser.o email.o
sort.o html.o \
36 totger.o index.o getconf.o usage.o decomp.o ip2name.o \
37 useragent.o exclude.o convlog.o totday.o repday.o datafile.o \
38 indexonly.o splitlog.o lastlog.o topsites.o siteuser.o css.o \
39 smartfilter.o denied.o authfail.o language.o charset.o \
40 squidguard_log.o squidguard_report.o auth.o download.o grepday.o \
41 dansguardian_log.o dansguardian_report.o realtime.o
48 $(CC
) -c
-I.
$(CPPFLAGS
) $(DEFS
) $(CFLAGS
) $(IBINDIR
) $(ISYSCONFDIR
) $(IHTMLDIR
) $<
51 $(CC
) $(LDFLAGS
) $(OBJS
) -o
$@
$(LIBS
) $(LIBCRYPT
)
54 -@if
test ! -d
$(BINDIR
); then \
55 echo
"creating $(BINDIR)"; \
58 -@if
test ! -d
$(MANDIR
); then \
59 echo
"creating $(MANDIR)"; \
62 -@if
test ! -d
$(SYSCONFDIR
); then \
63 echo
"creating $(SYSCONFDIR)"; \
64 mkdir
$(SYSCONFDIR
); \
66 -@if
test ! -d
$(SYSCONFDIR
)/languages
; then \
67 echo
"Creating $(SYSCONFDIR)/languages"; \
68 mkdir
$(SYSCONFDIR
)/languages
; \
70 -@if
test ! -d
$(SYSCONFDIR
)/fonts
; then \
71 echo
"Creating $(SYSCONFDIR)/fonts"; \
72 mkdir
$(SYSCONFDIR
)/fonts
; \
74 $(INSTALL_PROGRAM
) sarg
$(BINDIR
)/sarg
75 chmod
755 $(BINDIR
)/sarg
76 $(INSTALL_PROGRAM
) sarg
.1 $(MANDIR
)/sarg
.1
77 chmod
755 $(MANDIR
)/sarg
.1
78 @if
test ! -f
$(SYSCONFDIR
)/sarg.conf
; then \
79 echo
"cp $(SYSCONFDIR)/sarg.conf"; \
80 cp sarg.conf
$(SYSCONFDIR
)/sarg.conf
; \
82 cp sarg.conf
$(SYSCONFDIR
)/sarg.conf.default
; \
84 cp
-r .
/languages
$(SYSCONFDIR
);
85 cp .
/exclude_codes
$(SYSCONFDIR
);
86 cp .
/user_limit_block
$(SYSCONFDIR
);
87 cp
-r .
/images
$(SYSCONFDIR
);
88 cp
-r .
/sarg-php
$(SYSCONFDIR
);
89 cp
-r .
/fonts
$(SYSCONFDIR
);
90 cp
-r .
/css.tpl
$(SYSCONFDIR
);
91 -@if
test -d
$(HTMLDIR
); then \
92 cp
-r .
/sarg-php
$(HTMLDIR
); \
97 rm -f
$(MANDIR
)/sarg
.1
108 rm -f Makefile config.status config.cache config.log