Add support for DESTDIR variable in make install.

This commit is contained in:
Andrius Štikonas 2021-04-02 12:24:40 +01:00
parent dcec416d0f
commit 70d1fc4163
60 changed files with 147 additions and 163 deletions

View file

@ -111,13 +111,13 @@ default_src_configure() {
# Default function for compiling source. It simply runs make without any parameters.
default_src_compile() {
make -f Makefile
make -f Makefile PREFIX="${PREFIX}"
}
# Default installing function. PREFIX should be set by run.sh script.
# Note that upstream makefiles might ignore PREFIX and have to be configured in configure stage.
default_src_install() {
make -f Makefile install PREFIX="${PREFIX}"
make -f Makefile install PREFIX="${PREFIX}" DESTDIR="${DESTDIR}"
}
# Check if bash function exists