Changeset df56f5c in mainline for uspace/app/binutils/Makefile


Ignore:
Timestamp:
2011-05-29T16:32:19Z (14 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2431f30
Parents:
927af3af
Message:

Improved Makefile clean routine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/binutils/Makefile

    r927af3af rdf56f5c  
    169169# Unpatch binutils.
    170170# Delete generated scripts.
    171 clean:
     171clean: $(BINUTILS_PATCH)
    172172        rm -f as ld
    173         make -C $(REDIST_DIR) distclean
    174         ./intrusive.sh undo $(REDIST_DIR)
    175         rm -f $(BINUTILS_PATCHED)
     173        if [ -e $(REDIST_DIR)/Makefile ]; then
     174                make -C $(REDIST_DIR) distclean
     175        fi
     176        if [ -e $(BINUTILS_PATCHED) ]; then
     177                ./intrusive.sh undo $(REDIST_DIR)
     178                rm -f $(BINUTILS_PATCHED)
     179        fi
    176180        rm -f $(TOOLCHAIN)
    177181        rm -f $(COMMON_MAKEFILE_PATCHED)
Note: See TracChangeset for help on using the changeset viewer.