github.com/beauknowssoftware/makehcl@v0.0.0-20200322000747-1b9bb1e1c008/internal/run/testdata/env_default_goal/make.hcl (about) 1 default_goal = [var.secondTarget ? "test2.txt" : "test.txt"] 2 3 var { 4 secondTarget = exists(env, "SECOND_TARGET") 5 } 6 7 rule { 8 target = "test.txt" 9 command = "touch ${target}" 10 } 11 12 rule { 13 target = "test2.txt" 14 command = "touch ${target}" 15 }