topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday June 16, 2024, 3:47 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - berwyn [ switch to compact view ]

Pages: [1]
1
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
  •     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]
  1. from fabricate import *
  2.  
  3. sources = ['program', 'util']
  4.  
  5. def build():
  6.     compile()
  7.     link()
  8.  
  9. def compile():
  10.     for source in sources:
  11.         run('gcc -c ' + source + '.c')
  12.  
  13. def link():
  14.     objects = ' '.join(s + '.o' for s in sources)
  15.     run('gcc -o program ' + objects)
  16.  
  17. def clean():
  18.     autoclean()
  19.  
  20. main()

Continued on google code ...

Pages: [1]