Skip to content

Commit 381225c

Browse files
committed
mk: make sure to mkdir
1 parent d08d644 commit 381225c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

mk/fstar-12.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ DEPSTEM := $(CACHE_DIR)/.depend$(TAG)
7979
# triggering an actual dependency run.
8080
.PHONY: .force
8181
$(DEPSTEM).touch: .force
82+
mkdir -p $(dir $@)
8283
find $(SRC) -name '*.fst*' > $@.chk
8384
diff -q $@ $@.chk || cp $@.chk $@
8485

8586
$(DEPSTEM): $(DEPSTEM).touch
8687
$(call msg, "DEPEND", $(SRC))
8788
$(FSTAR) --dep full $(ROOTS) $(EXTRACT) $(DEPFLAGS) --output_deps_to $@
88-
mkdir -p $(CACHE_DIR)
8989

9090
depend: $(DEPSTEM)
9191
include $(DEPSTEM)

mk/lib.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,13 @@ DEPSTEM := $(CACHE_DIR)/.depend$(TAG)
139139
# triggering an actual dependency run.
140140
.PHONY: .force
141141
$(DEPSTEM).touch: .force
142+
mkdir -p $(dir $@)
142143
find $(SRC) -name '*.fst*' > $@.chk
143144
diff -q $@ $@.chk || cp $@.chk $@
144145

145146
$(DEPSTEM): $(DEPSTEM).touch
146147
$(call msg, "DEPEND", $(SRC))
147148
$(FSTAR) --dep full $(ROOTS) $(EXTRACT) $(DEPFLAGS) --output_deps_to $@
148-
mkdir -p $(CACHE_DIR)
149149

150150
depend: $(DEPSTEM)
151151
include $(DEPSTEM)

mk/plugins.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ DEPSTEM := $(CACHE_DIR)/.depend$(TAG)
123123
# triggering an actual dependency run.
124124
.PHONY: .force
125125
$(DEPSTEM).touch: .force
126+
mkdir -p $(dir $@)
126127
find $(SRC) -name '*.fst*' > $@.chk
127128
diff -q $@ $@.chk || cp $@.chk $@
128129

129130
$(DEPSTEM): $(DEPSTEM).touch
130131
$(call msg, "DEPEND", $(SRC))
131132
$(FSTAR) --dep full $(ROOTS) $(EXTRACT) $(DEPFLAGS) --output_deps_to $@
132-
mkdir -p $(CACHE_DIR)
133133

134134
depend: $(DEPSTEM)
135135
include $(DEPSTEM)

0 commit comments

Comments
 (0)