1
0
mirror of https://github.com/rancher/os.git synced 2025-08-29 19:44:22 +00:00
os/Makefile
Sven Dowideit e97ad03b99 Fix dapper filename
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2016-10-05 09:56:28 +10:00

40 lines
661 B
Makefile

TARGETS := $(shell ls scripts | grep -vE 'clean|run|help')
.dapper:
@echo Downloading dapper
@curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m` > .dapper.tmp
@@chmod +x .dapper.tmp
@./.dapper.tmp -v
@mv .dapper.tmp .dapper
$(TARGETS): .dapper
./.dapper $@
trash: .dapper
./.dapper -m bind trash
trash-keep: .dapper
./.dapper -m bind trash -k
deps: trash
build/initrd/.id: .dapper
./.dapper prepare
run: build/initrd/.id .dapper
./.dapper -m bind build-target
./scripts/run
shell-bind: .dapper
./.dapper -m bind -s
clean:
@./scripts/clean
help:
@./scripts/help
.DEFAULT_GOAL := default
.PHONY: $(TARGETS)