]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Altered Makefile, adding a setup optin to be able to setup any git submodules, also...
authorDavid Seifried <david.c.seifried@gmail.com>
Tue, 17 May 2011 20:41:28 +0000 (16:41 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Tue, 17 May 2011 20:41:28 +0000 (16:41 -0400)
Makefile

index 611374e137db054375036962e9677ffa67da9c3e..3cd707d6550684310dd65fa5530b377f9baae07e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -59,7 +59,7 @@ POPCORN_COMPLETE_MIN = ${DIST_DIR}/popcorn-complete.min.js
 add_license = cat ${PREFIX}/LICENSE_HEADER | sed -e 's/@VERSION/${VERSION}/' > $(2) ; \
                            cat $(1) >> $(2)
 
-all: lint lint-plugins lint-parsers lint-players popcorn plugins parsers players complete min
+all: setup lint lint-plugins lint-parsers lint-players popcorn plugins parsers players complete min
        @@echo "Popcorn build complete."
 
 ${DIST_DIR}:
@@ -140,3 +140,14 @@ lint-players:
 clean:
        @@echo "Removing Distribution directory:" ${DIST_DIR}
        @@rm -rf ${DIST_DIR}
+
+# Setup any git submodules we need
+SEQUENCE_SRC = ${PLAYERS_DIR}/sequence/popcorn.sequence.js
+
+setup: ${SEQUENCE_SRC}
+
+${SEQUENCE_SRC}:
+       @@echo "Setting-up sequence submodule..."
+       @@git submodule init
+       @@git submodule update
+