/postroll
makefiletutorial.com
makefiletutorial.com
A couple days ago, I wrote about Makefile. Today, I'm going to show a quick tip for writing "guard" targets.
I like to automate common workflows when I can, particularly for web projects.
As an example, I may have different Docker Compose setups for development versus production, and having to remember to add the -f {compose file name} argument can be tedious and error prone.
Being a long-time Linux user, I've used make a lot, and am fairly comfortable with Makefile, so I often turn to it for these tasks.
#{some tag} or tag:{some tag} to filter by tag; using this more than once will find results that match all tags.year:{year} to filter by year. If you use this multiple times, the last one wins.begin:{year-month-day} to restrict to results beginning on that day. Last one wins.end:{year-month-day} to restrict to results ending on that day. Last one wins.
The absolute best
Makefileguide on the internet, bar none.