mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
29 lines
670 B
Makefile
29 lines
670 B
Makefile
include ../../common.mk
|
|
|
|
GO_ARGS ?= -a
|
|
|
|
SUBCOMMANDS = subcommands/export subcommands/get subcommands/set subcommands/unset subcommands/keys subcommands/bundle
|
|
|
|
build-in-docker: clean
|
|
docker run --rm \
|
|
-v $$PWD/../..:$(GO_REPO_ROOT) \
|
|
-w $(GO_REPO_ROOT)/plugins/config \
|
|
$(BUILD_IMAGE) \
|
|
bash -c "GO_ARGS='$(GO_ARGS)' make -j4 build" || exit $$?
|
|
|
|
build: commands subcommands
|
|
|
|
commands: **/**/commands.go
|
|
go build $(GO_ARGS) -o commands src/commands/commands.go
|
|
|
|
subcommands: $(SUBCOMMANDS)
|
|
|
|
subcommands/%: src/subcommands/*/%.go
|
|
go build $(GO_ARGS) -o $@ $<
|
|
|
|
clean:
|
|
rm -rf commands subcommands
|
|
|
|
src-clean:
|
|
rm -rf .gitignore src triggers vendor Makefile *.go
|