Skip to content

Commit

Permalink
2024-08-13/01: update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Aug 15, 2024
1 parent 527466a commit d85c8f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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/e2c30dcc117ba0b95e3df1dbea0be6b5064d5a7e/Makefile):
[`Makefile`](https://github.com/thiagokokada/blog/blob/527466a2a7c8baae532281bff5db3f0695f018cb/Makefile):

```Makefile
MARKDOWN := $(wildcard ./**/*.md)
Expand Down Expand Up @@ -124,7 +124,7 @@ TITLE = $(error TITLE is not defined)
post: blog day
./.scripts/gen-post.sh '$(_PARSED_DAY)' '$(TITLE)'

TITLE = $(error FILE is not defined)
FILE = $(error FILE is not defined)
.PHONY: draft
draft:
cd '$(dir $(FILE))' && mv '$(notdir $(FILE))' '.$(notdir $(FILE))'
Expand Down

0 comments on commit d85c8f6

Please sign in to comment.