gen_makefile: add 'clone' target to first clone all repositries

This commit is contained in:
Neels Hofmeyr 2017-08-22 17:31:03 +02:00
parent 45f3cec3b5
commit e274d351f5
1 changed files with 3 additions and 0 deletions

View File

@ -194,6 +194,9 @@ regen:
build_dir=os.path.relpath(build_dir, make_dir),
))
# convenience target: clone all repositories first
out.write('clone: \\\n\t' + ' \\\n\t'.join([ '.make.%s.clone' % p for p, d in projects_deps ]) + '\n\n')
# now the actual useful build rules
out.write('all: \\\n\t' + ' \\\n\t'.join([ '.make.%s.detect_edits .make.%s.install' % (p,p) for p, d in projects_deps ]) + '\n\n')