From: Frederic Marchal Date: Sat, 23 Feb 2013 18:40:22 +0000 (+0100) Subject: Proper include dependencies in Makefile X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4395f9c9fdf1a84113772a3a6d933e52a8ee63be;p=thirdparty%2Fsarg.git Proper include dependencies in Makefile The Makefile build the necessary source files when a header file is changed. --- diff --git a/Makefile.in b/Makefile.in index 1777f8d..bd121d4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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)