@@ -89,7 +89,6 @@ help-targets:
89
89
@echo ' - templates : Copy templates'
90
90
@echo ' - template_experimentals : Copy experimental templates to experimental/'
91
91
@echo ' - default_template : Copy default.yaml template'
92
- @echo ' - create-examples-link : Create a symlink at ../examples pointing to templates'
93
92
@echo
94
93
@echo ' Targets for files in _output/share/doc/lima:'
95
94
@echo ' - documentation : Copy documentation to _output/share/doc/lima'
@@ -146,7 +145,7 @@ menuconfig: Kconfig
146
145
# ###############################################################################
147
146
.PHONY : binaries
148
147
binaries : limactl helpers guestagents \
149
- templates template_experimentals create-examples-link \
148
+ templates template_experimentals \
150
149
documentation create-links-in-doc-dir
151
150
152
151
# ###############################################################################
@@ -313,8 +312,8 @@ MKDIR_TARGETS += _output/share/lima
313
312
314
313
# ###############################################################################
315
314
# _output/share/lima/templates
316
- TEMPLATES = $(addprefix _output/share/lima/templates/,$(filter-out experimental,$(notdir $(wildcard examples /* ) ) ) )
317
- TEMPLATE_EXPERIMENTALS = $(addprefix _output/share/lima/templates/experimental/,$(notdir $(wildcard examples /experimental/* ) ) )
315
+ TEMPLATES = $(addprefix _output/share/lima/templates/,$(filter-out experimental,$(notdir $(wildcard templates /* ) ) ) )
316
+ TEMPLATE_EXPERIMENTALS = $(addprefix _output/share/lima/templates/experimental/,$(notdir $(wildcard templates /experimental/* ) ) )
318
317
319
318
.PHONY : default_template templates template_experimentals
320
319
default_template : _output/share/lima/templates/default.yaml
@@ -325,28 +324,14 @@ $(TEMPLATES): | _output/share/lima/templates
325
324
$(TEMPLATE_EXPERIMENTALS ) : | _output/share/lima/templates/experimental
326
325
MKDIR_TARGETS += _output/share/lima/templates _output/share/lima/templates/experimental
327
326
328
- _output/share/lima/templates/% : examples /%
327
+ _output/share/lima/templates/% : templates /%
329
328
cp -aL $< $@
330
329
331
330
# returns "force" if GOOS==windows, or GOOS!=windows and the file $(1) is not a symlink.
332
331
# $(1): target file
333
332
# On Windows, always copy to ensure the target has the same file as the source.
334
333
force_link = $(if $(filter windows,$(GOOS ) ) ,force,$(shell test ! -L $(1 ) && echo force) )
335
334
336
- # ###############################################################################
337
- # _output/share/lima/examples
338
- .PHONY : create-examples-link
339
- create-examples-link : _output/share/lima/examples
340
- _output/share/lima/examples : _output/share/lima/templates $$(call force_link,$$@ )
341
- # remove the existing directory or symlink
342
- rm -rf $@
343
- ifneq ($(GOOS ) ,windows)
344
- ln -sf templates $@
345
- else
346
- # copy from templates built in build process
347
- cp -aL $< $@
348
- endif
349
-
350
335
# ###############################################################################
351
336
# _output/share/doc/lima
352
337
DOCUMENTATION = $(addprefix _output/share/doc/lima/,$(wildcard * .md) LICENSE SECURITY.md VERSION)
@@ -366,7 +351,7 @@ _output/share/doc/lima/%: % | _output/share/doc/lima
366
351
MKDIR_TARGETS += _output/share/doc/lima
367
352
368
353
.PHONY : create-links-in-doc-dir
369
- create-links-in-doc-dir : _output/share/doc/lima/templates _output/share/doc/lima/examples
354
+ create-links-in-doc-dir : _output/share/doc/lima/templates
370
355
_output/share/doc/lima/templates : _output/share/lima/templates $$(call force_link,$$@ )
371
356
# remove the existing directory or symlink
372
357
rm -rf $@
@@ -376,15 +361,6 @@ else
376
361
# copy from templates built in build process
377
362
cp -aL $< $@
378
363
endif
379
- _output/share/doc/lima/examples : _output/share/doc/lima/templates $$(call force_link,$$@ )
380
- # remove the existing directory or symlink
381
- rm -rf $@
382
- ifneq ($(GOOS ) ,windows)
383
- ln -sf templates $@
384
- else
385
- # copy from templates built in build process
386
- cp -aL $< $@
387
- endif
388
364
389
365
# ###############################################################################
390
366
# returns difference between GOOS GOARCH and GOHOSTOS GOHOSTARCH.
@@ -424,12 +400,12 @@ endif
424
400
# ###############################################################################
425
401
schema-limayaml.json : _output/bin/limactl$(exe )
426
402
ifeq ($(native_compiling ) ,true)
427
- $< generate-jsonschema --schemafile $@ examples /default.yaml
403
+ $< generate-jsonschema --schemafile $@ templates /default.yaml
428
404
endif
429
405
430
406
.PHONY : check-jsonschema
431
407
check-jsonschema : schema-limayaml.json
432
- check-jsonschema --schemafile $< examples /default.yaml
408
+ check-jsonschema --schemafile $< templates /default.yaml
433
409
434
410
# ###############################################################################
435
411
.PHONY : diagrams
@@ -523,8 +499,8 @@ artifact: $(addprefix $(ARTIFACT_PATH_COMMON),$(ARTIFACT_FILE_EXTENSIONS))
523
499
524
500
ARTIFACT_DES = _output/bin/limactl$(exe ) $(LIMA_DEPS ) $(HELPERS_DEPS ) \
525
501
$(ALL_GUESTAGENTS ) \
526
- $(TEMPLATES ) $(TEMPLATE_EXPERIMENTALS ) _output/share/lima/examples \
527
- $(DOCUMENTATION ) _output/share/doc/lima/templates _output/share/doc/lima/examples \
502
+ $(TEMPLATES ) $(TEMPLATE_EXPERIMENTALS ) \
503
+ $(DOCUMENTATION ) _output/share/doc/lima/templates \
528
504
_output/share/man/man1/limactl.1
529
505
530
506
# file targets
0 commit comments