Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build hiredis only for 'make test' rule #56

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ export LIBRDB_VERSION

# ------------------------- ALL --------------------------------------

all:
$(MAKE) -C deps -f Makefile all
$(MAKE) -C src/lib -f Makefile all
$(MAKE) -C src/ext -f Makefile all
$(MAKE) -C src/cli -f Makefile all
$(MAKE) -C examples -f Makefile all
all: ./deps/hiredis/hiredis.h
$(MAKE) -C deps all
$(MAKE) -C src/lib all
$(MAKE) -C src/ext all
$(MAKE) -C src/cli all
$(MAKE) -C examples all

clean:
$(MAKE) -C deps -f Makefile clean
$(MAKE) -C src/lib -f Makefile clean
$(MAKE) -C src/ext -f Makefile clean
$(MAKE) -C src/cli -f Makefile clean
$(MAKE) -C examples -f Makefile clean
$(MAKE) -C test -f Makefile clean
$(MAKE) -C deps clean
$(MAKE) -C src/lib clean
$(MAKE) -C src/ext clean
$(MAKE) -C src/cli clean
$(MAKE) -C examples clean
$(MAKE) -C test clean
rm -f librdb.pc
rm -f librdb-ext.pc

Expand All @@ -44,6 +44,9 @@ distclean: clean
example: all
cd examples && export LD_LIBRARY_PATH=../lib && ./example1

./deps/hiredis/hiredis.h:
git submodule update --init deps/hiredis

# ------------------------- DEBUG -------------------------------------

debug:
Expand Down
8 changes: 4 additions & 4 deletions deps/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
all:
$(MAKE) -C redis -f Makefile all
$(MAKE) -C hiredis -f Makefile all
$(MAKE) -C redis all
$(MAKE) -C hiredis all

clean:
$(MAKE) -C redis -f Makefile clean
$(MAKE) -C hiredis -f Makefile all
$(MAKE) -C redis clean
$(MAKE) -C hiredis all


.PHONY: all clean
Loading