mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Makefile: don't build dependencies file for clean, distclean.
This commit is contained in:
parent
10361829f9
commit
0610683d5e
@ -16,6 +16,7 @@ release_hdr := $(shell sh -c './mkreleasehdr.sh')
|
|||||||
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
|
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
|
||||||
OPTIMIZATION?=-O2
|
OPTIMIZATION?=-O2
|
||||||
DEPENDENCY_TARGETS=hiredis linenoise lua geohash-int
|
DEPENDENCY_TARGETS=hiredis linenoise lua geohash-int
|
||||||
|
NODEPS:=clean distclean
|
||||||
|
|
||||||
# Default settings
|
# Default settings
|
||||||
STD=-std=c99 -pedantic -DREDIS_STATIC=''
|
STD=-std=c99 -pedantic -DREDIS_STATIC=''
|
||||||
@ -145,7 +146,9 @@ all: $(REDIS_SERVER_NAME) $(REDIS_SENTINEL_NAME) $(REDIS_CLI_NAME) $(REDIS_BENCH
|
|||||||
Makefile.dep:
|
Makefile.dep:
|
||||||
-$(REDIS_CC) -MM *.c > Makefile.dep 2> /dev/null || true
|
-$(REDIS_CC) -MM *.c > Makefile.dep 2> /dev/null || true
|
||||||
|
|
||||||
|
ifeq (0, $(words $(findstring $(MAKECMDGOALS), $(NODEPS))))
|
||||||
-include Makefile.dep
|
-include Makefile.dep
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user