Develop, Decorate and manage Dependencies for C (GNU) Makefiles easily with Ruby.
Install using the Ruby Gem:
> gem install demake
To see command syntax:
> demake ?
Command syntax:
demake - Create or update Makefile
demake ? - View this help information
demake new <name> - Create new application
demake example - Create an example application
demake oreo - Create a different sample application
To create a new application:
> demake new <name>
This will create a new directory and basic files for a new C application.
To create or update a GNU Makefile on an existing demake application,
execute without arguments:
> demake
To create an example with multiple sample applications:
> demake example
This will create a directory named example containing the example.
To create an example with a single sample application:
> demake oreo
This will create a directory named oreo containing the example.
It requires a demake directory and application file containing the
application names followed by depencencies separated by spaces and
with a new line to indicate a different application.
Something like (from the example):
> mkdir demake
> echo "hello string" > demake/applications
> echo "goodbye string" >> demake/applications
> demake
For customization, optionally include (see example):
demake/settings.rb, demake/test-target.rb, demake/install-target.rb,
demake/license
You can also clone from git:
> git clone https://github.com/MinaswanNakamoto/demake.git
> chmod +x demake/bin/demake
> cd demake
> bin/demake example
> cd example ; make ; make build ; make test
If you have an existing C application and you want to generate a Makefile
for it, you might try the gen_application shell script.
> ./gen_application myapp
Required Ruby Version
>= 1.8.7
Authors
Minaswan Nakamoto
Versions
- 0.2.4 July 10, 2026 (53.5 KB)
- 0.2.3 June 29, 2026 (41 KB)
- 0.2.2 June 21, 2026 (40.5 KB)
- 0.2.1 May 08, 2026 (35.5 KB)
- 0.2.0 April 24, 2026 (18.5 KB)