Commit 74f53e30 authored by Matt Stancliff's avatar Matt Stancliff
Browse files

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.
parent 4355ab3c
...@@ -147,7 +147,7 @@ endif ...@@ -147,7 +147,7 @@ endif
INSTALL?= cp -a INSTALL?= cp -a
$(PKGCONFNAME): $(PKGCONF_SRCNAME) $(PKGCONFNAME): hiredis.h
@echo "Generating $@ for pkgconfig..." @echo "Generating $@ for pkgconfig..."
@echo prefix=$(PREFIX) > $@ @echo prefix=$(PREFIX) > $@
@echo exec_prefix=$${prefix} >> $@ @echo exec_prefix=$${prefix} >> $@
...@@ -155,7 +155,7 @@ $(PKGCONFNAME): $(PKGCONF_SRCNAME) ...@@ -155,7 +155,7 @@ $(PKGCONFNAME): $(PKGCONF_SRCNAME)
@echo includedir=$(INSTALL_INCLUDE_PATH) >> $@ @echo includedir=$(INSTALL_INCLUDE_PATH) >> $@
@echo >> $@ @echo >> $@
@echo Name: hiredis >> $@ @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 Version: $(HIREDIS_MAJOR).$(HIREDIS_MINOR).$(HIREDIS_PATCH) >> $@
@echo Libs: -L$${libdir} -lhiredis >> $@ @echo Libs: -L$${libdir} -lhiredis >> $@
@echo Cflags: -I$${includedir} -D_FILE_OFFSET_BITS=64 >> $@ @echo Cflags: -I$${includedir} -D_FILE_OFFSET_BITS=64 >> $@
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment