-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile makes git submodule update if hiredis is missing (#56)
This PR introduces a Makefile rule that ensures the hiredis dependency is present before the build process. Specifically, it checks for the existence of ./deps/hiredis/hiredis.h and, if missing, automatically initializes and updates the hiredis submodule by running the command: git submodule update --init deps/hiredis
- Loading branch information
Showing
2 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |