Browse Source

HUE-525. Implementing NOCREPO in Hue build.

Marcus McLaughlin 14 years ago
parent
commit
1bf04b0c6e
1 changed files with 8 additions and 3 deletions
  1. 8 3
      Makefile

+ 8 - 3
Makefile

@@ -132,9 +132,14 @@ docs:
 .PHONY: crepo
 crepo: $(THIRDPARTY_JS_DIR)/manifest.json $(THIRDPARTY_JS_DIR)/*.hash
 	@echo "--- Synchronizing external dependencies with crepo"
-	@mkdir -p $(BLD_DIR)
-	@cd $(THIRDPARTY_JS_DIR) && $(CREPO) sync && \
-	  ($(CREPO) dump-refs > $(ROOT)/VERSION_DATA || true)
+	@# Do crepo sync iff not NOCREPO
+	@if [ -n "$(NOCREPO)" ] ; then \
+	  echo ' ---- Skipping crepo sync (NOCREPO is set)' ; \
+	 else \
+	  mkdir -p $(BLD_DIR); \
+	  cd $(THIRDPARTY_JS_DIR) && $(CREPO) sync && \
+	    ($(CREPO) dump-refs > $(ROOT)/VERSION_DATA || true) ; \
+	 fi
 # END DEV ONLY >>>>
 
 ###################################