]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Dynamically build PLUGINS_SRC in Makefile [ticket #348].
authorDavid Humphrey <david.humphrey@senecac.on.ca>
Fri, 18 Feb 2011 17:02:07 +0000 (12:02 -0500)
committerDavid Humphrey <david.humphrey@senecac.on.ca>
Fri, 18 Feb 2011 17:02:07 +0000 (12:02 -0500)
Makefile

index 69b6e0591a12089f8f920970b9f8992c7f356c89..955c02bf3e450078ac783d71540eb4ea6de18240 100644 (file)
--- 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.<plugin-name>.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}