Permalink
Browse files

[fix] Makefile: zealous uninstall

  • Loading branch information...
1 parent 840f3d5 commit 1b2772b40195db5a2bf0556ea28f3da771cfad2a Louis Gesbert committed Jul 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Makefile
View
@@ -144,7 +144,7 @@ uninstall:
rm -rf $(INSTALL_DIR)/share/opa
rm -rf $(INSTALL_DIR)/share/doc/opa
@[ ! -d $(INSTALL_DIR)/share ] || [ -n "`ls -A $(INSTALL_DIR)/share`" ] || rmdir $(INSTALL_DIR)/share
- $(foreach file,$(BUILD_DIR)/bin/*,rm -f $(INSTALL_DIR)/bin/$(notdir $(file));)
+ $(foreach file,$(wildcard $(BUILD_DIR)/bin/*),rm -f $(INSTALL_DIR)/bin/$(notdir $(file));)
@utils/install.sh --uninstall --dir $(INSTALL_DIR)
@[ ! -d $(INSTALL_DIR)/bin ] || [ -n "`ls -A $(INSTALL_DIR)/bin`" ] || rmdir $(INSTALL_DIR)/bin
@printf "Uninstall done.\n"

0 comments on commit 1b2772b

Please sign in to comment.