summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatt Stancliff <matt@genges.com>2015-01-26 09:41:11 -0500
committerMatt Stancliff <matt@genges.com>2015-01-26 09:41:11 -0500
commit74f53e30dbee94525ee23ae344c4fd30f5ddde87 (patch)
tree9d03480bcb96c936ce1f7a08a539d084639b51ad /Makefile
parent4355ab3c8fa7ad98b8a21267f84ebbaf47e2d2f8 (diff)
Fix pkgconf build dependency
We need to re-gen pkgconf when the version changes, and the version is kept in hiredis.h, so make pkgconf depend on hiredis.h.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c2cee1a..30c865b 100644
--- a/Makefile
+++ b/Makefile
@@ -147,7 +147,7 @@ endif
INSTALL?= cp -a
-$(PKGCONFNAME): $(PKGCONF_SRCNAME)
+$(PKGCONFNAME): hiredis.h
@echo "Generating $@ for pkgconfig..."
@echo prefix=$(PREFIX) > $@
@echo exec_prefix=$${prefix} >> $@
@@ -155,7 +155,7 @@ $(PKGCONFNAME): $(PKGCONF_SRCNAME)
@echo includedir=$(INSTALL_INCLUDE_PATH) >> $@
@echo >> $@
@echo Name: hiredis >> $@
- @echo Description: Minimalistic C client library for the Redis database. >> $@
+ @echo Description: Minimalistic C client library for Redis. >> $@
@echo Version: $(HIREDIS_MAJOR).$(HIREDIS_MINOR).$(HIREDIS_PATCH) >> $@
@echo Libs: -L$${libdir} -lhiredis >> $@
@echo Cflags: -I$${includedir} -D_FILE_OFFSET_BITS=64 >> $@