Package gmisclib :: Module makemake
[frames] | no frames]

Module makemake

source code

This module is designed to build makefiles.

Classes
  FileNotFound
Functions
 
maketemp(dir='/tmp', prefix='maketemp', suffix='') source code
 
setlog(f) source code
 
log(*s)
Log some strings, one per line.
source code
 
quote(s) source code
 
var(k, v)
Pass a variable to make.
source code
 
rule(a, *b)
Writes a rule into a makefile.
source code
 
blank() source code
 
set_debug() source code
 
finish() source code
 
date() source code
 
path_to(s) source code
 
set_make_prog(*s) source code
str !Not an integer!
ncpu()
Returns: a string representation of the integer number of cores that the computer has.
source code
 
read(fn) source code
Variables
  makeflags = []
  makefile = None
hash(x)
  DB_format = 'fiatio'
  __package__ = 'gmisclib'

Imports: os, re, sys, tempfile, datetime, subprocess, die, avio, fiatio, gpkmisc


Function Details

rule(a, *b)

source code 

Writes a rule into a makefile. All lines except the first are indented.

ncpu()

source code 
Returns: str !Not an integer!
a string representation of the integer number of cores that the computer has.