mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-04-05 10:08:09 +00:00
40 lines
791 B
Makefile
40 lines
791 B
Makefile
|
|
BIN_DIR=/usr/local/bin
|
|
|
|
all: build
|
|
|
|
build:
|
|
./build
|
|
|
|
test:
|
|
./test
|
|
|
|
install:
|
|
cp bin/bootcfg $(BIN_DIR)
|
|
cp bin/bootcmd $(BIN_DIR)
|
|
@echo "**************"
|
|
@echo "INSTALL SUCCESS"
|
|
@echo "**************"
|
|
@echo "bootcfg was installed to /usr/local/bin/bootcfg"
|
|
@echo "bootcmd was installed to /usr/local/bin/bootcmd"
|
|
|
|
uninstall:
|
|
rm $(BIN_DIR)/bootcfg
|
|
rm $(BIN_DIR)/bootcmd
|
|
|
|
release: clean _output/coreos-baremetal-linux-amd64.tar.gz
|
|
|
|
_output/coreos-baremetal-%-amd64/bootcfg: build
|
|
@mkdir -p $(dir $@)
|
|
./scripts/release-files $(dir $@)
|
|
|
|
_output/coreos-baremetal-%-amd64.tar.gz: _output/coreos-baremetal-%-amd64/bootcfg
|
|
tar zcvf $@ -C _output coreos-baremetal-$*-amd64
|
|
|
|
clean:
|
|
rm -rf _output
|
|
|
|
.PHONY: build clean install test
|
|
|
|
.SECONDARY: _output/coreos-baremetal-linux-amd64/bootcfg
|