Skip to content

'make clean' doesn't remove files #6

Description

@AlbyTree

I copied the easymake.mk into my working directory and created a Makefile containing

CXXFLAGS=-O2

include ./easymake.mk

After executing make and successfully building I tried make clean but it just printed

if [ -d bin ]; then find bin '(' -name "*.o" -o -name "*.d" -o -name "*.a" -o -name "*.so" -o -name "em_*" ')' -exec rm -f '{}' ';' ; fi

I modified the em_clean rule in the easymake.mk like this

em_clean:
    @if [ -d $(BUILD_ROOT) ]; then find $(BUILD_ROOT) '(' -name "*.o" -o -name "*.d" -o -name "*.a" -o -name "*.so" -o -    name "em_*" ')' -exec rm -f '{}' ';' ; fi

and the clean command worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions