Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Makefile: Remove 3rd-party repos in make clean
Browse files Browse the repository at this point in the history
The new target can be called directly:

    gmake clean-3rd-party-repos

Signed-off-by: Gerhard Lazu <glazu@pivotal.io>
  • Loading branch information
dumbbell committed Jan 11, 2018
1 parent eafeb82 commit 9b0658b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,16 @@ tag: $(abspath .)+tag $(READY_DEPS:%=$(DEPS_DIR)/%+tag)
git tag $(TAG) && \
echo

clean:: clean-subrepos
clean:: clean-subrepos clean-3rd-party-repos

clean-subrepos: $(READY_DEPS:%=$(DEPS_DIR)/%+clean)
@:

THIRD_PARTY_DEPS_DIRS = $(filter-out $(patsubst %,$(DEPS_DIR)/%,$(READY_DEPS)),$(wildcard $(DEPS_DIR)/*))

clean-3rd-party-repos:
$(verbose) rm -rf $(THIRD_PARTY_DEPS_DIRS)

%+clean:
-$(exec_verbose) $(MAKE) -C $* clean

Expand Down

0 comments on commit 9b0658b

Please sign in to comment.