You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This refactor aims to reduce the amount of duplicated Bash code that is
used in all of the distribution packages (dpkg, 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 (this patching appears to be common across all packages).
* Introduce target for resources/linux-icons.
* 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.html
$(error "The DESTDIR variable was removed. Please set PREFIX if you would like to change where everything will be installed, or set BINDIR if you would like to change where binaries will be installed.")
0 commit comments