From d797b453f25dba089a52281fd93fb04e75350444 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 14 Dec 2014 23:10:06 -0500 Subject: Makefile: correctly add dependencies on dispatch.h --- nslcd/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nslcd/Makefile.am b/nslcd/Makefile.am index d5f908c..0cdb313 100644 --- a/nslcd/Makefile.am +++ b/nslcd/Makefile.am @@ -36,6 +36,8 @@ nslcd_LDADD = ../common/libtio.a ../common/libdict.a \ ../common/libexpr.a ../compat/libcompat.a \ @nslcd_LIBS@ @PTHREAD_LIBS@ +$(patsubst %.c,%.o,$(shell grep -lF common.h *.c)): dispatch.h + dispatch.c: $(filter db_%.c,$(nslcd_SOURCES)) $(filter-out .deps/%,$(MAKEFILE_LIST)) { \ echo '#define _XOPEN_SOURCE 500 /* for pthread_rwlock_t */' && \ -- cgit v1.2.3