2012-09-20 19:38:46 +00:00
|
|
|
# -*- mode: makefile -*-
|
|
|
|
#
|
|
|
|
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
|
|
|
|
#
|
|
|
|
# Makefile.deps: Makefile for including common tools as dependencies
|
|
|
|
#
|
|
|
|
# NOTE: This makefile comes from the "eng" repo. It's designed to be dropped
|
|
|
|
# into other repos as-is without requiring any modifications. If you find
|
|
|
|
# yourself changing this file, you should instead update the original copy in
|
|
|
|
# eng.git and then update your repo to use the new version.
|
|
|
|
#
|
|
|
|
# This file is separate from Makefile.targ so that teams can choose
|
|
|
|
# independently whether to use the common targets in Makefile.targ and the
|
|
|
|
# common tools here.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# javascriptlint
|
|
|
|
#
|
|
|
|
JSL_EXEC ?= deps/javascriptlint/build/install/jsl
|
|
|
|
JSL ?= $(JSL_EXEC)
|
|
|
|
|
|
|
|
$(JSL_EXEC): | deps/javascriptlint/.git
|
|
|
|
cd deps/javascriptlint && make install
|
|
|
|
|
|
|
|
distclean::
|
|
|
|
if [[ -f deps/javascriptlint/Makefile ]]; then \
|
|
|
|
cd deps/javascriptlint && make clean; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
|
|
# jsstyle
|
|
|
|
#
|
|
|
|
JSSTYLE_EXEC ?= deps/jsstyle/jsstyle
|
|
|
|
JSSTYLE ?= $(JSSTYLE_EXEC)
|
|
|
|
|
|
|
|
$(JSSTYLE_EXEC): | deps/jsstyle/.git
|
|
|
|
|
|
|
|
#
|
|
|
|
# restdown
|
|
|
|
#
|
|
|
|
RESTDOWN_EXEC ?= deps/restdown/bin/restdown
|
2015-10-16 05:25:49 +00:00
|
|
|
RESTDOWN ?= python $(RESTDOWN_EXEC)
|
2012-09-20 19:38:46 +00:00
|
|
|
$(RESTDOWN_EXEC): | deps/restdown/.git
|