VirtualBox

Changeset 64498 in vbox


Ignore:
Timestamp:
Nov 1, 2016 4:39:14 AM (8 years ago)
Author:
vboxsync
Message:

ValidationKit: Exploratory notes on testbox backup and restore.

Location:
trunk/src/VBox/ValidationKit/docs
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/docs/Makefile.kmk

    r62484 r64498  
    2525#
    2626
    27 GENERATED_FILES = AutomaticTestingRevamp.html VBoxValidationKitReadMe.html
    28 RST2HTML := $(firstword $(which $(foreach pyver, 3.2 3.1 3.0 2.8 2.7 2.6 2.5 2.4 ,rst2html-$(pyver).py) ) rst2html.py)
     27DEPTH = ../../../..
     28include $(KBUILD_PATH)/header.kmk
     29
     30# Figure out where rst2html.py is.
     31ifndef VBOX_RST2HTML
     32 VBOX_RST2HTML := $(firstword $(which $(foreach pyver, 3.2 3.1 3.0 2.8 2.7 2.6 2.5 2.4 ,rst2html-$(pyver).py) ) )
     33 ifeq ($(VBOX_RST2HTML),)
     34  if $(KBUILD_HOST) == "win" && $(VBOX_BLD_PYTHON) != "" && $(dir $(VBOX_BLD_PYTHON)) != "./"
     35   VBOX_RST2HTML := $(dir $(VBOX_BLD_PYTHON))Scripts/rst2html.py
     36  else
     37   VBOX_RST2HTML := rst2html.py
     38  endif
     39 endif
     40 if1of ($(KBUILD_HOST),win)
     41  VBOX_RST2HTML := $(VBOX_BLD_PYTHON) $(VBOX_RST2HTML)
     42 endif
     43endif
     44
     45GENERATED_FILES = AutomaticTestingRevamp.html VBoxValidationKitReadMe.html TestBoxImaging.html
    2946
    3047all: $(GENERATED_FILES)
     48
     49$(foreach html,$(GENERATED_FILES) \
     50,$(eval $(html): $(basename $(html)).txt ; $$(REDIRECT) -E LC_ALL=C -- $$(VBOX_RST2HTML) --no-generator $$< $$@))
     51
     52$(foreach html,$(GENERATED_FILES), $(eval $(basename $(html)).o:: $(html)))  # editor compile aliases
    3153
    3254clean:
    3355        kmk_builtin_rm -f -- $(GENERATED_FILES)
    3456
    35 AutomaticTestingRevamp.html: AutomaticTestingRevamp.txt
    36         LC_ALL=C $(RST2HTML) --no-generator AutomaticTestingRevamp.txt AutomaticTestingRevamp.html
    3757
    38 VBoxValidationKitReadMe.html: VBoxValidationKitReadMe.txt
    39         LC_ALL=C $(RST2HTML) --no-generator VBoxValidationKitReadMe.txt VBoxValidationKitReadMe.html
    40 
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette