Slashdot Mirror


Announcing 'build', Auto-Configuration In 1000 Lines Of Makefile (github.com)

Christophe de Dinechin created the XL programming language -- and as descubes he's also Slashdot reader #35,093. Today he shares his latest project, a simple makefile-based build system that he's split from ELFE/XL: Most open-source projects use tools such as autoconf and automake. For C and C++ projects, build is a make-based alternative that offers auto-configuration, build logs, colorization, testing and install targets, in about 1000 lines of makefile. A sample makefile looks like this:

BUILD=./
SOURCES=hello.cpp
PRODUCTS=hello.exe
CONFIG= <stdio.h> <iostream> clearenv libm
TESTS=product
include $(BUILD)rules.mk


2 of 103 comments (clear)

  1. Hmm... by __aaclcg7560 · · Score: 0, Troll

    I'll stick to using Ant for my Python projects.

    1. Re:Hmm... by __aaclcg7560 · · Score: 1, Troll

      It's a fucking scripting language - the only "build" it requires is running the goddamned python interpreter.

      The ant build script for my static websites generates the static files using Pelican, archives the output directory to a backup folder on the file server, and then transfer the output files to the web hosting server. I just type "ant all" from the command line for everything to get done automatically. Each static website has a build.properties file that has specific settings for the build script to use.