rpmdist.mk: Add target ssh-remote

This target runs ssh -l root $(TARGET_HOST), with TARGET_HOST typically defined in
$(MODDIR)/make/local.mk. Seems a bit out-of-place, everything, but anyway.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-06-26 12:56:50 +00:00
commit e70f7a1c5c
2 changed files with 3 additions and 1 deletions

View file

@ -1,7 +1,7 @@
TOPDIR = ../..
SUBTREE_INSTALL_PREFIX ?= /etc/jcs
SUBTREE_FILES += ./templates/dir/module/Makefile ./templates/dir/src/Makefile
include $(TOPDIR)/make/proj.mk
include $(MODDIR)/make/subtree.mk

View file

@ -329,6 +329,8 @@ pkg-remote-install:
pkg-remote-install-run: pkg-install-remote.done
scp $(addprefix dist/pckg/,$(PCKG_RPM_RUN_I386)) root@$(TARGET_HOST):/tmp/
ssh -l root $(TARGET_HOST) rpm -U --force $(addprefix /tmp/,$(PCKG_RPM_RUN_I386))
ssh-remote:
ssh -l root $(TARGET_HOST)
endif
echo-requires: