Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.
/ NimMakefile Public archive

A Makefile meant to be submoduled in to a Nim project to handle the build

License

Notifications You must be signed in to change notification settings

Nycto/NimMakefile

Repository files navigation

Nim Makefile Build Status

A common Makefile for building Nim projects.

Features

  • Building and running tests in the test folder
  • Building any binaries in the bin folder
  • Compiling any code embedded in the README.md
  • Watching for changes and recompiling via make watch
  • Dependency analysis to reduce unnecessary rebuilds
  • Setting up the environment for a Travis CI build (see below)

Install

You can add this Makefile to your project with the following commands:

git submodule add https://github.com/Nycto/NimMakefile;
echo '$(info $(shell (git submodule status NimMakefile | grep -sP "^-") && git submodule update --init NimMakefile))' > Makefile;
echo 'include NimMakefile/makefile.mk' >> Makefile;

Once that is done, you can run make to compile your Nim project.

Travis CI Integration

To support building your Nim project with Travis CI, you can run the following command:

make travis-setup

Then, you just need to check in the .travis.yml file:

git add .travis.yml
git commit

About

A Makefile meant to be submoduled in to a Nim project to handle the build

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published