cs2lint

CubeScript linter for Cube2 engine
git clone git://deadbeef.fr/cs2lint.git
Log | Files | Refs | README | LICENSE

commit 51e0e87fc2f080a32b6356e7e80b6e0f2d8802af
parent b1610157f6d72f0592d9602caf747e74676c0ca9
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Thu, 13 Aug 2020 02:01:35 +0200

improved build.ninja

Diffstat:
Mbuild.ninja | 17+++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/build.ninja b/build.ninja @@ -3,12 +3,15 @@ COCOBUILD = $BUILD/coco_gen CXX = clang++ CXXFLAGS = $$CXXFLAGS -fcolor-diagnostics -D_MSC_VER=0 -I $COCOBUILD -I . COCO = cococpp -COCOFLAGS = -frames /usr/share/coco-cpp -o $COCOBUILD +COCODIR = /usr/share/coco-cpp/ +COCOFLAGS = -frames $COCODIR -o $COCOBUILD LD = clang++ LDFLAGS = $$CXXFLAGS rule cxx - command = $CXX $CXXFLAGS -c $in -o $out + depfile = $out.d + deps = gcc + command = $CXX $CXXFLAGS -MD -MF $out.d -c $in -o $out rule coco command = $COCO $COCOFLAGS $in @@ -16,15 +19,9 @@ rule coco rule link command = $LD $LDFLAGS $in -o $out -rule mkd - command = test -d $out || mkdir $out +build $COCOBUILD/Parser.cpp $COCOBUILD/Scanner.cpp $COCOBUILD/Parser.h $COCOBUILD/Scanner.h: coco cubescript.atg | $COCODIR/Parser.frame $COCODIR/Scanner.frame -build $BUILD: mkd -build $COCOBUILD: mkd | $BUILD - -build $COCOBUILD/Parser.cpp $COCOBUILD/Scanner.cpp $COCOBUILD/Parser.h $COCOBUILD/Scanner.h: coco cubescript.atg | /usr/share/coco-cpp/Parser.frame /usr/share/coco-cpp/Scanner.frame - -build $BUILD/main.cpp.o: cxx main.cpp | $COCOBUILD/Parser.h $COCOBUILD/Scanner.h +build $BUILD/main.cpp.o: cxx main.cpp build $BUILD/Parser.cpp.o: cxx $COCOBUILD/Parser.cpp build $BUILD/Scanner.cpp.o: cxx $COCOBUILD/Scanner.cpp