소스 검색

Merge pull request #448 from sharelatex/as-fix-module-compile

Fix module compile_full failing if module don't have app/coffee
Alasdair Smith 8 년 전
부모
커밋
a0ae178af7
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      services/web/Makefile.module

+ 1 - 1
services/web/Makefile.module

@@ -48,7 +48,7 @@ compile: $(APP_JS_FILES) $(IDE_JS_FILES) $(MAIN_JS_FILES) $(IDE_TEST_JS_FILES) i
 	@echo > /dev/null
 
 compile_full:
-	$(COFFEE) -o app/js -c app/coffee
+	if [ -e app/coffee ]; then $(COFFEE) -o app/js -c app/coffee; fi
 	if [ -e test/unit/coffee ]; then $(COFFEE) -o test/unit/js -c test/unit/coffee; fi
 	if [ -e test/acceptance/coffee ]; then $(COFFEE) -o test/acceptance/js -c test/acceptance/coffee; fi
 	if [ -e public/coffee/ide/ ]; then $(COFFEE) -o ../../public/js/ide/$(MODULE_NAME) -c public/coffee/ide/; fi