diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-08 21:58:26 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-08 21:58:26 +0000 |
commit | 8891504ae11f7ae5ed5e9eb05ec3686564617373 (patch) | |
tree | c359142d402f18ee7882bd929c6161aa893a36f9 | |
parent | 0fff468e562ffedc4b671b62edba14ef94e1fbfc (diff) | |
download | build-8891504ae11f7ae5ed5e9eb05ec3686564617373.tar.gz build-8891504ae11f7ae5ed5e9eb05ec3686564617373.tar.bz2 build-8891504ae11f7ae5ed5e9eb05ec3686564617373.tar.xz build-8891504ae11f7ae5ed5e9eb05ec3686564617373.zip |
It installs now.
Diffstat (limited to '')
-rw-r--r-- | default.bld | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/default.bld b/default.bld index 467274b..cfe448e 100644 --- a/default.bld +++ b/default.bld | |||
@@ -34,6 +34,11 @@ action "docs" | |||
34 | build: targets("docs"); | 34 | build: targets("docs"); |
35 | } | 35 | } |
36 | 36 | ||
37 | action "install" | ||
38 | { | ||
39 | build: targets("install"); | ||
40 | } | ||
41 | |||
37 | action "devinstall" | 42 | action "devinstall" |
38 | { | 43 | { |
39 | if "$(id -u)" != "0" then | 44 | if "$(id -u)" != "0" then |
@@ -96,7 +101,8 @@ target "/usr/lib/build" | |||
96 | } | 101 | } |
97 | } | 102 | } |
98 | 103 | ||
99 | for vimdir in dirs("/usr/share/vim/vim*") do | 104 | for vimdir in [dirs("/usr/share/vim/vim*"), |
105 | dirs("/usr/local/share/vim/vim*")] do | ||
100 | { | 106 | { |
101 | for ftype in ["ftplugin/build.vim", "ftdetect/build.vim", | 107 | for ftype in ["ftplugin/build.vim", "ftdetect/build.vim", |
102 | "syntax/build.vim"] do | 108 | "syntax/build.vim"] do |
@@ -116,6 +122,31 @@ for vimdir in dirs("/usr/share/vim/vim*") do | |||
116 | } | 122 | } |
117 | } | 123 | } |
118 | 124 | ||
125 | target PREFIX + "/bin/build" | ||
126 | { | ||
127 | display "install"; | ||
128 | tag "install"; | ||
129 | requires "build"; | ||
130 | profile "build" | ||
131 | { | ||
132 | execute("install -T -s build ${OUTPUT}"); | ||
133 | } | ||
134 | } | ||
135 | |||
136 | for i in [files("share/autoinclude/*.bld"), files("share/include/*.bld")] do | ||
137 | { | ||
138 | target PREFIX + "/share/build/" + i.replace("share/","") | ||
139 | { | ||
140 | display "install"; | ||
141 | tag "install"; | ||
142 | requires i; | ||
143 | profile "build" | ||
144 | { | ||
145 | execute("install -T -D -m0466 ${i} ${OUTPUT}"); | ||
146 | } | ||
147 | } | ||
148 | } | ||
149 | |||
119 | target "docs/build-manual.pdf" | 150 | target "docs/build-manual.pdf" |
120 | { | 151 | { |
121 | display "pdflatex"; | 152 | display "pdflatex"; |