Rearrange makefile targets (#960)

Skip a recursive make step and simplify a bit.
Add dryrun-server.
Also an unrelated whitespace fix.
This commit is contained in:
Dan Bungert 2021-05-25 16:59:22 -06:00 committed by GitHub
parent 63fc286644
commit 657f27ebf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 14 deletions

View File

@ -6,8 +6,7 @@ PYTHONSRC=$(NAME)
PYTHONPATH=$(shell pwd):$(shell pwd)/probert
PROBERTDIR=./probert
PROBERT_REPO=https://github.com/canonical/probert
DRYRUN_ARGS:=--dry-run --bootloader uefi --machine-config examples/simple.json
CONSOLE_CONF_DRYRUN_ARGS:=--dry-run
DRYRUN?=--dry-run --bootloader uefi --machine-config examples/simple.json
export PYTHONPATH
CWD := $(shell pwd)
@ -33,21 +32,18 @@ i18n:
$(PYTHON) setup.py build_i18n
cd po; intltool-update -r -g subiquity
dryrun: probert i18n
$(MAKE) ui-view DRYRUN="$(DRYRUN_ARGS)"
dryrun-console-conf:
$(MAKE) ui-view-console-conf DRYRUN="$(CONSOLE_CONF_DRYRUN_ARGS)"
ui-view-console-conf:
$(PYTHON) -m console_conf.cmd.tui $(DRYRUN) $(MACHARGS)
ui-view:
dryrun ui-view: probert i18n
$(PYTHON) -m subiquity $(DRYRUN) $(MACHARGS)
ui-view-serial:
dryrun-console-conf ui-view-console-conf:
$(PYTHON) -m console_conf.cmd.tui --dry-run $(MACHARGS)
dryrun-serial ui-view-serial:
(TERM=att4424 $(PYTHON) -m subiquity $(DRYRUN) --serial)
dryrun-server:
$(PYTHON) -m subiquity.cmd.server $(DRYRUN)
lint: flake8
flake8:
@ -67,7 +63,7 @@ probert:
@if [ ! -d "$(PROBERTDIR)" ]; then \
git clone -q $(PROBERT_REPO) $(PROBERTDIR); \
(cd probert && $(PYTHON) setup.py build_ext -i); \
fi
fi
schema: probert
@$(PYTHON) -m subiquity.cmd.schema > autoinstall-schema.json