]> git.ipfire.org Git - thirdparty/sarg.git/blob - Makefile.in
Accept the input files on the command line without the -l option
[thirdparty/sarg.git] / Makefile.in
1 # Makefile.in for sarg
2
3 prefix=@prefix@
4 datarootdir=@datarootdir@
5 datadir=@datadir@
6 exec_prefix=@exec_prefix@
7 localedir = $(datadir)/locale
8 PACKAGE_TARNAME=@PACKAGE_TARNAME@
9 docdir = @docdir@
10 CC = @CC@
11 BINDIR = @bindir@
12 MANDIR = @mandir@
13 SYSCONFDIR = @sysconfdir@
14 SARGPHPDIR = @SARGPHPDIR@
15 FONTDIR = @FONTDIR@
16 IMAGEDIR = @IMAGEDIR@
17 IBINDIR = -DBINDIR=\"@bindir@\"
18 ISYSCONFDIR = -DSYSCONFDIR=\"@sysconfdir@\"
19 ISARGPHPDIR = -DSARGPHPDIR=\"@SARGPHPDIR@\"
20 IFONTDIR = -DFONTDIR=\"@FONTDIR@\"
21 IIMAGEDIR = -DIMAGEDIR=\"@IMAGEDIR@\"
22 ILOCALEDIR = -DLOCALEDIR=\"$(localedir)\"
23 CFLAGS = @CFLAGS@
24 CPPFLAGS = @CPPFLAGS@
25 LDFLAGS = @LDFLAGS@
26 DEFS = $(IBINDIR) $(ISYSCONFDIR) $(IFONTDIR) $(IIMAGEDIR) $(ISARGPHPDIR) $(ILOCALEDIR) @DEFS@
27 LIBS = @LIBS@
28 SRCDIR = .
29 VPATH = .
30 INSTALL = cp
31
32 INSTALL_PROGRAM = $(INSTALL)
33
34 SRCS = 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 \
38 smartfilter.c denied.c authfail.c charset.c \
39 squidguard_log.c squidguard_report.c auth.c download.c grepday.c \
40 dansguardian_log.c dansguardian_report.c realtime.c btree_cache.c \
41 usertab.c userinfo.c longline.c
42
43 OBJS = $(patsubst %.c,%.o,$(SRCS))
44
45 DISTFILES = $(SRCS) ABOUT-NLS
46
47 SUBDIRS = po
48 .PHONY: all install clean uninstall mostlyclean distclean update-po $(SUBDIRS)
49
50 all: sarg
51
52 .c.o:
53 $(CC) -c -I. $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
54
55 *.o: include/conf.h include/info.h include/defs.h
56
57 sarg: $(OBJS)
58 $(CC) $(LDFLAGS) $(OBJS) -o $@ $(LIBS) $(LIBCRYPT)
59
60 $(SUBDIRS):
61 $(MAKE) -C $@
62
63 install: all install-po
64 -@if test ! -d $(DESTDIR)$(BINDIR); then \
65 echo "creating $(DESTDIR)$(BINDIR)"; \
66 mkdir -p $(DESTDIR)$(BINDIR); \
67 fi
68 -@if test ! -d $(DESTDIR)$(MANDIR); then \
69 echo "creating $(DESTDIR)$(MANDIR)"; \
70 mkdir -p $(DESTDIR)$(MANDIR); \
71 fi
72 -@if test ! -d $(DESTDIR)$(SYSCONFDIR); then \
73 echo "creating $(DESTDIR)$(SYSCONFDIR)"; \
74 mkdir -p $(DESTDIR)$(SYSCONFDIR); \
75 fi
76 -@if test ! -d $(DESTDIR)$(IMAGEDIR); then \
77 echo "Creating $(DESTDIR)$(IMAGEDIR)"; \
78 mkdir -p $(DESTDIR)$(IMAGEDIR); \
79 fi
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; \
87 else \
88 cp sarg.conf $(DESTDIR)$(SYSCONFDIR)/sarg.conf.default; \
89 fi
90 cp ./exclude_codes $(DESTDIR)$(SYSCONFDIR);
91 cp ./user_limit_block $(DESTDIR)$(SYSCONFDIR);
92 cp -r ./images/* $(DESTDIR)$(IMAGEDIR);
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
100 cp -r ./css.tpl $(DESTDIR)$(SYSCONFDIR);
101 -@if test -n "$(SARGPHPDIR)" -a -d "$(DESTDIR)$(SARGPHPDIR)"; then \
102 cp -r ./sarg-php $(DESTDIR)$(SARGPHPDIR); \
103 fi
104
105 uninstall: uninstall-po
106 rm -f $(DESTDIR)$(BINDIR)/sarg
107 rm -f $(DESTDIR)$(MANDIR)/sarg.1
108
109 TAGS: $(SRCS)
110 etags $(SRCS)
111
112 clean: clean-po
113 rm -f sarg *.o core
114
115 mostlyclean: clean
116
117 distclean: clean
118 rm -f Makefile config.status config.cache config.log
119
120 realclean: distclean
121 rm -f TAGS
122
123 install-po:
124 $(MAKE) -C po install
125
126 uninstall-po:
127 $(MAKE) -C po uninstall
128
129 clean-po:
130 $(MAKE) -C po clean
131
132 update-po:
133 $(MAKE) -C po update-po
134
135 po-from-tp:
136 @echo "Fetching latest po files from translationprojetc.org"
137 rsync -Lrtvz -u translationproject.org::tp/latest/sarg/ po