matricks / bam

Bam is a fast and flexible build system. Bam uses Lua to describe the build process. It's takes its inspiration for the script files from scons. While scons focuses on being 100% correct when building, bam makes a few sacrifices to acquire fast full and incremental build times.
http://matricks.github.com/bam
Other
146 stars 47 forks source link

node error #41

Closed i124q2n8 closed 9 years ago

i124q2n8 commented 12 years ago

error: node 'hash.cpp' is depended on itself and is produced by a job

There should be a way to turn off this error.

Example: a job produces a md5 hash of file.cpp and saves it to hash.cpp

//version.h
#ifndef NON_HASED_VERSION
    #include "generated/hash.cpp"
    #define GAME_LUA_VERSION_HASH "1.3 " GAME_LUAVERSION_HASH
#endif
#define GAME_LUA_VERSION "1.3"
//file.cpp
#define NON_HASED_VERSION
#include "version.h"
#undef NON_HASED_VERSION

In this case the hased data wont be included

matricks commented 9 years ago

No. If you have a job that is dependent on itself you have done something wrong. Why is hash.cpp dependent on itself?