From ff071c7f1a5e5b7cb3b994297e46168acae30a7e Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Sun, 25 Oct 2009 03:26:51 -0700 Subject: makefile: auto-rebuild contribs if needed Signed-off-by: Steven Noonan --- crawl-ref/source/makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source') 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 -- cgit v1.2.3-54-g00ecf