From: Frédéric Marchal Date: Thu, 27 Jan 2011 19:51:25 +0000 (+0000) Subject: Have a more compatible Makefile ? X-Git-Tag: v2.3.2~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8028a0595ba81bce3bf031d3fc344f3a23268bb1;p=thirdparty%2Fsarg.git Have a more compatible Makefile ? The patsubst function introduced in sarg 2.3 to avoid the duplicate file name lists in Makefile.in is a GNU make extension that is not supported by BSD make. Therefore sarg 2.3 fails to compile on that system with the default make command. According to the GNU make documentation, the variable substitution should be more compatible with other implementations but it isn't clear whether it is accepted by BSD make or not. Let's try it. --- diff --git a/Makefile.in b/Makefile.in index ff5370e..477c9fb 100644 --- a/Makefile.in +++ b/Makefile.in @@ -40,7 +40,7 @@ SRCS = util.c log.c report.c topuser.c email.c sort.c html.c \ dansguardian_log.c dansguardian_report.c realtime.c btree_cache.c \ usertab.c userinfo.c longline.c -OBJS = $(patsubst %.c,%.o,$(SRCS)) +OBJS = $(SRCS:.c=.o) DISTFILES = $(SRCS) ABOUT-NLS