From: David Humphrey Date: Fri, 18 Feb 2011 17:02:07 +0000 (-0500) Subject: Dynamically build PLUGINS_SRC in Makefile [ticket #348]. X-Git-Tag: v0.4~45^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=924af24f5f10057c22cf7539520c5c8800ac99e6;p=popcorn-js.git Dynamically build PLUGINS_SRC in Makefile [ticket #348]. --- diff --git a/Makefile b/Makefile index 69b6e05..955c02b 100644 --- a/Makefile +++ b/Makefile @@ -72,28 +72,11 @@ PLUGINS_DIR = ${PREFIX}/plugins PLUGINS_DIST = ${DIST_DIR}/popcorn.plugins.js PLUGINS_MIN = ${DIST_DIR}/popcorn.plugins.min.js - -PLUGINS_SRC = ${PLUGINS_DIR}/attribution/popcorn.attribution.js\ - ${PLUGINS_DIR}/flickr/popcorn.flickr.js\ - ${PLUGINS_DIR}/footnote/popcorn.footnote.js\ - ${PLUGINS_DIR}/googlemap/popcorn.googlemap.js\ - ${PLUGINS_DIR}/googlenews/popcorn.googlenews.js\ - ${PLUGINS_DIR}/image/popcorn.image.js\ - ${PLUGINS_DIR}/lowerthird/popcorn.lowerthird.js\ - ${PLUGINS_DIR}/subtitle/popcorn.subtitle.js\ - ${PLUGINS_DIR}/tagthisperson/popcorn.tagthisperson.js\ - ${PLUGINS_DIR}/twitter/popcorn.twitter.js\ - ${PLUGINS_DIR}/webpage/popcorn.webpage.js\ - ${PLUGINS_DIR}/wikipedia/popcorn.wikipedia.js\ - ${PLUGINS_DIR}/mustache/popcorn.mustache.js\ - $(NULL) - - - +# Grab all popcorn..js files from plugins dir +PLUGINS_SRC := $(filter-out %unit.js, $(shell find ${PLUGINS_DIR} -name 'popcorn.*.js' -print)) plugins: ${PLUGINS_DIST} - ${PLUGINS_DIST}: ${PLUGINS_SRC} | ${DIST_DIR} @@echo "Building" ${PLUGINS_DIST}