diff --git a/Makefile b/Makefile index bf07b95..21ed1e1 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,8 @@ test-integration: clean:: rm -f triton-*.tgz +check:: versioncheck + # Ensure CHANGES.md and package.json have the same version. .PHONY: versioncheck versioncheck: diff --git a/package.json b/package.json index adb8fcc..aeb5d0d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "triton", "description": "Joyent Triton CLI and client (https://www.joyent.com/triton)", - "version": "3.6.1", + "version": "4.0.0", "author": "Joyent (joyent.com)", "dependencies": { "assert-plus": "0.2.0", diff --git a/tools/mk/Makefile.defs b/tools/mk/Makefile.defs index 50a13c5..85139d7 100644 --- a/tools/mk/Makefile.defs +++ b/tools/mk/Makefile.defs @@ -1,6 +1,14 @@ # -*- mode: makefile -*- # -# Copyright (c) 2012, Joyent, Inc. All rights reserved. +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +# +# Copyright (c) 2014, Joyent, Inc. +# + # # Makefile.defs: common defines. # diff --git a/tools/mk/Makefile.deps b/tools/mk/Makefile.deps index eeae27f..1cffbe7 100644 --- a/tools/mk/Makefile.deps +++ b/tools/mk/Makefile.deps @@ -1,6 +1,14 @@ # -*- mode: makefile -*- # -# Copyright (c) 2012, Joyent, Inc. All rights reserved. +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +# +# Copyright (c) 2014, Joyent, Inc. +# + # # Makefile.deps: Makefile for including common tools as dependencies # @@ -42,3 +50,5 @@ $(JSSTYLE_EXEC): | deps/jsstyle/.git RESTDOWN_EXEC ?= deps/restdown/bin/restdown RESTDOWN ?= python $(RESTDOWN_EXEC) $(RESTDOWN_EXEC): | deps/restdown/.git + +EXTRA_DOC_DEPS ?= diff --git a/tools/mk/Makefile.targ b/tools/mk/Makefile.targ index b6e642b..9950458 100644 --- a/tools/mk/Makefile.targ +++ b/tools/mk/Makefile.targ @@ -1,6 +1,14 @@ # -*- mode: makefile -*- # -# Copyright (c) 2012, Joyent, Inc. All rights reserved. +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +# +# Copyright (c) 2014, Joyent, Inc. +# + # # Makefile.targ: common targets. # @@ -81,9 +89,9 @@ # # JSSTYLE_FLAGS Additional flags to pass through to jsstyle # -# RESTDOWN_EXT By default '.restdown' is required for DOC_FILES -# (see above). If you want to use, say, '.md' instead, then -# set 'RESTDOWN_EXT=.md' in your Makefile. +# RESTDOWN_EXT By default '.md' is required for DOC_FILES (see above). +# If you want to use, say, '.restdown' instead, then set +# 'RESTDOWN_EXT=.restdown' in your Makefile. # # @@ -100,7 +108,7 @@ JSSTYLE ?= jsstyle MKDIR ?= mkdir -p MV ?= mv RESTDOWN_FLAGS ?= -RESTDOWN_EXT ?= .restdown +RESTDOWN_EXT ?= .md RMTREE ?= rm -rf JSL_FLAGS ?= --nologo --nosummary @@ -201,7 +209,7 @@ check-jsstyle: $(JSSTYLE_EXEC) $(JSSTYLE) $(JSSTYLE_FLAGS) $(JSSTYLE_FILES) .PHONY: check -check: check-jsl check-json $(JSSTYLE_TARGET) check-bash +check:: check-jsl check-json $(JSSTYLE_TARGET) check-bash @echo check ok .PHONY: clean @@ -256,7 +264,7 @@ DOC_MEDIA_FILES_BUILD := $(DOC_MEDIA_FILES:%=$(DOC_BUILD)/media/%) # to get there. # .PHONY: docs -docs: \ +docs:: \ $(DOC_FILES:%$(RESTDOWN_EXT)=$(DOC_BUILD)/%.html) \ $(DOC_FILES:%$(RESTDOWN_EXT)=$(DOC_BUILD)/%.json) \ $(DOC_MEDIA_FILES_BUILD) @@ -288,7 +296,8 @@ $(DOC_MEDIA_FILES_BUILD): | $(DOC_MEDIA_DIRS_BUILD) $(DOC_BUILD)/%: docs/% | $(DOC_BUILD) $(CP) $< $@ -docs/%.json docs/%.html: docs/%$(RESTDOWN_EXT) | $(DOC_BUILD) $(RESTDOWN_EXEC) +docs/%.json docs/%.html: docs/%$(RESTDOWN_EXT) | $(DOC_BUILD) $(RESTDOWN_EXEC) \ + $(EXTRA_DOC_DEPS) $(RESTDOWN) $(RESTDOWN_FLAGS) -m $(DOC_BUILD) $< $(DOC_BUILD):