Skip to content

Commit

Permalink
2024-08-13/01: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Aug 13, 2024
1 parent 5a43776 commit 1c8d34c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 2024-08-13/01-abusing-makefiles-for-fun-and-profit.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ responsible to do some transformations in the Markdown files before posting.

While I could manage everything by just using `go` CLI and a few other *nix
commands, to make it easier to manager everything I have the following
[`Makefile`](https://github.com/thiagokokada/blog/blob/77178d0fbf3bc4d38e341ff949a43786880f372f/Makefile):
[`Makefile`](https://github.com/thiagokokada/blog/blob/5a4377648161ceb9ffa8297bcec97b58a5650b21/Makefile):

```Makefile
MARKDOWN := $(shell find . -type f -name '*.md' -not -name README.md)
Expand Down Expand Up @@ -124,12 +124,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 1c8d34c

Please sign in to comment.