diff options
Diffstat (limited to '')
-rw-r--r-- | default.bld | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/default.bld b/default.bld index 1aca56a..9391c68 100644 --- a/default.bld +++ b/default.bld | |||
@@ -34,28 +34,20 @@ action "unit" | |||
34 | { | 34 | { |
35 | build: targets("unit tests"); | 35 | build: targets("unit tests"); |
36 | } | 36 | } |
37 | /* | 37 | |
38 | target "src/autoconfig.h" | 38 | target ["src/autoconfig.h", "src/version.h"] |
39 | { | 39 | { |
40 | input "autoconfig"; | 40 | input "autoconfig"; |
41 | display "autoconfig"; | 41 | display "autoconfig"; |
42 | profile "build" | 42 | profile "build" |
43 | { | 43 | { |
44 | execute("./autoconfig 2>src/autoconfig.h"); | 44 | execute("./autoconfig ${OUTPUT}"); |
45 | } | 45 | } |
46 | } | 46 | } |
47 | 47 | ||
48 | target "bu/autoconfig.h" | 48 | target "src/version.h" |
49 | { | 49 | { |
50 | tag "header-links"; | 50 | input ".svn"; |
51 | display "symlink"; | ||
52 | input "src/autoconfig.h"; | ||
53 | profile "build" | ||
54 | { | ||
55 | execute("echo ${INPUT}"); | ||
56 | execute("echo ${OUTPUT}"); | ||
57 | execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}"); | ||
58 | } | ||
59 | } | 51 | } |
60 | 52 | ||
61 | target "autoconfig" | 53 | target "autoconfig" |
@@ -63,9 +55,9 @@ target "autoconfig" | |||
63 | rule "exe"; | 55 | rule "exe"; |
64 | input "autoconfig.cpp"; | 56 | input "autoconfig.cpp"; |
65 | } | 57 | } |
66 | */ | ||
67 | 58 | ||
68 | target files("src/*.h").replace("src/", "bu/") | 59 | target [files("src/*.h").replace("src/", "bu/"), "bu/autoconfig.h", |
60 | "bu/version.h"] | ||
69 | { | 61 | { |
70 | tag "header-links"; | 62 | tag "header-links"; |
71 | display "symlink"; | 63 | display "symlink"; |
@@ -75,6 +67,7 @@ target files("src/*.h").replace("src/", "bu/") | |||
75 | execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}"); | 67 | execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}"); |
76 | } | 68 | } |
77 | } | 69 | } |
70 | |||
78 | target files("src/compat/*.h").replace("src/", "bu/") | 71 | target files("src/compat/*.h").replace("src/", "bu/") |
79 | { | 72 | { |
80 | tag "header-links"; | 73 | tag "header-links"; |