add 'versioncheck' to 'make check'
This commit is contained in:
parent
0b10fdb3b3
commit
38bc7c4037
2
Makefile
2
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:
|
||||
|
@ -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",
|
||||
|
@ -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.
|
||||
#
|
||||
|
@ -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 ?=
|
||||
|
@ -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):
|
||||
|
Reference in New Issue
Block a user