Adjust deps.mk to rebuild libelfin when needed after 'make distclean'.

This split the old target in two, one doing git clone and the other
building the libraries.
This commit is contained in:
Petter Reinholdtsen 2016-08-11 22:40:21 +02:00
parent 54c526d5c7
commit a93ddcb81b

View File

@ -12,10 +12,14 @@ CXXFLAGS += -I$(ROOT)/deps
endif
# Get and build libelfin
$(ROOT)/deps/libelfin:
$(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/ccurtsinger/libelfin $(ROOT)/deps/libelfin
$(ROOT)/deps/libelfin/elf/libelf++.a: $(ROOT)/deps/libelfin/Makefile
@echo $(LOG_PREFIX) Building libelfin $(LOG_SUFFIX)
@cd $(ROOT)/deps/libelfin; make MAKEFLAGS="-j1" CC=$(CC) CXX=$(CXX)