diff options
author | tv <tv@krebsco.de> | 2016-07-17 02:37:46 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-07-17 02:37:46 +0200 |
commit | bda2d67644eef37af41779cb03b74144b929624b (patch) | |
tree | 3927245038d5b81d002c415a09f79561c0171df7 /Makefile | |
parent | 6a51effac121bc211a5ba95a107fd398a5d3e432 (diff) |
Makefile: define default target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -51,6 +51,8 @@ $(if $(target_user),,$(error unbound variable: target_user)) $(if $(target_port),,$(error unbound variable: target_port)) $(if $(target_path),,$(error unbound variable: target_path)) +export target ?= $(target_user)@$(target_host):$(target_port)$(target_path) + build = \ nix-build \ --no-out-link \ @@ -81,16 +83,14 @@ deploy: populate # usage: make populate system=foo ifeq ($(debug),true) -populate: populate-flags = --debug +populate: populate-flags += --debug endif ifneq ($(ssh),) populate: populate-flags += --ssh=$(ssh) endif populate: $(call evaluate,config.krebs.build.source) --json --strict | \ - populate \ - $(target_user)@$(target_host):$(target_port)$(target_path) \ - $(populate-flags) + populate $(target) $(populate-flags) # usage: make pkgs.populate pkgs:;@$(error no package selected) |