mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
21 lines
510 B
Makefile
21 lines
510 B
Makefile
|
FAKETIME_REPO := git://github.com/wolfcw/libfaketime.git
|
||
|
FAKETIME_LOCAL_REPO := $(CURDIR)/faketime
|
||
|
FAKETIME_BRANCH := master
|
||
|
FAKETIME_BINARY := $(FAKETIME_PREFIX)/bin/faketime
|
||
|
|
||
|
.PHONY: faketime
|
||
|
|
||
|
faketime: $(FAKETIME_BINARY)
|
||
|
|
||
|
clean:
|
||
|
$(RM) -r $(FAKETIME_LOCAL_REPO)
|
||
|
|
||
|
$(FAKETIME_BINARY): $(FAKETIME_LOCAL_REPO)
|
||
|
cd $(FAKETIME_LOCAL_REPO) && \
|
||
|
git checkout $(FAKETIME_BRANCH) && \
|
||
|
PREFIX=$(FAKETIME_LOCAL_REPO)/src make
|
||
|
|
||
|
$(FAKETIME_LOCAL_REPO):
|
||
|
git clone $(FAKETIME_REPO) $(FAKETIME_LOCAL_REPO)
|
||
|
|