1
Developer's Corner / Fabricate: the better "make". Finds dependencies automatically for any language
« on: July 27, 2009, 05:24 AM »
fabricate is a build tool that finds dependencies automatically for any language. It's small and just works. No hidden stuff behind your back. It was inspired by Bill McCloskey's "make" replacement, memoize, but fabricate works on Windows as well as Linux.
Features
Show me an example!
Continued on google code ...
Features
- Never have to list dependencies.
- Never have to specify cleanup rules.
- The tool is a single Python file.
- It uses MD5 (not timestamps) to check inputs and outputs.
- You can learn it all in about 10 minutes.
- You can still read your build scripts 3 months later.
Show me an example!
Code: Python [Select]
- from fabricate import *
- sources = ['program', 'util']
- def build():
- compile()
- link()
- def compile():
- for source in sources:
- run('gcc -c ' + source + '.c')
- def link():
- objects = ' '.join(s + '.o' for s in sources)
- run('gcc -o program ' + objects)
- def clean():
- autoclean()
- main()
Continued on google code ...