News for hackers. Stuff that matters.
Re:Time for Makefiles to Make a Comeback by jgrahamc on Tuesday September 05, 2017 @07:04AM (#15174026)
Do you know about the ; style for rules that have only one line of commands? It helps reduce the number of tabs.

    %.html: %.pug ; pug -P $^
I find it super useful for compact Makefiles:

    %.html: %.pug    ; pug -P $^
    %.css:  %.styl   ; stylus $^
    %.js:   %.coffee ; coffee -c $^
    %.html: %.md     ; markdown $^ > $@
    clean: ; rm -rfv $(OBJECTS)
Also, worth making clean .PHONY since it's not a file.

There are no comments on this comment yet.