Skip to content

Commit 3688acd

Browse files
committed
Minor touchups
1 parent be3f5e3 commit 3688acd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ LINT_DIR := .lintcache/$(CURRENT_BRANCH)
1717

1818
lint_files:= $(addprefix $(LINT_DIR)/,$(addsuffix .lint,$(drafts)))
1919

20-
latest:: lint
21-
lint:: lint-purge $(lint_files)
20+
latest:: lint lint-purge
21+
lint:: $(lint_files)
2222

2323
.PHONY: lint lint-purge
2424

@@ -35,7 +35,7 @@ $(LINT_DIR)/%.lint: %.md $(LINT_DIR)
3535
if ["$$draft_lint" != "$@" ] && \
3636
[ -r "$$draft_lint" ] && [ "`cat "$$draft_lint"`" == "$$hash" ]; then \
3737
cp "$$draft_lint" "$@"; \
38-
echo "Reused lint from $$draft_lint"; \
38+
echo "Reused lint of $$draft_lint for $@"; \
3939
fi; \
4040
done; \
4141
if [ ! -r "$@" ] || [ "`cat "$@"`" != "$$hash" ]; then \
@@ -68,7 +68,7 @@ $(LINT_DIR)/%.lint: %.md $(LINT_DIR)
6868
fi; \
6969
fi;
7070

71-
lint-purge:: $(LINT_DIR)
71+
lint-purge:: $(LINT_DIR) | lint
7272
@MAYBE_OBSOLETE=`comm -13 <(git branch | sed -e 's,.*[ /],,' | sort | uniq) <(ls ".lintcache" | sed -e 's,.*/,,')`; \
7373
for item in $$MAYBE_OBSOLETE; do \
7474
rm -rf ".lintcache/$$item"; \

0 commit comments

Comments
 (0)