Skip to content

Commit

Permalink
Merge pull request topolvm#997 from topolvm/add-distclean
Browse files Browse the repository at this point in the history
Introduce distclean targets
  • Loading branch information
cupnes authored Dec 13, 2024
2 parents 81c4833 + 44fd071 commit c9e9a1a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,11 @@ groupname-test: ## Run unit tests that depends on the groupname.
TEST_LEGACY=true go test -count=1 -race -v --timeout=60s ./constants*.go

.PHONY: clean
clean: ## Clean working directory.
clean: ## Clean built files on the working directory.
rm -rf build/

.PHONY: distclean
distclean: clean ## Clean all on the working directory.
rm -rf bin/
rm -rf include/
rm -rf testbin/
Expand Down
8 changes: 6 additions & 2 deletions example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,13 @@ setup: $(KUBECTL)
$(CURL) https://get.helm.sh/helm-v$(HELM_VERSION)-linux-amd64.tar.gz \
| tar xvz -C $(BINDIR) --strip-components 1 linux-amd64/helm

.PHONY: stop-lvmd
.PHONY: clean
clean: stop-lvmd
rm -rf bin/ build/ $(TMPDIR)
rm -rf build/ $(TMPDIR)

.PHONY: distclean
distclean: clean
rm -rf bin/

$(TMPDIR)/lvmd/lvmd.yaml: ../deploy/lvmd-config/lvmd.yaml
mkdir -p $(TMPDIR)/lvmd
Expand Down
4 changes: 4 additions & 0 deletions test/e2e/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ clean: stop-lvmd
tmpbin/ \
/tmp/topolvm/scheduler/scheduler-config.yaml

.PHONY: distclean
distclean: clean
rm -rf bin/

.PHONY: setup
setup:
$(MAKE) $(GINKGO)
Expand Down

0 comments on commit c9e9a1a

Please sign in to comment.