Makefile: add Makefile for building and installing cockpit plugin
Add some targets to the Makefile so we can install the on-prem frontend as a cockpit plugin. based on starter-kit project
This commit is contained in:
parent
41cdc7d553
commit
28ba4af814
3 changed files with 24 additions and 0 deletions
17
Makefile
17
Makefile
|
|
@ -1,4 +1,5 @@
|
|||
FISTBOOT_SERVICE := $(shell base64 -w0 < aux/custom-first-boot.service)
|
||||
INSTALL_DIR := ~/.local/share/cockpit/image-builder-frontend
|
||||
|
||||
help:
|
||||
@cat Makefiles
|
||||
|
|
@ -14,3 +15,19 @@ install:
|
|||
start: prep
|
||||
npm start
|
||||
|
||||
cockpit/all: devel-uninstall devel-install build
|
||||
|
||||
devel-install:
|
||||
mkdir -p ~/.local/share/cockpit
|
||||
ln -s $(shell pwd)/cockpit/public $(INSTALL_DIR)
|
||||
|
||||
build:
|
||||
npm run build:cockpit
|
||||
|
||||
devel-uninstall:
|
||||
rm -rf $(INSTALL_DIR)
|
||||
rm cockpit/public/*.css
|
||||
rm cockpit/public/*.js
|
||||
|
||||
.PHONY: cockpit/all devel-install build devel-uninstall
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue