5 IBINDIR
= -DBINDIR
=\"@BINDIR@
\"
7 SYSCONFDIR
= @SYSCONFDIR@
9 ISYSCONFDIR
= -DSYSCONFDIR
=\"@SYSCONFDIR@
\"
10 IHTMLDIR
= -DHTMLDIR
=\"@HTMLDIR@
\"
19 INSTALL_PROGRAM
= $(INSTALL
)
21 SRCS
= util.c log.c report.c topuser.c email.c
sort.c html.c \
22 totger.c index.c getconf.c usage.c decomp.c ip2name.c \
23 useragent.c exclude.c convlog.c totday.c repday.c datafile.c\
24 indexonly.c splitlog.c lastlog.c topsites.c siteuser.c css.c \
25 smartfilter.c denied.cauthfail.c language.c charset.c \
26 squidguard_log.c squidguard_report.c auth.c download.c grepday.c \
27 dansguardian_log.c dansguardian_report.c
28 OBJS
= util.o log.o report.o topuser.o email.o
sort.o html.o \
29 totger.o index.o getconf.o usage.o decomp.o ip2name.o \
30 useragent.o exclude.o convlog.o totday.o repday.o datafile.o \
31 indexonly.o splitlog.o lastlog.o topsites.o siteuser.o css.o \
32 smartfilter.o denied.o authfail.o language.o charset.o \
33 squidguard_log.o squidguard_report.o auth.o download.o grepday.o \
34 dansguardian_log.o dansguardian_report.o
41 $(CC
) -c
-I.
$(CPPFLAGS
) $(DEFS
) $(CFLAGS
) $(IBINDIR
) $(ISYSCONFDIR
) $(IHTMLDIR
) $<
44 $(CC
) $(LDFLAGS
) $(LIBS
) $(OBJS
) $(LIBCRYPT
) -o
$@
47 -@if
test ! -d
$(BINDIR
); then \
48 echo
"creating $(BINDIR)"; \
51 -@if
test ! -d
$(MANDIR
); then \
52 echo
"creating $(MANDIR)"; \
55 -@if
test ! -d
$(SYSCONFDIR
); then \
56 echo
"creating $(SYSCONFDIR)"; \
57 mkdir
$(SYSCONFDIR
); \
59 -@if
test ! -d
$(SYSCONFDIR
)/languages
; then \
60 echo
"Creating $(SYSCONFDIR)/languages"; \
61 mkdir
$(SYSCONFDIR
)/languages
; \
63 -@if
test ! -d
$(SYSCONFDIR
)/fonts
; then \
64 echo
"Creating $(SYSCONFDIR)/fonts"; \
65 mkdir
$(SYSCONFDIR
)/fonts
; \
67 $(INSTALL_PROGRAM
) sarg
$(BINDIR
)/sarg
68 chmod
755 $(BINDIR
)/sarg
69 $(INSTALL_PROGRAM
) sarg
.1 $(MANDIR
)/sarg
.1
70 chmod
755 $(MANDIR
)/sarg
.1
71 @if
test ! -f
$(SYSCONFDIR
)/sarg.conf
; then \
72 echo
"cp $(SYSCONFDIR)/sarg.conf"; \
73 cp sarg.conf
$(SYSCONFDIR
)/sarg.conf
; \
75 cp sarg.conf
$(SYSCONFDIR
)/sarg.conf.default
; \
77 cp
-r .
/languages
$(SYSCONFDIR
);
78 cp .
/exclude_codes
$(SYSCONFDIR
);
79 cp
-r .
/images
$(SYSCONFDIR
);
80 cp
-r .
/sarg-php
$(SYSCONFDIR
);
81 cp
-r .
/fonts
$(SYSCONFDIR
);
82 cp
-r .
/css.tpl
$(SYSCONFDIR
);
83 -@if
test -d
$(HTMLDIR
); then \
84 cp
-r .
/sarg-php
$(HTMLDIR
); \
89 rm -f
$(MANDIR
)/sarg
.1
100 rm -f Makefile config.status config.cache config.log