# Creating custom beat, "make package" fails with "make: \*\*\* No rule to make target 'package'. Stop."

**URL:** https://discuss.elastic.co/t/creating-custom-beat-make-package-fails-with-make-no-rule-to-make-target-package-stop/175766
**Category:** Beats
**Tags:** beats-development
**Created:** [April 8, 2019, 6:44am UTC](https://discuss.elastic.co/t/creating-custom-beat-make-package-fails-with-make-no-rule-to-make-target-package-stop/175766 "2019-04-08T06:44:06Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![akankshajpr](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@akankshajpr](https://discuss.elastic.co/u/akankshajpr)
#### Post date: [April 8, 2019, 6:44am UTC](https://discuss.elastic.co/t/creating-custom-beat-make-package-fails-with-make-no-rule-to-make-target-package-stop/175766/1 "2019-04-08T06:44:06Z")

</div>

I am trying to create a custom beat using the guide [https://www.elastic.co/guide/en/beats/devguide/current/new-beat.html](https://www.elastic.co/guide/en/beats/devguide/current/new-beat.html) and am unable to package it. Ideally the command "make package" should do the job but it is failing with error:  
_make: \*\*\* No rule to make target 'package'. Stop._  
Please help

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [April 8, 2019, 2:21pm UTC](https://discuss.elastic.co/t/creating-custom-beat-make-package-fails-with-make-no-rule-to-make-target-package-stop/175766/2 "2019-04-08T14:21:14Z")

</div>

Can you try using one of these and see if it works:

- `make release`
- `make snapshot` - This is like `release` but appends `-SNAPSHOT` to the version.

---

<div class="post-metadata">

### Author: ![akankshajpr](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@akankshajpr](https://discuss.elastic.co/u/akankshajpr)
#### Post date: [April 9, 2019, 12:59pm UTC](https://discuss.elastic.co/t/creating-custom-beat-make-package-fails-with-make-no-rule-to-make-target-package-stop/175766/3 "2019-04-09T12:59:48Z")

</div>

After executing "make release", when I go to build/package/ , I see folders with extensions .tar.gz , .deb etc. Shouldn't these be executables instead of folders.

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [April 9, 2019, 3:07pm UTC](https://discuss.elastic.co/t/creating-custom-beat-make-package-fails-with-make-no-rule-to-make-target-package-stop/175766/4 "2019-04-09T15:07:15Z")

</div>

What about in `build/distributions`?

---

<div class="post-metadata">

### Author: ![akankshajpr](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@akankshajpr](https://discuss.elastic.co/u/akankshajpr)
#### Post date: [April 10, 2019, 6:38am UTC](https://discuss.elastic.co/t/creating-custom-beat-make-package-fails-with-make-no-rule-to-make-target-package-stop/175766/5 "2019-04-10T06:38:33Z")

</div>

Got the file. Executable worked like a charm. Thanks a lot. Had been struggling since long.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 8, 2019, 8:38am UTC](https://discuss.elastic.co/t/creating-custom-beat-make-package-fails-with-make-no-rule-to-make-target-package-stop/175766/6 "2019-05-08T08:38:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
