mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
33 lines
656 B
Makefile
33 lines
656 B
Makefile
|
|
BIN_DIR=/usr/local/bin
|
|
DATA_DIR=/var/lib/bootcfg
|
|
ENV_FILE=/etc/bootcfg.env
|
|
|
|
all: build
|
|
|
|
build:
|
|
./build
|
|
|
|
test:
|
|
./test
|
|
|
|
install:
|
|
cp bin/bootcfg $(BIN_DIR)
|
|
mkdir -p $(DATA_DIR)/{profiles,groups,ignition,cloud,assets}
|
|
mkdir -p $(DATA_DIR)
|
|
cp -n -R examples/profiles $(DATA_DIR)
|
|
cp -n -R examples/groups $(DATA_DIR)
|
|
cp -n -R examples/ignition $(DATA_DIR)
|
|
cp -n -R examples/cloud $(DATA_DIR)
|
|
touch ${ENV_FILE}
|
|
@echo "**************"
|
|
@echo "INSTALL SUCESS"
|
|
@echo "**************"
|
|
@echo "bootcfg was installed to /usr/local/bin/bootcfg"
|
|
@echo "Configs for machines are located at /var/lib/bootcfg"
|
|
|
|
uninstall:
|
|
rm $(BIN_DIR)/bootcfg
|
|
|
|
.PHONY: build
|