b0c00c8164dc64ca1dafd5a0bdcaae58de06ba84 angie Wed May 14 10:22:14 2014 -0700 Adding jshint target to js/makefile. In inc/common.mk, JSHINT is setto true (program that simply exits with no error) if not already set, so running 'make jshint' is a no-op unless you set JSHINT=jshint in your environment. diff --git src/hg/js/makefile src/hg/js/makefile index e6e5c46..c6d2062 100644 --- src/hg/js/makefile +++ src/hg/js/makefile @@ -1,51 +1,54 @@ include ../../inc/common.mk # recursive target to do install to DEST, with extra excludes EXCL. JQUERY_FILES=jquery.js jquery.tablednd.js \ jquery.imgareaselect.js jquery-ui.js jquery.contextmenu.js \ ui.dropdownchecklist.js \ jquery.cookie.js jquery.watermarkinput.js \ jquery.floatheader.js jquery.rotateTableCellContent.js jquery.plugins.js \ jquery.validate.min.js jquery.history.js JS_FILES=ajax.js alleles.js autocomplete.js edwPersona.js \ hgCustom.js hgGateway.js hgHubConnect.js hgTracks.js \ hgVarAnnogrator.js hui.js utils.js ddcl.js subCfg.js \ encodeProject.js encodeDataSummary.js encodeDataMatrix.js encodeChipMatrix.js encodeMatrix.js \ ${JQUERY_FILES} STATIC_FILES=staticDoc.js ifdef LOWELAB JS_FILES += lowetooltip.js loweautocomplete.js endif user: if test -d ${DOCUMENTROOT}-${USER}; then \ ${MAKE} doInstall DEST=${DOCUMENTROOT}-${USER}/js; \ else \ ${MAKE} doInstall DEST=${DOCUMENTROOT}/js/${USER}; \ fi alpha: ${GITUP} ${MAKE} doInstall DEST=${DOCUMENTROOT}/js beta: ${GITUP} ${MAKE} doInstall DEST=${DOCUMENTROOT}-beta/js extra=-forceVersionNumbers clean: compile: +jshint: + ${JSHINT} --exclude-path=jshint.exclude *.js + install: ${MAKE} doInstall DEST=${DOCUMENTROOT}/js doInstall: @mkdir -p ${DEST}/ ../utils/cpAndLinkToResourceFiles.pl ${extra} -exclude='makefile' -versionFile=../inc/versionInfo.h -destDir=${DEST} ${JS_FILES} for file in ${STATIC_FILES}; do \ rsync -a $$file ${DEST}/; \ done