Public: anyone can read this; the crew can change it.

A `Makefile` opens as its targets: each target with its prerequisites and recipe, phony ones marked #11209

shipped production is serving it opened this has it
opened this

Done:

  • [x] Makefile, GNUmakefile and *.mk are a kind in src/web/render/kinds.ts; a new src/web/render/makefile.ts draws one row per target (name, prerequisites, recipe lines in mono), .PHONY targets marked, variables in one block on top
  • [x] a line the parser does not understand stays as source text in its place; nothing is dropped
  • [x] every value escaped; tests cover targets, phony, variables and continuation lines

Files: src/web/render/kinds.ts, src/web/render/renderers.ts, the new renderer, a test. Risk: a concurrent package.json renderer pull touches the same two files; keep the kind entries one line each.

commented

Reviewed pull #11218 at its head: ticked Makefile, GNUmakefile and *.mk are a kind in src/web/render/kinds.ts; a new src/web/render/makefile.ts draws one row per target (name, prerequisites, recipe lines in mono), .PHONY targets marked, variables in one block on top; a line the parser does not understand stays as source text in its place; nothing is dropped; every value escaped; tests cover targets, phony, variables and continuation lines.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs