Changeset 1756

Show
Ignore:
Timestamp:
03/09/10 14:13:51 (3 years ago)
Author:
matthijs
Message:

Prevent a make error on a fon-pkg plugin without an uninstall script.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/include/package-fon.mk

    r1755 r1756  
    111111        # Install the upgrade and optional uninstall file 
    112112        $(INSTALL_BIN) ./upgrade $$(PLUGIN_DIR_$(1)) 
    113         [ -f ./uninstall ] && $(INSTALL_DIR) $$(PLUGIN_DIR_$(1))/files/etc/uninstall/ 
    114         [ -f ./uninstall ] && $(INSTALL_BIN) ./uninstall $$(PLUGIN_DIR_$(1))/files/etc/uninstall/$$(SHORTNAME_$(1)) 
     113        if [ -f ./uninstall ]; then \ 
     114          $(INSTALL_DIR) $$(PLUGIN_DIR_$(1))/files/etc/uninstall/; \ 
     115          $(INSTALL_BIN) ./uninstall $$(PLUGIN_DIR_$(1))/files/etc/uninstall/$$(SHORTNAME_$(1)); \ 
     116        fi 
    115117 
    116118        # Create the tarball