mkimage-profiles/clean.mk
Michael Shigorin 2cc81b7e75 r/o profile build
Building m-p-d stuff in-tree was plagued by accidental
generated file commits, and it wasn't nice at all anyways.
2011-11-03 20:38:35 +02:00

13 lines
291 B
Makefile

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 \
||: