From 637779681f02f2edd7c178706588790d00065e85 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Thu, 3 Jan 2019 20:52:10 +0100 Subject: [PATCH] Ensure sources are unique --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7c5d28e..267466c 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ LIBDIR = libs TESTDIR = tests BINDIR = . -SRCS := $(shell find -L $(SRCDIR) $(LIBDIR) $(TESTDIR) -type f -name '*.c' | egrep -v 'deps/|build/' ) src/tests_autogen.c +SRCS := $(shell (echo src/tests_autogen.c; find -L $(SRCDIR) $(LIBDIR) $(TESTDIR) -type f -name '*.c' | egrep -v 'deps/|build/') | sort | uniq ) INCS := $(shell find -L $(SRCDIR) $(LIBDIR) $(TESTDIR) $(INCDIR) -type d -name 'include'| egrep -v 'deps/|build/' ) INCFLAGS := $(patsubst %,-I %, $(INCS)) OBJS := $(patsubst %.c, build/%.o, $(SRCS))