Skip to content

Instantly share code, notes, and snippets.

@rrbutani
Last active September 10, 2025 23:25
Show Gist options
  • Select an option

  • Save rrbutani/1c0c4eebdbed3340d7a40fce835af5ed to your computer and use it in GitHub Desktop.

Select an option

Save rrbutani/1c0c4eebdbed3340d7a40fce835af5ed to your computer and use it in GitHub Desktop.
use nix -p gnumake
/out/
local.in
/.direnv
$(shell mkdir -p /tmp/foo/bar)
$(shell touch /tmp/foo/bar/abs.in)
$(shell touch local.in)
VPATH += :/tmp/foo
out/%.out: %.in
@echo "$< -> $@"
@mkdir -p $(@D); touch $@
all: out/bar/abs.out out/local.out
.DEFAULT_GOAL := all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment