summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2010-06-13 23:51:43 +0200
committerantirez <antirez@gmail.com>2010-06-13 23:51:43 +0200
commit3042fb0537c3ada4dd2882d4f800cc6080169596 (patch)
tree674439a0d678557d084d9fcbacf22f3c0ec12796
parent7c4fc71c156f1abdc64dba078030af98f3452b67 (diff)
downloadredis-3042fb0537c3ada4dd2882d4f800cc6080169596.tar.gz
Fixed deps in makefile and mkreleasehdr.sh script to really take advantage of the new trick to avoid recompilation of redis.c on git sha1 or dirty status change
-rw-r--r--Makefile3
-rwxr-xr-xmkreleasehdr.sh2
-rw-r--r--redis.c1
3 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 38b8448da..96dddd69e 100644
--- a/Makefile
+++ b/Makefile
@@ -48,8 +48,7 @@ redis-check-dump.o: redis-check-dump.c lzf.h
redis-cli.o: redis-cli.c fmacros.h anet.h sds.h adlist.h zmalloc.h \
linenoise.h
redis.o: redis.c fmacros.h config.h redis.h ae.h sds.h anet.h dict.h \
- adlist.h zmalloc.h lzf.h pqsort.h zipmap.h ziplist.h sha1.h release.h \
- staticsymbols.h
+ adlist.h zmalloc.h lzf.h pqsort.h zipmap.h ziplist.h sha1.h staticsymbols.h
release.o: release.c release.h
sds.o: sds.c sds.h zmalloc.h
sha1.o: sha1.c sha1.h
diff --git a/mkreleasehdr.sh b/mkreleasehdr.sh
index 45f5173a4..30984160e 100755
--- a/mkreleasehdr.sh
+++ b/mkreleasehdr.sh
@@ -6,4 +6,4 @@ test -f release.h || touch release.h
(cat release.h | grep DIRTY | grep $GIT_DIRTY) && exit 0 # Already uptodate
echo "#define REDIS_GIT_SHA1 \"$GIT_SHA1\"" > release.h
echo "#define REDIS_GIT_DIRTY \"$GIT_DIRTY\"" >> release.h
-touch redis.c # Force recompile of redis.c
+touch release.c # Force recompile of release.c
diff --git a/redis.c b/redis.c
index 8f5e8f47f..3fe9af1c7 100644
--- a/redis.c
+++ b/redis.c
@@ -77,7 +77,6 @@
#include "zipmap.h" /* Compact dictionary-alike data structure */
#include "ziplist.h" /* Compact list data structure */
#include "sha1.h" /* SHA1 is used for DEBUG DIGEST */
-#include "release.h" /* Release and/or git repository information */
/* Error codes */
#define REDIS_OK 0