Skip to content

Commit

Permalink
add install dep for system files
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaboud committed May 19, 2022
1 parent bc682cc commit 38b43e7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ endif
# system install, requires `systemctl restart cockpit.socket`
# runs plugin-install-* for each plugin
.SECONDEXPANSION:
install install-local install-remote: default $$(addprefix plugin-$$@-, $$(PLUGIN_SRCS))
install install-local install-remote: default $$(addprefix plugin-$$@-, $$(PLUGIN_SRCS)) system-files-$$@
ifeq ($(RESTART_COCKPIT), 1)
ifndef DESTDIR
$(SSH) systemctl stop cockpit.socket
Expand Down Expand Up @@ -120,6 +120,15 @@ plugin-install-remote-% : INSTALL_SUFFIX=-test
plugin-install-remote-% : SSH=ssh $(REMOTE_TEST_USER)@$(REMOTE_TEST_HOST)
plugin-install-remote-% : REMOTE_TEST_HOME=$(shell ssh $(REMOTE_TEST_USER)@$(REMOTE_TEST_HOST) 'echo $$HOME')

system-files-install:
-cp -af system_files/* $(DESTDIR)/

system-files-install-local:
-cp -af system_files/* $(DESTDIR)/

system-files-install-remote:
-rsync -avh system_files/* $(REMOTE_TEST_USER)@$(REMOTE_TEST_HOST):$(DESTDIR)/

clean: FORCE
rm $(dir $(OUTPUTS)) -rf

Expand Down

0 comments on commit 38b43e7

Please sign in to comment.