mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
This will allow users to specify buildpacks outside of a git repository. Note that this does not override any specified `BUILDPACK_URL`. Closes #3256
38 lines
960 B
Makefile
38 lines
960 B
Makefile
include ../../common.mk
|
|
|
|
GO_ARGS ?= -a
|
|
|
|
SUBCOMMANDS = subcommands/add subcommands/clear subcommands/list subcommands/remove subcommands/report subcommands/set
|
|
TRIGGERS = triggers/install triggers/post-delete triggers/post-extract triggers/report
|
|
build-in-docker: clean
|
|
docker run --rm \
|
|
-v $$PWD/../..:$(GO_REPO_ROOT) \
|
|
-w $(GO_REPO_ROOT)/plugins/buildpacks \
|
|
$(BUILD_IMAGE) \
|
|
bash -c "GO_ARGS='$(GO_ARGS)' make -j4 build" || exit $$?
|
|
|
|
build: commands subcommands triggers
|
|
$(MAKE) triggers-copy
|
|
|
|
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 triggers install post-delete post-extract report
|
|
|
|
src-clean:
|
|
rm -rf .gitignore src triggers vendor Makefile *.go
|
|
|
|
triggers: $(TRIGGERS)
|
|
|
|
triggers/%: src/triggers/*/%.go
|
|
go build $(GO_ARGS) -o $@ $<
|
|
|
|
triggers-copy:
|
|
cp triggers/* .
|