From e8c29ba2d404f1e6487cd1da24e6fc9f56d68a7e Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Sat, 8 Jan 2011 15:45:56 -0800 Subject: [PATCH] build file cleanups --- build.ninja | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build.ninja b/build.ninja index 7278cb6..406d561 100644 --- a/build.ninja +++ b/build.ninja @@ -1,10 +1,9 @@ # This file is used to build ninja itself, but it also serves as a # documented example. +# Most variables aren't magic at all; it's up to the rules to make use +# of them. builddir = build - -# Most other variables, like cflags, aren't magic at all; it's up to -# the rules to make use of them. cxx = g++ #cxx = /home/evanm/projects/src/llvm/Release+Asserts/bin/clang++ cflags = -g -Wall -Wno-deprecated -fno-exceptions -fvisibility=hidden -pipe @@ -18,12 +17,15 @@ ldflags = -g -rdynamic rule cxx depfile = $out.d command = $cxx -MMD -MF $out.d $cflags -c $in -o $out + description = CC $out rule ar command = ar crsT $out $in + description = AR $out rule link command = $cxx $ldflags -o $out $in + description = LINK $out # These build rules build the ".o" files from the ".cc" files, # build "ninja.a" by linking the builddir's "ninja.o", @@ -65,6 +67,7 @@ build graph.png: gengraph $builddir/graph.dot rule asciidoc command = asciidoc -a toc $in + description = ASCIIDOC $in build manual.html: asciidoc manual.asciidoc build doc: phony | manual.html -- 2.7.4