mkimage-profiles/clean.mk

13 lines
291 B
Makefile
Raw Normal View History

clean:
@echo '** cleaning up...'
@[ -d build/ ] && \
make -C build/image $@ GLOBAL_BUILDDIR=$(shell readlink build) \
||:
distclean: clean
@[ -d build/ ] && \
make -C build/image $@ GLOBAL_BUILDDIR=$(shell readlink build) && \
rm -r $(shell readlink build) && \
rm build \
||: