Skip to content

Commit

Permalink
Use variable for the git command in makefile, allowing it to be repla…
Browse files Browse the repository at this point in the history
…ced to disable git clone.
  • Loading branch information
petterreinholdtsen committed Nov 16, 2016
1 parent 424302f commit b9daf20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deps.mk
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Targets to fetch and build external dependencies

GIT = git

# Get ccutil (header only)
$(ROOT)/deps/ccutil:
@echo $(LOG_PREFIX) Checking out ccutil includes $(LOG_SUFFIX)
@mkdir -p $(ROOT)/deps
@git clone git://github.com/ccurtsinger/ccutil $(ROOT)/deps/ccutil
@$(GIT) clone git://github.com/ccurtsinger/ccutil $(ROOT)/deps/ccutil

# Update build settings to use ccutil
ifneq (,$(findstring ccutil,$(PREREQS)))
Expand All @@ -17,7 +19,7 @@ $(ROOT)/deps/libelfin: $(ROOT)/deps/libelfin/elf/libelf++.a
$(ROOT)/deps/libelfin/Makefile:
@echo $(LOG_PREFIX) Checking out libelfin $(LOG_SUFFIX)
@mkdir -p $(ROOT)/deps
@git clone git://github.com/aclements/libelfin $(ROOT)/deps/libelfin
@$(GIT) clone git://github.com/aclements/libelfin $(ROOT)/deps/libelfin

$(ROOT)/deps/libelfin/elf/libelf++.a: $(ROOT)/deps/libelfin/Makefile
@echo $(LOG_PREFIX) Building libelfin $(LOG_SUFFIX)
Expand Down

0 comments on commit b9daf20

Please sign in to comment.