Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'make clean' doesn't remove files #6

Open
AlbyTree opened this issue Aug 15, 2020 · 0 comments
Open

'make clean' doesn't remove files #6

AlbyTree opened this issue Aug 15, 2020 · 0 comments

Comments

@AlbyTree
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant