@@ -594,7 +594,7 @@ gen/golden-files: \
594
594
595
595
# Mark all generated files as fresh so make thinks they're up-to-date. This is
596
596
# used during releases so we don't run generation scripts.
597
- gen/mark-fresh :
597
+ gen/mark-fresh : gen/mark-fresh/node_modules
598
598
files=" \
599
599
tailnet/proto/tailnet.pb.go\
600
600
agent/proto/agent.pb.go\
@@ -620,10 +620,6 @@ gen/mark-fresh:
620
620
coderd/database/pubsub/psmock/psmock.go\
621
621
agent/agentcontainers/acmock/acmock.go\
622
622
agent/agentcontainers/dcspec/dcspec_gen.go\
623
- node_modules/.installed\
624
- offlinedocs/node_modules/.installed\
625
- site/node_modules/.installed\
626
- scripts/apidocgen/node_modules/.installed\
627
623
"
628
624
629
625
for file in $$files; do
@@ -638,6 +634,22 @@ gen/mark-fresh:
638
634
done
639
635
.PHONY : gen/mark-fresh
640
636
637
+ # Mark all generated files as fresh so make thinks they're up-to-date. This is
638
+ # used during releases so we don't run generation scripts.
639
+ gen/mark-fresh/node_modules :
640
+ files=" \
641
+ node_modules/.installed\
642
+ site/node_modules/.installed\
643
+ offlinedocs/node_modules/.installed\
644
+ scripts/apidocgen/node_modules/.installed\
645
+ "
646
+
647
+ for file in $$files; do
648
+ # touch creates/sets the mtime of the file to the current time.
649
+ touch "$$file"
650
+ done
651
+ .PHONY : gen/mark-fresh/node_modules
652
+
641
653
# Runs migrations to output a dump of the database schema after migrations are
642
654
# applied.
643
655
coderd/database/dump.sql : coderd/database/gen/dump/main.go$(wildcard coderd/database/migrations/* .sql)