]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Proper include dependencies in Makefile
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Sat, 23 Feb 2013 18:40:22 +0000 (19:40 +0100)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Sat, 23 Feb 2013 18:40:22 +0000 (19:40 +0100)
The Makefile build the necessary source files when a header file is
changed.

Makefile.in

index 1777f8d8c377b731cdab588ba76e478e898e9bb5..bd121d474704b129b75d7f7450b44ad55459e1a8 100644 (file)
@@ -45,6 +45,21 @@ SRCS = util.c log.c report.c topuser.c email.c sort.c html.c \
        filelist.c readlog.c \
        readlog_squid.c readlog_sarg.c readlog_extlog.c readlog_common.c
 
+*.o: include/conf.h include/info.h include/defs.h
+
+authfail.o: include/readlog.h
+denied.o: include/readlog.h
+download.o: include/readlog.h
+filelist.o: include/stringbuffer.h
+log.o: include/readlog.h
+readlog.o: include/readlog.h
+readlog_common.o: include/readlog.h
+readlog_extlog.o: include/readlog.h
+readlog_sarg.o: include/readlog.h
+readlog_squid.o: include/readlog.h
+stringbuffer.o: include/stringbuffer.h
+userinfo.o: include/stringbuffer.h
+
 OBJS = $(SRCS:.c=.o)
 
 DISTFILES = $(SRCS) ABOUT-NLS
@@ -57,8 +72,6 @@ all: sarg
 .c.o:
        $(CC) -c -I. $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
 
-*.o: include/conf.h include/info.h include/defs.h
-
 sarg: $(OBJS)
        $(CC) $(LDFLAGS) $(OBJS) -o $@ $(LIBS) $(LIBCRYPT)