Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6dff0ca4e5
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (25 sloc) 0.962 kb
SOURCES = $(shell find ./lib -name '*.js')
TESTS = $(shell find ./test -name '*.js')
CURR_HEAD_SHA := $(firstword $(shell git show-ref --hash HEAD | cut -b -6) master)
GITHUB_PROJECT_NAME := Sannis/node-ubjson
API_SRC_URL_FMT := ${API_GITHUB_URL}/blob/${CURR_HEAD_SHA}/{file}\#L{line}
API_DEST_DIR := ./doc/api
all: npm-install
npm-install: npm-install-stamp
npm-install-stamp: ./package.json
npm install
touch npm-install-stamp
test: npm-install
@./node_modules/.bin/nodeunit ./test/test-*.js
lint: npm-install
@./node_modules/.bin/nodelint --config ./nodelint.cfg $(SOURCES) $(TESTS)
doc-api: npm-install ./lib/*
rm -rf ${API_DEST_DIR}
./node_modules/.bin/ndoc -o ${API_DEST_DIR} --gh-ribbon=${API_GITHUB_URL} --link-format=${API_SRC_URL_FMT} ./lib
doc: doc-api
pages: doc
@echo "Update gh-pages branch:"
.PHONY: all npm-install test lint doc pages
Jump to Line
Something went wrong with that request. Please try again.