2016-11-24 01:35:27 +00:00
|
|
|
TARGETS := $(shell ls scripts | grep -vE 'clean|run|help|docs')
|
2015-07-23 18:53:01 +05:00
|
|
|
|
2016-05-06 10:12:09 -07:00
|
|
|
.dapper:
|
|
|
|
@echo Downloading dapper
|
2016-11-25 10:10:21 +10:00
|
|
|
@curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m|sed 's/v7l//'` > .dapper.tmp
|
2016-05-06 10:12:09 -07:00
|
|
|
@@chmod +x .dapper.tmp
|
|
|
|
@./.dapper.tmp -v
|
|
|
|
@mv .dapper.tmp .dapper
|
2015-07-23 18:53:01 +05:00
|
|
|
|
2016-05-06 10:12:09 -07:00
|
|
|
$(TARGETS): .dapper
|
|
|
|
./.dapper $@
|
2015-07-23 18:53:01 +05:00
|
|
|
|
2016-05-06 10:12:09 -07:00
|
|
|
trash: .dapper
|
|
|
|
./.dapper -m bind trash
|
2015-08-06 00:04:46 -07:00
|
|
|
|
2016-05-06 10:12:09 -07:00
|
|
|
trash-keep: .dapper
|
|
|
|
./.dapper -m bind trash -k
|
2015-07-23 18:53:01 +05:00
|
|
|
|
2016-05-06 10:12:09 -07:00
|
|
|
deps: trash
|
2015-07-23 18:53:01 +05:00
|
|
|
|
2016-10-05 09:47:07 +10:00
|
|
|
build/initrd/.id: .dapper
|
|
|
|
./.dapper prepare
|
2015-08-06 00:04:46 -07:00
|
|
|
|
2016-10-05 09:47:07 +10:00
|
|
|
run: build/initrd/.id .dapper
|
|
|
|
./.dapper -m bind build-target
|
2016-05-06 10:12:09 -07:00
|
|
|
./scripts/run
|
2015-07-23 18:53:01 +05:00
|
|
|
|
2016-11-02 15:19:14 +10:00
|
|
|
docs:
|
|
|
|
./scripts/docs
|
|
|
|
|
2016-10-05 09:47:07 +10:00
|
|
|
shell-bind: .dapper
|
|
|
|
./.dapper -m bind -s
|
2016-05-31 21:11:03 -07:00
|
|
|
|
2016-05-06 10:12:09 -07:00
|
|
|
clean:
|
|
|
|
@./scripts/clean
|
2016-03-31 15:35:45 -07:00
|
|
|
|
2016-05-22 23:11:26 -07:00
|
|
|
help:
|
|
|
|
@./scripts/help
|
|
|
|
|
|
|
|
.DEFAULT_GOAL := default
|
2016-01-15 18:18:30 +05:00
|
|
|
|
2016-05-06 10:12:09 -07:00
|
|
|
.PHONY: $(TARGETS)
|