forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request elastic#5 from cyrilleverrier/improve_makefile
Improve makefile and README.md
- Loading branch information
Showing
7 changed files
with
94 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
BEATNAME={{cookiecutter.beat}} | ||
BEAT_DIR={{cookiecutter.beat_path}} | ||
SYSTEM_TESTS=false | ||
TEST_ENVIRONMENT=false | ||
|
||
# Path to the libbeat Makefile | ||
include vendor/github.com/elastic/beats/libbeat/scripts/Makefile | ||
PREFIX?=. | ||
ES_BEATS=./vendor/github.com/elastic/beats | ||
GOPACKAGES=$(shell glide novendor) | ||
include $(ES_BEATS)/libbeat/scripts/Makefile | ||
|
||
.PHONY: generate | ||
generate: | ||
python scripts/generate_template.py etc/fields.yml etc/{{cookiecutter.beat}}.template.json | ||
python scripts/generate_field_docs.py etc/fields.yml etc/{{cookiecutter.beat}}.asciidoc | ||
|
||
.PHONY: install-cfg | ||
install-cfg: | ||
mkdir -p $(PREFIX) | ||
cp etc/{{cookiecutter.beat}}.template.json $(PREFIX)/{{cookiecutter.beat}}.template.json | ||
cp etc/{{cookiecutter.beat}}.yml $(PREFIX)/{{cookiecutter.beat}}.yml | ||
cp etc/{{cookiecutter.beat}}.yml $(PREFIX)/{{cookiecutter.beat}}-linux.yml | ||
cp etc/{{cookiecutter.beat}}.yml $(PREFIX)/{{cookiecutter.beat}}-binary.yml | ||
cp etc/{{cookiecutter.beat}}.yml $(PREFIX)/{{cookiecutter.beat}}-darwin.yml | ||
cp etc/{{cookiecutter.beat}}.yml $(PREFIX)/{{cookiecutter.beat}}-win.yml | ||
|
||
update-deps: | ||
glide update --no-recursive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters