From 8028a0595ba81bce3bf031d3fc344f3a23268bb1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Thu, 27 Jan 2011 19:51:25 +0000 Subject: [PATCH] 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. --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2