aboutsummaryrefslogtreecommitdiff
path: root/buildm3.conf
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-12-20 06:37:40 +0000
committerMike Buland <eichlan@xagasoft.com>2009-12-20 06:37:40 +0000
commit56ced4bcccf3d361ff9768e78d8118faeb75269a (patch)
tree22b40384d6fb7f3ee3c0ff41de488a46591c96e5 /buildm3.conf
parent8f5a78eabbbe94e5480078f4fdd29523be17398e (diff)
downloadlibbu++-56ced4bcccf3d361ff9768e78d8118faeb75269a.tar.gz
libbu++-56ced4bcccf3d361ff9768e78d8118faeb75269a.tar.bz2
libbu++-56ced4bcccf3d361ff9768e78d8118faeb75269a.tar.xz
libbu++-56ced4bcccf3d361ff9768e78d8118faeb75269a.zip
I'm really just working on build, but I found an interesting problem, when a
target is specified more than once, the new ones should merely augment the old one, not replace it, this is necesarry, but I think easy as well, but I'm going to switch machines for a bit and so now I commit :)
Diffstat (limited to 'buildm3.conf')
-rw-r--r--buildm3.conf68
1 files changed, 0 insertions, 68 deletions
diff --git a/buildm3.conf b/buildm3.conf
deleted file mode 100644
index ccc7131..0000000
--- a/buildm3.conf
+++ /dev/null
@@ -1,68 +0,0 @@
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