From 51a330d58957437996ba03579265c266fb27a5e4 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Sun, 25 Oct 2009 10:01:57 -0700 Subject: makefile: replace 'atomic' with simplified resulting code Signed-off-by: Steven Noonan --- crawl-ref/source/makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/makefile') diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile index 22856a4385..1b36d16eb4 100644 --- a/crawl-ref/source/makefile +++ b/crawl-ref/source/makefile @@ -552,11 +552,6 @@ PKG_TIDY_LIST := $(UTIL)*.o $(LEVCOMP) *.o \ $(UTIL)*.tab.cc $(UTIL)*.tab.h $(UTIL)*.lex.cc *.ixx PKG_EXCLUDES := $(PWD)/misc/src-pkg-excludes.lst -sp := -sp += -sentinel = .sentinel.$(subst $(sp),_,$(subst /,_,$1)) -atomic = $(eval $1: $(call sentinel,$1) ; @:)$(call sentinel,$1): $2 ; @touch $$@ $(foreach t,$1,$(if $(wildcard $t),,$(shell rm -f $(call sentinel,$1)))) - .PHONY: all test install clean clean-contrib distclean debug profile wizard ########################################################################## @@ -731,8 +726,12 @@ $(OBJECTS:%.o=%.cc): $(CC_DEP) $(TILEDEFHDRS) $(CONTRIB_LIBS) # Contribs # -$(call atomic,$(CONTRIB_LIBS),.contrib-ok) +$(CONTRIB_LIBS): .contrib-libs + @: + +.contrib-libs: +@$(MAKE) -C contrib $(CONTRIBS) + @touch .contrib-libs ############################################################################# # Build unrandart data -- cgit v1.2.3-54-g00ecf