Skip to content

Not autotest, not autospec, but automake(r)

Notifications You must be signed in to change notification settings

nhogle/automaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

automaker

This tool is inspired by autotest/autospec and automatically calls make when something changes in the directory it monitors. I added the ‘r’ in automakeR because I don’t want to clash with GNU automake.

Prerequisites and dependencies

Since it uses Linux’s INotifier API it only works on Linux and it requires the rb-inotify gem. See Installing.

Installing

It’s on gemcutter so just do:

$ sudo gem install fsevents automaker

Using

Specify the path to watch, the directory in which to run make and the patterns to look for in filenames of changed files:

$ automaker /path/to/watch /path/to/dir_containing_makefile .tex .whatever

Alternately, include a .automaker YAML file in the directory you want to run Automaker from. An example .automaker file is show here:

:path_to_watch: src/ :path_to_build: build/ :filters: - .cpp - .h

Todo

  • make it return a proper exit code

  • make it react to ctrl-c autospec-style

    • ctrl-c c to make clean

    • ctrl-c a to make all

    • ctrl-c ctrl-c to exit

About

Not autotest, not autospec, but automake(r)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages