summaryrefslogtreecommitdiffstats
path: root/Rules.mk
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-04-13 09:49:48 -0700
committerGravatar Thiago Macieira <thiago@macieira.org>2013-04-23 00:06:32 -0700
commita0b523a5afc91c3816f6c44e61f8a05d5fe5e80a (patch)
tree98451fc70242cba15b64e08045861992fa95991c /Rules.mk
parentd773c02bf36f3b09584123bfd0e84a56304b33fb (diff)
downloadsubsurface-a0b523a5afc91c3816f6c44e61f8a05d5fe5e80a.tar.gz
Get the list of dependency includes from the SOURCES list
Signed-off-by: Thiago Macieira <thiago@macieira.org>
Diffstat (limited to 'Rules.mk')
-rw-r--r--Rules.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/Rules.mk b/Rules.mk
index e7108fd4b..bc135aab7 100644
--- a/Rules.mk
+++ b/Rules.mk
@@ -30,8 +30,6 @@ MOC_OBJS = $(HEADERS_NEEDING_MOC:.h=.moc.o)
ALL_OBJS = $(OBJS) $(MOC_OBJS)
-DEPS = $(wildcard .dep/*.dep)
-
all: $(NAME)
$(NAME): gen_version_file $(ALL_OBJS) $(MSGOBJS) $(INFOPLIST)
@@ -205,4 +203,5 @@ clean:
confclean: clean
rm -f $(CONFIGFILE)
+DEPS = $(addprefix .dep/,$(C_SOURCES:.c=.o.dep) $(CXX_SOURCES:.cpp=.o.dep))
-include $(DEPS)