summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-12-14 23:10:06 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-12-14 23:10:06 -0500
commitd797b453f25dba089a52281fd93fb04e75350444 (patch)
tree0d1e892157d348dc3ef4e0478ae98651dc615a10
parent79645cf1ba246d393cea94f274c15c34519c3f88 (diff)
Makefile: correctly add dependencies on dispatch.h
-rw-r--r--nslcd/Makefile.am2
1 files changed, 2 insertions, 0 deletions
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 */' && \