debian-image-builder-frontend/Makefile
Michal Gold 28ba4af814 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
2024-10-30 10:36:18 -05:00

33 lines
598 B
Makefile

FISTBOOT_SERVICE := $(shell base64 -w0 < aux/custom-first-boot.service)
INSTALL_DIR := ~/.local/share/cockpit/image-builder-frontend
help:
@cat Makefiles
.PHONY: prep
prep: src/constants.ts
.PHONY: install
install:
npm install
.PHONY: start
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