]> git.ipfire.org Git - thirdparty/sarg.git/blame - Makefile.in
Don't show the input log reading percentage
[thirdparty/sarg.git] / Makefile.in
CommitLineData
25697a35
GS
1# Makefile.in for sarg
2
2357ef77
FM
3prefix=@prefix@
4datarootdir=@datarootdir@
5datadir=@datadir@
6exec_prefix=@exec_prefix@
7PACKAGE_TARNAME=@PACKAGE_TARNAME@
c0ec9cc7
FM
8docdir = @docdir@
9CC = @CC@
4b7d4cb0
FM
10bindir = @bindir@
11mandir = @mandir@
12man1dir = $(mandir)/man1
13sysconfdir = @sysconfdir@
c0ec9cc7 14SARGPHPDIR = @SARGPHPDIR@
c0ec9cc7
FM
15FONTDIR = @FONTDIR@
16IMAGEDIR = @IMAGEDIR@
c0ec9cc7
FM
17IBINDIR = -DBINDIR=\"@bindir@\"
18ISYSCONFDIR = -DSYSCONFDIR=\"@sysconfdir@\"
19ISARGPHPDIR = -DSARGPHPDIR=\"@SARGPHPDIR@\"
c0ec9cc7
FM
20IFONTDIR = -DFONTDIR=\"@FONTDIR@\"
21IIMAGEDIR = -DIMAGEDIR=\"@IMAGEDIR@\"
d49c75f3 22ILOCALEDIR = -DLOCALEDIR=\"@localedir@\"
c0ec9cc7
FM
23CFLAGS = @CFLAGS@
24CPPFLAGS = @CPPFLAGS@
25LDFLAGS = @LDFLAGS@
308a21d4 26DEFS = $(IBINDIR) $(ISYSCONFDIR) $(IFONTDIR) $(IIMAGEDIR) $(ISARGPHPDIR) $(ILOCALEDIR) @DEFS@
b966a3a2 27LIBS = @LIBS@ -lm
c0ec9cc7
FM
28SRCDIR = .
29VPATH = .
30INSTALL = cp
25697a35
GS
31
32INSTALL_PROGRAM = $(INSTALL)
33
34SRCS = util.c log.c report.c topuser.c email.c sort.c html.c \
51b166d4 35 index.c getconf.c usage.c decomp.c ip2name.c ip2name_dns.c \
25697a35
GS
36 useragent.c exclude.c convlog.c totday.c repday.c datafile.c\
37 indexonly.c splitlog.c lastlog.c topsites.c siteuser.c css.c \
0326d73b 38 smartfilter.c denied.c authfail.c charset.c dichotomic.c \
1e312c82 39 redirector.c auth.c download.c grepday.c ip2name_exec.c \
f2ec8c75 40 dansguardian_log.c dansguardian_report.c realtime.c btree_cache.c \
27d1fa35 41 usertab.c userinfo.c longline.c url.c readlog.c
f2ec8c75 42
8028a059 43OBJS = $(SRCS:.c=.o)
25697a35 44
3becf85c
FM
45DISTFILES = $(SRCS) ABOUT-NLS
46
47SUBDIRS = po
84a17075 48.PHONY: all install clean uninstall mostlyclean distclean update-po doc $(SUBDIRS)
25697a35 49
257cd925 50all: sarg
25697a35
GS
51
52.c.o:
c0ec9cc7 53 $(CC) -c -I. $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
25697a35 54
d6dabf47
FM
55*.o: include/conf.h include/info.h include/defs.h
56
25697a35 57sarg: $(OBJS)
1b42c442 58 $(CC) $(LDFLAGS) $(OBJS) -o $@ $(LIBS) $(LIBCRYPT)
25697a35 59
3becf85c
FM
60$(SUBDIRS):
61 $(MAKE) -C $@
62
84a17075
FM
63doc: sarg.1 sarg_manpage.html
64
65sarg.1: sarg_manpage.xml
66 echo "Making manual page"
67 xmllint --nonet --valid --noout $<
68 xsltproc --stringparam man.output.encoding latin1 --nonet /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl $<
69# docbook2man.pl $<
70
71sarg_manpage.html: sarg_manpage.xml
72 echo "Making html manual page"
73 xmllint --nonet --valid --noout $<
74 xsltproc --stringparam use.id.as.filename 1 --stringparam root.filename sarg_manpage --nonet /usr/share/sgml/docbook/xsl-stylesheets/html/onechunk.xsl $<
75
308a21d4 76install: all install-po
4b7d4cb0
FM
77 -@if test ! -d $(DESTDIR)$(bindir); then \
78 echo "creating $(DESTDIR)$(bindir)"; \
79 mkdir -p $(DESTDIR)$(bindir); \
25697a35 80 fi
4b7d4cb0
FM
81 -@if test ! -d $(DESTDIR)$(man1dir); then \
82 echo "creating $(DESTDIR)$(man1dir)"; \
83 mkdir -p $(DESTDIR)$(man1dir); \
25697a35 84 fi
4b7d4cb0
FM
85 -@if test ! -d $(DESTDIR)$(sysconfdir); then \
86 echo "creating $(DESTDIR)$(sysconfdir)"; \
87 mkdir -p $(DESTDIR)$(sysconfdir); \
25697a35 88 fi
f251e023
FM
89 -@if test ! -d $(DESTDIR)$(IMAGEDIR); then \
90 echo "Creating $(DESTDIR)$(IMAGEDIR)"; \
91 mkdir -p $(DESTDIR)$(IMAGEDIR); \
25697a35 92 fi
4b7d4cb0
FM
93 $(INSTALL_PROGRAM) sarg $(DESTDIR)$(bindir)/sarg
94 chmod 755 $(DESTDIR)$(bindir)/sarg
95 $(INSTALL_PROGRAM) sarg.1 $(DESTDIR)$(man1dir)/sarg.1
96 chmod 755 $(DESTDIR)$(man1dir)/sarg.1
97 @if test ! -f $(DESTDIR)$(sysconfdir)/sarg.conf; then \
98 echo "cp $(DESTDIR)$(sysconfdir)/sarg.conf"; \
99 cp sarg.conf $(DESTDIR)$(sysconfdir)/sarg.conf; \
25697a35 100 else \
4b7d4cb0 101 cp sarg.conf $(DESTDIR)$(sysconfdir)/sarg.conf.default; \
25697a35 102 fi
4b7d4cb0
FM
103 cp ./exclude_codes $(DESTDIR)$(sysconfdir);
104 cp ./user_limit_block $(DESTDIR)$(sysconfdir);
f251e023 105 cp -r ./images/* $(DESTDIR)$(IMAGEDIR);
3becf85c
FM
106 -@if test -n "$(FONTDIR)" ; then \
107 if test ! -d "$(DESTDIR)$(FONTDIR)" ; then \
108 echo "Creating $(DESTDIR)$(FONTDIR)"; \
109 mkdir -p "$(DESTDIR)$(FONTDIR)"; \
110 fi; \
111 cp -r ./fonts/* "$(DESTDIR)$(FONTDIR)"; \
112 fi
4b7d4cb0 113 cp -r ./css.tpl $(DESTDIR)$(sysconfdir);
7bbc1de4 114 -@if test -n "$(SARGPHPDIR)" -a -d "$(DESTDIR)$(SARGPHPDIR)"; then \
3becf85c 115 cp -r ./sarg-php $(DESTDIR)$(SARGPHPDIR); \
25697a35
GS
116 fi
117
308a21d4 118uninstall: uninstall-po
4b7d4cb0
FM
119 rm -f $(DESTDIR)$(bindir)/sarg
120 rm -f $(DESTDIR)$(man1dir)/sarg.1
25697a35
GS
121
122TAGS: $(SRCS)
123 etags $(SRCS)
124
308a21d4 125clean: clean-po
25697a35
GS
126 rm -f sarg *.o core
127
128mostlyclean: clean
129
130distclean: clean
131 rm -f Makefile config.status config.cache config.log
132
133realclean: distclean
134 rm -f TAGS
135
308a21d4
FM
136install-po:
137 $(MAKE) -C po install
138
139uninstall-po:
140 $(MAKE) -C po uninstall
141
142clean-po:
143 $(MAKE) -C po clean
144
f2ec8c75
FM
145update-po:
146 $(MAKE) -C po update-po
cea51ad6
FM
147
148po-from-tp:
149 @echo "Fetching latest po files from translationprojetc.org"
150 rsync -Lrtvz -u translationproject.org::tp/latest/sarg/ po