Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (35 sloc) 1.121 kB
NODE_JS = $(if $(shell test -f /usr/bin/nodejs && echo "true"),nodejs,node)
NODE_BLD = node-waf
NODE_LIB_PATH = ~/.node_modules
BASE = .
INSTALL_PATH = $(NODE_LIB_PATH)/nodegit
NATURAL_DOCS_PATH = $(BASE)/vendor/naturaldocs/
all: build
update: clean config build uninstall install
config:
@@$(BASE)/configure
build:
@@$(NODE_BLD) build
debug:
@@$(NODE_BLD) debug
install:
@@mkdir -p $(INSTALL_PATH)
@@mkdir -p $(INSTALL_PATH)/build/Release
@@mkdir -p $(INSTALL_PATH)/lib
@@mkdir -p $(INSTALL_PATH)/vendor
@@cp -f $(BASE)/build/Release/nodegit.node $(INSTALL_PATH)/build/Release/nodegit.node
@@cp -f $(BASE)/lib/* $(INSTALL_PATH)/lib/
@@cp -rf $(BASE)/vendor/* $(INSTALL_PATH)/vendor/
@@cp -f $(BASE)/package.json $(INSTALL_PATH)/
@@echo "Installed to $(INSTALL_PATH)"
uninstall:
@@rm -rf $(INSTALL_PATH)
@@echo "Uninstalled from $(INSTALL_PATH)"
clean:
@@rm -rf $(BASE)/build/
@@rm -rf $(BASE)/vendor/libgit2/build/
lint:
@@$(NODE_JS) $(BASE)/util/hint-check.js
doc:
@@$(NATURAL_DOCS_PATH)/NaturalDocs -i $(BASE)/include -o HTML $(BASE)/doc -p $(BASE)/doc -s Theme
.PHONY: test build doc
Jump to Line
Something went wrong with that request. Please try again.