summaryrefslogtreecommitdiff
path: root/lib/make/make.thornlib
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-12-07 21:54:44 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-12-07 21:54:44 +0000
commita77736eb86b31c21fa9df864b422874520550106 (patch)
tree7d754c773e749a32caab153e5932cd06bf1fea93 /lib/make/make.thornlib
parent468abb6ba8baf63f39ba28f7bc528c1b37c843e0 (diff)
Only need to use dependencies for local objects in the rule, as the rest
of the dependencies will be dealt with by the recursive make into subdirectories. This fixes PR 177. Thanks to Erik for pointing out the fix. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1912 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/make.thornlib')
-rw-r--r--lib/make/make.thornlib5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/make/make.thornlib b/lib/make/make.thornlib
index d17cc9ac..5f5c9d26 100644
--- a/lib/make/make.thornlib
+++ b/lib/make/make.thornlib
@@ -58,7 +58,10 @@ SUBDIRS = $(LOCAL_SUBDIRS)
# Turn source file names into object file names
OBJS = $(SRCS:%=%.o)
-$(NAME): $(addsuffix .check, $(SUBDIRS)) $(OBJS) $(SRCDIR)/make.code.defn $(foreach DIR,$(SUBDIRS), $(SRCDIR)/$(DIR)/make.code.defn)
+# Turn local source file names into object file names
+LOCAL_OBJS = $(LOCAL_SRCS:%=%.o)
+
+$(NAME): $(addsuffix .check, $(SUBDIRS)) $(LOCAL_OBJS) $(SRCDIR)/make.code.defn $(foreach DIR,$(SUBDIRS), $(SRCDIR)/$(DIR)/make.code.defn)
@echo $(DIVIDER)
if [ -r $(NAME) ] ; then echo Updating $(NAME) ; else echo Creating $(NAME) ; fi
if [ -r $@ ] ; then rm $@ ; fi