Skip to content

Commit bdd8088

Browse files
committed
Makefile: set dependencies to targets creating symlinks
Signed-off-by: Norio Nomura <[email protected]>
1 parent 9f99c0d commit bdd8088

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,12 @@ _output/share/lima/templates/%: examples/%
259259
# _output/share/lima/examples
260260
.PHONY: create-examples-link
261261
create-examples-link: _output/share/lima/examples
262-
_output/share/lima/examples: default_template # depends on minimal template target
262+
_output/share/lima/examples: _output/share/lima/templates
263263
ifneq ($(GOOS),windows)
264264
ln -sf templates $@
265265
else
266-
# copy from templates builded in build process
267-
cp -aL _output/share/lima/templates $@
266+
# copy from templates built in build process
267+
cp -aL $< $@
268268
endif
269269

270270
# _output/share/doc/lima
@@ -287,19 +287,19 @@ MKDIR_TARGETS += _output/share/doc/lima
287287

288288
.PHONY: create-links-in-doc-dir
289289
create-links-in-doc-dir: _output/share/doc/lima/templates _output/share/doc/lima/examples
290-
_output/share/doc/lima/templates: default_template # depends on minimal template target
290+
_output/share/doc/lima/templates: _output/share/lima/templates
291291
ifneq ($(GOOS),windows)
292292
ln -sf ../../lima/templates $@
293293
else
294-
# copy from templates builded in build process
295-
cp -aL _output/share/lima/templates $@
294+
# copy from templates built in build process
295+
cp -aL $< $@
296296
endif
297-
_output/share/doc/lima/examples: default_template # depends on minimal template target
297+
_output/share/doc/lima/examples: _output/share/doc/lima/templates
298298
ifneq ($(GOOS),windows)
299299
ln -sf templates $@
300300
else
301-
# copy from templates builded in build process
302-
cp -aL _output/share/lima/templates $@
301+
# copy from templates built in build process
302+
cp -aL $< $@
303303
endif
304304

305305
# _output/share/man/man1

0 commit comments

Comments
 (0)