def write(self, f):
print >>f, "#!/usr/bin/make -f"
print >>f, ""
- print >>f, "%:"
+ print >>f, ".PHONY: build" # there may be a directory called "build"
+ print >>f, ""
+ print >>f, "build %:" # need to mention "build" here again explicitly
print >>f, '\t'+self.env2str()+' dh $@ '+safeCall(*self.dh)
for rule in self.rules:
print >>f, ""
# build-system specific part of rules file
def cmakeRules(config):
- buildDir = config.get('buildDir', 'build.dir') # "build" is not a good idea, as that's also the name of a target...
+ buildDir = config.get('buildDir', 'build')
srcDir = os.getcwd()
r = RulesFile()
r.dh += ["--buildsystem=cmake", "--builddirectory="+buildDir] # dh parameters