Create package with scripts only - no compile

There's very good example in the openwrt docs how to create simple package. I need to create even simpler package - I do not need to compile anything, package must only install (and remove) shell scripts. Some time ago I have played trying to tune make for that - with no success, make always saying it does not have target defined in the Makefile. Internet search did not help much too. Can you advise a Makefile (format) for such a package? I think it is ugly to have helloworld program as a placeholder just to make stuff compile and final image assembled (however this is what I can reliably do right now :slight_smile: )

You could take a look at https://github.com/openwrt/packages/blob/master/net/adblock/Makefile

3 Likes

The suggested example shows the necessary things: define empty prepare, configure, compile sections, and just have the install section to take care of copying the files.

1 Like

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