Permalink
Browse files

[fix] Makefile: test .opp existence before install plugin

  • Loading branch information...
1 parent 64058ec commit fb01ffc4c00d5e4f19e331008dc7f084dd6dffb1 @Aqua-Ye Aqua-Ye committed with BourgerieQuentin Jun 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Makefile
View
2 Makefile
@@ -131,7 +131,7 @@ define install-plugin
@printf "Installing into $(STDLIB_DIR)/$*.opp^[[K\r"
@mkdir -p "$(STDLIB_DIR)/$*.opp"
@$(INSTALL) $(BUILD_DIR)/$*.opp/*.bypass "$(STDLIB_DIR)/$*.opp/";
-@$(INSTALL) $(BUILD_DIR)/$*.opp/*MLRuntime.* "$(STDLIB_DIR)/$*.opp/";
+@$(if $(wildcard $(BUILD_DIR)/$*.opp/*MLRuntime.*, $(INSTALL) $(BUILD_DIR)/$*.opp/*MLRuntime.* "$(STDLIB_DIR)/$*.opp/";))
endef

0 comments on commit fb01ffc

Please sign in to comment.