Skip to content

Commit

Permalink
add 'woke-install', remove woke with 'clean'
Browse files Browse the repository at this point in the history
  • Loading branch information
akcano committed Aug 30, 2023
1 parent 6716831 commit 94cb734
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ $(VENVDIR): $(SPHINXDIR)/requirements.txt
@touch $(VENVDIR)


install: $(VENVDIR)
woke-install:
@type woke >/dev/null 2>&1 || \
{ echo "Installing \"woke\" needs sudo \n"; sudo snap install woke; }

.PHONY: woke-install


install: $(VENVDIR) woke-install

.PHONY: install

Expand Down Expand Up @@ -74,6 +81,7 @@ serve: html
clean: clean-doc
@test ! -e "$(VENVDIR)" -o -d "$(VENVDIR)" -a "$(abspath $(VENVDIR))" != "$(VENVDIR)"
rm -rf $(VENVDIR)
@{ echo "Removing \"woke\" needs sudo \n"; sudo snap remove woke; }

.PHONY: clean

Expand All @@ -96,8 +104,7 @@ linkcheck: install
.PHONY: linkcheck


woke:
type woke >/dev/null 2>&1 || { sudo snap install woke; }
woke: woke-install
woke *.rst **/*.rst -c https://github.com/canonical/Inclusive-naming/raw/main/config.yml

.PHONY: woke
Expand Down

0 comments on commit 94cb734

Please sign in to comment.