From e70f7a1c5c3afd06ecab2984811e8230589402dc Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Mon, 26 Jun 2017 12:56:50 +0000 Subject: [PATCH] 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 --- conf/jcs/Makefile | 2 +- make/rpmdist.mk | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/jcs/Makefile b/conf/jcs/Makefile index 42a14bff..378763a4 100644 --- a/conf/jcs/Makefile +++ b/conf/jcs/Makefile @@ -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 - diff --git a/make/rpmdist.mk b/make/rpmdist.mk index 9f591ecd..99eba9b3 100644 --- a/make/rpmdist.mk +++ b/make/rpmdist.mk @@ -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: