]> git.ipfire.org Git - thirdparty/sarg.git/blame - Makefile.in
Update the messages
[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@
308a21d4 7localedir = $(datadir)/locale
2357ef77 8PACKAGE_TARNAME=@PACKAGE_TARNAME@
c0ec9cc7
FM
9docdir = @docdir@
10CC = @CC@
11BINDIR = @bindir@
12MANDIR = @mandir@
13SYSCONFDIR = @sysconfdir@
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@\"
22ILOCALEDIR = -DLOCALEDIR=\"$(localedir)\"
23CFLAGS = @CFLAGS@
24CPPFLAGS = @CPPFLAGS@
25LDFLAGS = @LDFLAGS@
308a21d4 26DEFS = $(IBINDIR) $(ISYSCONFDIR) $(IFONTDIR) $(IIMAGEDIR) $(ISARGPHPDIR) $(ILOCALEDIR) @DEFS@
c0ec9cc7
FM
27LIBS = @LIBS@
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 \
35 totger.c index.c getconf.c usage.c decomp.c ip2name.c \
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 \
556e73cc 38 smartfilter.c denied.c authfail.c charset.c \
25697a35 39 squidguard_log.c squidguard_report.c auth.c download.c grepday.c \
f2ec8c75 40 dansguardian_log.c dansguardian_report.c realtime.c btree_cache.c \
4ca814cc 41 usertab.c userinfo.c longline.c
f2ec8c75 42
556e73cc 43OBJS = $(patsubst %.c,%.o,$(SRCS))
25697a35 44
3becf85c
FM
45DISTFILES = $(SRCS) ABOUT-NLS
46
47SUBDIRS = po
308a21d4 48.PHONY: all install clean uninstall mostlyclean distclean update-po $(SUBDIRS)
25697a35
GS
49
50all: sarg
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
308a21d4 63install: all install-po
f251e023
FM
64 -@if test ! -d $(DESTDIR)$(BINDIR); then \
65 echo "creating $(DESTDIR)$(BINDIR)"; \
66 mkdir -p $(DESTDIR)$(BINDIR); \
25697a35 67 fi
f251e023
FM
68 -@if test ! -d $(DESTDIR)$(MANDIR); then \
69 echo "creating $(DESTDIR)$(MANDIR)"; \
70 mkdir -p $(DESTDIR)$(MANDIR); \
25697a35 71 fi
f251e023
FM
72 -@if test ! -d $(DESTDIR)$(SYSCONFDIR); then \
73 echo "creating $(DESTDIR)$(SYSCONFDIR)"; \
74 mkdir -p $(DESTDIR)$(SYSCONFDIR); \
25697a35 75 fi
f251e023
FM
76 -@if test ! -d $(DESTDIR)$(IMAGEDIR); then \
77 echo "Creating $(DESTDIR)$(IMAGEDIR)"; \
78 mkdir -p $(DESTDIR)$(IMAGEDIR); \
25697a35 79 fi
f251e023
FM
80 $(INSTALL_PROGRAM) sarg $(DESTDIR)$(BINDIR)/sarg
81 chmod 755 $(DESTDIR)$(BINDIR)/sarg
82 $(INSTALL_PROGRAM) sarg.1 $(DESTDIR)$(MANDIR)/sarg.1
83 chmod 755 $(DESTDIR)$(MANDIR)/sarg.1
84 @if test ! -f $(DESTDIR)$(SYSCONFDIR)/sarg.conf; then \
85 echo "cp $(DESTDIR)$(SYSCONFDIR)/sarg.conf"; \
86 cp sarg.conf $(DESTDIR)$(SYSCONFDIR)/sarg.conf; \
25697a35 87 else \
f251e023 88 cp sarg.conf $(DESTDIR)$(SYSCONFDIR)/sarg.conf.default; \
25697a35 89 fi
f251e023
FM
90 cp ./exclude_codes $(DESTDIR)$(SYSCONFDIR);
91 cp ./user_limit_block $(DESTDIR)$(SYSCONFDIR);
92 cp -r ./images/* $(DESTDIR)$(IMAGEDIR);
3becf85c
FM
93 -@if test -n "$(FONTDIR)" ; then \
94 if test ! -d "$(DESTDIR)$(FONTDIR)" ; then \
95 echo "Creating $(DESTDIR)$(FONTDIR)"; \
96 mkdir -p "$(DESTDIR)$(FONTDIR)"; \
97 fi; \
98 cp -r ./fonts/* "$(DESTDIR)$(FONTDIR)"; \
99 fi
f251e023 100 cp -r ./css.tpl $(DESTDIR)$(SYSCONFDIR);
7bbc1de4 101 -@if test -n "$(SARGPHPDIR)" -a -d "$(DESTDIR)$(SARGPHPDIR)"; then \
3becf85c 102 cp -r ./sarg-php $(DESTDIR)$(SARGPHPDIR); \
25697a35
GS
103 fi
104
308a21d4 105uninstall: uninstall-po
f251e023
FM
106 rm -f $(DESTDIR)$(BINDIR)/sarg
107 rm -f $(DESTDIR)$(MANDIR)/sarg.1
25697a35
GS
108
109TAGS: $(SRCS)
110 etags $(SRCS)
111
308a21d4 112clean: clean-po
25697a35
GS
113 rm -f sarg *.o core
114
115mostlyclean: clean
116
117distclean: clean
118 rm -f Makefile config.status config.cache config.log
119
120realclean: distclean
121 rm -f TAGS
122
308a21d4
FM
123install-po:
124 $(MAKE) -C po install
125
126uninstall-po:
127 $(MAKE) -C po uninstall
128
129clean-po:
130 $(MAKE) -C po clean
131
f2ec8c75
FM
132update-po:
133 $(MAKE) -C po update-po
cea51ad6
FM
134
135po-from-tp:
136 @echo "Fetching latest po files from translationprojetc.org"
137 rsync -Lrtvz -u translationproject.org::tp/latest/sarg/ po