]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Also stub out players/ and parsers/.
authorDavid Humphrey <david.humphrey@senecac.on.ca>
Wed, 18 May 2011 16:51:41 +0000 (12:51 -0400)
committerDavid Humphrey <david.humphrey@senecac.on.ca>
Wed, 18 May 2011 16:51:41 +0000 (12:51 -0400)
Makefile

index 9ba99ebf1dbed497a54aedcf03f01461d05aa53f..5f070f616e3c22bae10f429c62a5f0719cdadb67 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -141,6 +141,11 @@ lint-players:
 # in place of popcorn.js.
 TESTING_MIRROR := ${DIST_DIR}/testing-mirror
 
+# Prefer plugin code in popcorn-complete.js but don't overrwrite *unit.js files
+overwrite_js = @@for js in $$(find ${1} \( -name "*.js" -a \! -name "*.unit.js" \)) ; \
+                 do echo '/* Stub, see popcorn.js instead */ function(){}\n' > $$js ; \
+                 done
+
 testing: complete
        @@echo "Building testing-mirror in ${TESTING_MIRROR}"
        @@mkdir -p ${TESTING_MIRROR}
@@ -149,10 +154,9 @@ testing: complete
        @@rm -fr ${TESTING_MIRROR}/AUTHORS ${TESTING_MIRROR}/LICENSE ${TESTING_MIRROR}/LICENSE_HEADER \
            ${TESTING_MIRROR}/Makefile ${TESTING_MIRROR}/readme.md
        @@touch "${TESTING_MIRROR}/THIS IS A TESTING MIRROR -- READ-ONLY"
-# Prefer plugin code in popcorn-complete.js but don't overrwrite *unit.js files
-       @@for js in $$(find ${TESTING_MIRROR}/plugins \( -name "*.js" -a \! -name "*.unit.js" \)) ; \
-                 do echo '/* Stub, see popcorn.js instead */ function(){}\n' > $$js ; \
-                 done
+       $(call overwrite_js, ${TESTING_MIRROR}/plugins)
+       $(call overwrite_js, ${TESTING_MIRROR}/players)
+       $(call overwrite_js, ${TESTING_MIRROR}/parsers)
        @@cp ${POPCORN_COMPLETE_DIST} ${TESTING_MIRROR}/popcorn.js
 
 clean: