]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Seperated submodule updating and initializing, complete now depends on update
authorDavid Seifried <david.c.seifried@gmail.com>
Wed, 18 May 2011 16:35:01 +0000 (12:35 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Wed, 18 May 2011 16:35:01 +0000 (12:35 -0400)
Makefile

index 3cd707d6550684310dd65fa5530b377f9baae07e..e88b4c30de32580f9cf9408ff4f9077699e4b5e7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -115,7 +115,7 @@ ${PLAYERS_DIST}: ${PLAYERS_SRC} ${DIST_DIR}
        @@echo "Building ${PLAYERS_DIST}"
        @@cat ${PLAYERS_SRC} > ${PLAYERS_DIST}
 
-complete: ${POPCORN_SRC} ${PARSERS_SRC} ${PLUGINS_SRC} ${PLAYERS_SRC} ${DIST_DIR}
+complete: ${POPCORN_SRC} ${PARSERS_SRC} ${PLUGINS_SRC} ${PLAYERS_SRC} ${DIST_DIR} update
        @@echo "Building popcorn + plugins + parsers + players..."
        @@cat ${POPCORN_SRC} ${PLUGINS_SRC} ${PARSERS_SRC} ${PLAYERS_SRC} > ${POPCORN_COMPLETE_DIST}.tmp
        @@$(call add_license, ${POPCORN_COMPLETE_DIST}.tmp, ${POPCORN_COMPLETE_DIST})
@@ -146,8 +146,11 @@ SEQUENCE_SRC = ${PLAYERS_DIR}/sequence/popcorn.sequence.js
 
 setup: ${SEQUENCE_SRC}
 
+update:
+       @@echo "Updating submodules..."
+       @@git submodule update
+
 ${SEQUENCE_SRC}:
-       @@echo "Setting-up sequence submodule..."
+       @@echo "Setting-up submodules..."
        @@git submodule init
-       @@git submodule update