diff options
-rw-r--r-- | crawl-ref/source/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/Makefile b/crawl-ref/source/Makefile index d6a07621c3..296fe0fa30 100644 --- a/crawl-ref/source/Makefile +++ b/crawl-ref/source/Makefile @@ -1144,8 +1144,11 @@ ifneq ($(GOALS),$(filter clean test %-windows,$(GOALS))) # This should eliminate an annoying need to use 'make clean' every time. # -TRACK_CFLAGS = $(subst ','\'',$(CC) $(CXX) $(ALL_CFLAGS)) # (stray ' for highlights) -OLD_CFLAGS = $(shell cat .cflags 2>/dev/null) +TRACK_CFLAGS = $(strip $(subst ','\'',$(CC) $(CXX) $(ALL_CFLAGS))) + # (stray ' for highlights) +OLD_CFLAGS = $(strip $(subst ','\'',$(shell cat .cflags 2>/dev/null))) + # (stray ' for highlights) + ifneq ($(TRACK_CFLAGS),$(OLD_CFLAGS)) NEED_REBUILD = y endif |