summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-25 03:26:51 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-25 03:27:20 -0700
commitff071c7f1a5e5b7cb3b994297e46168acae30a7e (patch)
tree9e3234b53a15534f9b16cd07c231dbda3ab5cd5f /crawl-ref/source/makefile
parentc0c34e74af3d4586e592c3e3b03f7c3d876e6847 (diff)
downloadcrawl-ref-ff071c7f1a5e5b7cb3b994297e46168acae30a7e.tar.gz
crawl-ref-ff071c7f1a5e5b7cb3b994297e46168acae30a7e.zip
makefile: auto-rebuild contribs if needed
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r--crawl-ref/source/makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile
index da620bbf7c..4777bb0c81 100644
--- a/crawl-ref/source/makefile
+++ b/crawl-ref/source/makefile
@@ -735,7 +735,9 @@ $(CONTRIB_LIBS): .contrib-libs
.contrib-libs:
+@$(MAKE) -C contrib $(CONTRIBS)
- @touch .contrib-libs
+ @touch $@
+
+$(foreach t,$(CONTRIB_LIBS),$(if $(wildcard $t),,$(shell rm -f .contrib-libs)))
#############################################################################
# Build unrandart data