Skip to content

Commit

Permalink
Makefile: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Aug 13, 2024
1 parent cb3a780 commit 5a43776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ post: blog day
@[ "${TITLE}" ] || ( echo ">> TITLE is not set"; exit 1 )
./.scripts/gen-post.sh '$(_PARSED_DAY)' '$(TITLE)'

.PHONE: draft
.PHONY: draft
draft:
@[ "${FILE}" ] || ( echo ">> FILE is not set"; exit 1 )
mv '$(FILE)' '$(dir $(FILE)).$(notdir $(FILE))'

.PHONE: undraft
.PHONY: undraft
undraft:
@[ "${FILE}" ] || ( echo ">> FILE is not set"; exit 1 )
mv '$(FILE)' '$(dir $(FILE))$(patsubst .%,%,$(notdir $(FILE)))'
Expand Down

0 comments on commit 5a43776

Please sign in to comment.