Makefile: define default target
This commit is contained in:
parent
10ff2cf70a
commit
0b84e3f161
8
Makefile
8
Makefile
@ -51,6 +51,8 @@ $(if $(target_user),,$(error unbound variable: target_user))
|
|||||||
$(if $(target_port),,$(error unbound variable: target_port))
|
$(if $(target_port),,$(error unbound variable: target_port))
|
||||||
$(if $(target_path),,$(error unbound variable: target_path))
|
$(if $(target_path),,$(error unbound variable: target_path))
|
||||||
|
|
||||||
|
export target ?= $(target_user)@$(target_host):$(target_port)$(target_path)
|
||||||
|
|
||||||
build = \
|
build = \
|
||||||
nix-build \
|
nix-build \
|
||||||
--no-out-link \
|
--no-out-link \
|
||||||
@ -81,16 +83,14 @@ deploy: populate
|
|||||||
|
|
||||||
# usage: make populate system=foo
|
# usage: make populate system=foo
|
||||||
ifeq ($(debug),true)
|
ifeq ($(debug),true)
|
||||||
populate: populate-flags = --debug
|
populate: populate-flags += --debug
|
||||||
endif
|
endif
|
||||||
ifneq ($(ssh),)
|
ifneq ($(ssh),)
|
||||||
populate: populate-flags += --ssh=$(ssh)
|
populate: populate-flags += --ssh=$(ssh)
|
||||||
endif
|
endif
|
||||||
populate:
|
populate:
|
||||||
$(call evaluate,config.krebs.build.source) --json --strict | \
|
$(call evaluate,config.krebs.build.source) --json --strict | \
|
||||||
populate \
|
populate $(target) $(populate-flags)
|
||||||
$(target_user)@$(target_host):$(target_port)$(target_path) \
|
|
||||||
$(populate-flags)
|
|
||||||
|
|
||||||
# usage: make pkgs.populate
|
# usage: make pkgs.populate
|
||||||
pkgs:;@$(error no package selected)
|
pkgs:;@$(error no package selected)
|
||||||
|
Loading…
Reference in New Issue
Block a user