Giter Site home page Giter Site logo

heroku-buildpack-c's Introduction

Heroku buildpack: C

This is a Heroku buildpack for C apps. It uses Make.

Usage

Example usage:

$ ls
configure  Makefile  myapp.c

$ heroku create --buildpack http://github.com/heroku/heroku-buildpack-c.git

$ git push heroku master
...
-----> Heroku receiving push
-----> Fetching custom buildpack
-----> C app detected
-----> Configuring
       Looking for somelibrary… ok
-----> Compiling with Make
       gcc -o myapp myapp.c

The buildpack will detect your app as C if it has the file Makefile in the root. It will run a configure script if it exists in the root of the repository. It will then run make to compile the app.

Hacking

To use this buildpack, fork it on Github. Push up changes to your fork, then create a test app with --buildpack <your-github-url> and push to it.

For example, you can run autogen.sh if it exists.

Open bin/compile in your editor, and add the following lines above the configure step:

if [ -f autogen.sh ]; then
  echo "-----> Running autogen.sh"
  ./autogen.sh 2>&1 | indent
fi

Commit and push the changes to your buildpack to your Github fork, then push your sample app to Heroku to test. You should see:

-----> Running autogen.sh

heroku-buildpack-c's People

Contributors

ddollar avatar dzuelke avatar mmcgrana avatar oguzbilgic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heroku-buildpack-c's Issues

adding make to heroku

Hi, I'm looking for a way to add make to the heroku app,

I'm currently using Node.JS build pack and when I try to call a make command it fails.

I get this error:
make: g++: Command not found

Is this for make or for C?

First, thanks a lot for publishing this! Fixed my CI build on gitlab, which all of a sudden was enabled for my repo. But seriously, why isn't a buildpack for C already a standard component in this heroku thing?

Now for the issue: Shouldn't this be called heroku-buildpack-make or something? There is nothing specific to C in here, and it could work for all kind of software building that uses a makefile.

A proper C buildpack should look for *.c files and if there is only one example.c it could run "make example" and make will do the right thing even without a Makefile or configure.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.