aboutsummaryrefslogtreecommitdiff
path: root/default.bld
diff options
context:
space:
mode:
Diffstat (limited to 'default.bld')
-rw-r--r--default.bld21
1 files changed, 17 insertions, 4 deletions
diff --git a/default.bld b/default.bld
index 130c1a2..5660e99 100644
--- a/default.bld
+++ b/default.bld
@@ -17,7 +17,7 @@ CXXFLAGS += "-ggdb -W -Wall -I.";
17 17
18action "default" 18action "default"
19{ 19{
20 build: [targets("header-links"), "libbu++.a", 20 build: ["header-links", "libbu++.a",
21 targets("tools")]; 21 targets("tools")];
22} 22}
23 23
@@ -28,7 +28,7 @@ action "pkg"
28 28
29action "all" 29action "all"
30{ 30{
31 build: [targets("header-links"), "libbu++.a", 31 build: ["header-links", "libbu++.a",
32 targets("tools"), targets("tests")]; 32 targets("tools"), targets("tests")];
33} 33}
34 34
@@ -60,6 +60,7 @@ target "src/version.h"
60target "src/signals.h" 60target "src/signals.h"
61{ 61{
62 input "gensigs.bld"; 62 input "gensigs.bld";
63 display "generate";
63 profile "build" 64 profile "build"
64 { 65 {
65 genSigs( OUTPUT ); 66 genSigs( OUTPUT );
@@ -80,7 +81,8 @@ target [files("src/*.h").replace("src/", "bu/"), "bu/autoconfig.h",
80 input OUTPUT.replace("bu/","src/"); 81 input OUTPUT.replace("bu/","src/");
81 profile "build" 82 profile "build"
82 { 83 {
83 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}"); 84 DIR = OUTPUT.dirName();
85 execute("mkdir -p ${DIR}; ln -s ../${INPUT} ${OUTPUT}");
84 } 86 }
85} 87}
86 88
@@ -91,7 +93,18 @@ target files("src/compat/*.h").replace("src/", "bu/")
91 input OUTPUT.replace("bu/","src/"); 93 input OUTPUT.replace("bu/","src/");
92 profile "build" 94 profile "build"
93 { 95 {
94 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../../${INPUT} ${OUTPUT}"); 96 DIR = OUTPUT.dirName();
97 execute("mkdir -p ${DIR}; ln -s ../../${INPUT} ${OUTPUT}");
98 }
99}
100
101target "header-links"
102{
103 input targets("header-links");
104 display "symlinks";
105 profile "build"
106 {
107 condition always;
95 } 108 }
96} 109}
97 110