summaryrefslogtreecommitdiffstats
path: root/subdir-rules.mk
Commit message (Collapse)AuthorAgeFilesLines
* Split generator into separate source files.Richard Jones2010-09-111-3/+3
| | | | | | | | | | 'src/generator.ml' is no more. Instead the generator is logically split up over many different source files. Read generator/README for help and tips. We compile the generator down to bytecode, not native code. This means it will run more slowly, but is done for maximum portability.
* build: Add missing dependencies in perl directoryMatthew Booth2009-11-211-0/+5
| | | | | | | | make all in the perl directory was missing a check that the library had been built. make check in the perl directory was missing a check that the appliance and test images had been built.
* build: Rebuild the daemon as necessary from other directoriesMatthew Booth2009-11-211-0/+4
| | | | | This change ensure that making the appliance will always rebuild the daemon if required.
* build: Fix inter-directory dependenciesMatthew Booth2009-11-191-0/+29
This change adds an explicit dependency on generator.ml for every file it generates, except java files. Java is left for another time because it's considerably trickier. It also adds a build rule for src/libguestfs.la so it can be rebuilt as required from other directories. It does this by creating a top level make file, subdir-rules.mk, which can be included from sub-directories. sub-directories need to define 'generator_built' to include local files which are built by generator.ml, and they will be updated automatically. This fixes parallel make, and will automatically re-create generated files when make is run from any directory. It also fixes the problem which efad4f53 was targetting. Specifically, src/guestfs_protocol.(c|h) had an erroneous dependency on stamp-generator, and therefore generator.ml, despite not being directly created by it. This caused them to be recreated every time generator.ml ran rather than only when src/guestfs_protocol.x was updated, which cascaded into a daemon and therefore appliance update. This patch also changes the contents of the distribution tarball by including files created by rpcgen.