Commit 1196a36
committed
Makefile.in: refactor install rules
This refactor aims to reduce the amount of duplicated Bash code that is
used in all of the distribution packages (AUR, COPR, and Nixpkgs).
* Introduce install-linux and install-darwin targets, which are
automatically selected by make where appropriate.
* install-linux installs icons and the CraftOS-PC.desktop file.
* install-darwin installs CraftOS-PC.app to /Applications.
* Introduce install-bin, install-headers, and install-liblua targets, which install the
respective components.
* Introduce fixup-liblua-path target, which uses patchelf to change the
name of liblua.so (appears to be common across all packages).
* Introduce target for resources/linux-icons.zip.
* Remove the DESTDIR variable, instead using Autoconf's install
directories feature [1]
* Introduce the INSTALL_TARGETS variable, which is used to control what
dependencies the install rule has.
* Introduce the EXTRA_PLATFORM_INSTALL_TARGETS variable, which is
conditionally set depending on the platform.
* Introduce the LIBLUA_NAME variable, which is used to control what file
patchelf changes liblua.so from.
This refactor **does not** include code to install craftos2-rom, since
that appears to be out-of-scope.
[1]: https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Installation-Directory-Variables.html1 parent 4fff128 commit 1196a36
1 file changed
+70
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
| 20 | + | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
| |||
22 | 30 | | |
23 | 31 | | |
24 | 32 | | |
| 33 | + | |
25 | 34 | | |
26 | 35 | | |
27 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
28 | 45 | | |
29 | | - | |
| 46 | + | |
30 | 47 | | |
31 | 48 | | |
32 | 49 | | |
| |||
127 | 144 | | |
128 | 145 | | |
129 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
130 | 150 | | |
131 | 151 | | |
132 | 152 | | |
| |||
137 | 157 | | |
138 | 158 | | |
139 | 159 | | |
| 160 | + | |
140 | 161 | | |
141 | 162 | | |
142 | 163 | | |
143 | 164 | | |
144 | | - | |
145 | | - | |
146 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
147 | 204 | | |
148 | 205 | | |
149 | 206 | | |
150 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
151 | 214 | | |
152 | 215 | | |
153 | 216 | | |
154 | 217 | | |
155 | | - | |
| 218 | + | |
156 | 219 | | |
0 commit comments