mkimage-profiles/clean.mk
Michael Shigorin d920c9904c --as-needed for pkg/lists
As not every package list is useful for every distro,
only the needed lists should be copied for a particular one.
2011-11-03 20:38:35 +02:00

20 lines
465 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 .config.mk build \
||:
# it can be symlinked if r/w (see configure);
# if not, then should come from environment
BUILDDIR ?= $(shell realpath build)
prep:
@echo BUILDDIR: $(BUILDDIR)