aboutsummaryrefslogtreecommitdiff
path: root/buildm3.conf
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--buildm3.conf68
1 files changed, 68 insertions, 0 deletions
diff --git a/buildm3.conf b/buildm3.conf
new file mode 100644
index 0000000..ccc7131
--- /dev/null
+++ b/buildm3.conf
@@ -0,0 +1,68 @@
1# vim: syntax=build
2
3set CXXFLAGS += "-ggdb -W -Wall";
4
5action "default"
6{
7 build: [targets("header-links"), "libbu++.a"];
8}
9
10action "pkg"
11{
12 build: targets("pkg");
13}
14
15target files("src/*.h").replace("src/", "bu/")
16{
17 tag "header-links";
18 display "symlink";
19 input OUTPUT.replace("bu/","src/");
20 profile "build"
21 {
22 execute("ln -s ../${INPUT} ${OUTPUT}");
23 }
24}
25
26target "libbu++.a"
27{
28 input files("src/*.cpp");
29 rule "lib";
30 set CXXFLAGS += "-I. -fPIC";
31}
32
33target "libbu++-r$(svnversion "-n").tar.bz2"
34{
35 input [
36 "LICENSE",
37 "build.conf",
38 "Doxyfile",
39 "buildm3.conf",
40 "support/vim/syntax/taf.vim",
41 "support/vim/ftdetect/taf.vim",
42 "support/vim/ftplugin/taf.vim",
43 files("*.sh"),
44 files("src/*.cpp"),
45 files("src/*.h"),
46 files("src/tests/*.cpp"),
47 files("src/tests*.h"),
48 files("src/tools/*.cpp"),
49 files("src/tools/*.h"),
50 files("src/unit/*.unit"),
51 files("src/doxy/*.dox")
52 ];
53 rule "tarball";
54 tag "pkg";
55}
56
57rule "tarball"
58{
59 input matches("LICENSE", "*.cpp", "*.h", "*.conf", "Doxyfile", "*.vim",
60 "*.sh");
61 profile "build"
62 {
63 set OUTDIR = OUTPUT.replace(".tar.bz2","");
64 execute("tar --transform=\"s@^@${OUTDIR}/@\" -c ${INPUT} |"
65 " bzip2 -9 > ${OUTPUT}");
66 }
67}
68