make proper use of the PREFIX env variable set by the sPKG package manager

This commit is contained in:
hippoz 2021-06-29 23:27:12 +03:00
parent db92494f46
commit 98bb968e38
12 changed files with 14 additions and 21 deletions

View file

@ -4,6 +4,6 @@ prepare:
autoconf: autoconf:
make make
install: install:
make install make install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall make uninstall

View file

@ -4,6 +4,6 @@ prepare:
automake: automake:
make make
install: install:
make install make install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall make uninstall

View file

@ -3,6 +3,6 @@ prepare:
bash: bash:
make make
install: install:
make install make install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall make uninstall

View file

@ -5,6 +5,6 @@ busybox:
make defconfig make defconfig
make make
install: install:
make install make install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall make uninstall

View file

@ -4,6 +4,6 @@ prepare:
git: git:
make make
install: install:
make install make install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall make uninstall

View file

@ -4,6 +4,6 @@ prepare:
libc: libc:
make make
install: install:
make install make install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall make uninstall

View file

@ -6,6 +6,6 @@ make:
./configure ./configure
make make
install: install:
make install make install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall make uninstall

View file

@ -2,7 +2,7 @@ PREFIX ?= /usr
MANDIR ?= $(PREFIX)/share/man MANDIR ?= $(PREFIX)/share/man
all: all:
@echo Run \'make install\' to install Neofetch. @echo Run \'make install DESTDIR="${PREFIX}"\' to install Neofetch.
install: install:
@mkdir -p $(DESTDIR)$(PREFIX)/bin @mkdir -p $(DESTDIR)$(PREFIX)/bin

View file

@ -1,10 +1,9 @@
prepare: prepare:
git clone https://cgit.freedesktop.org/xorg/xserver/ git clone https://cgit.freedesktop.org/xorg/xserver/
cd xserver cd xserver
PREFIX = $(prefix/)
xorg: xorg:
./configure \ ./configure \
--prefix=PREFIX \ --prefix=${PREFIX} \
--localstatedir=/var \ --localstatedir=/var \
--disable-systemd-logind \ --disable-systemd-logind \
--disable-xwayland \ --disable-xwayland \
@ -19,6 +18,4 @@ xorg:
--with-systemd-daemon=off --with-systemd-daemon=off
make make
install: install:
make install make install DESTDIR="${PREFIX}"

View file

@ -1,16 +1,12 @@
prepare: prepare:
PREFIX = $(prefix/)
git clone https://git.tukaani.org/xz.git git clone https://git.tukaani.org/xz.git
cd xz cd xz
make: make:
./configure \ ./configure \
--prefix=PREFIX \ --prefix=${PREFIX} \
--disable-nls --disable-nls
make make
install: install:
make install make install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall make uninstall

View file

@ -5,7 +5,7 @@ make:
./configure ./configure
make make
install: install:
make install make install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall make uninstall

View file

@ -3,6 +3,6 @@ prepare:
zsh: zsh:
make make
install: install:
make install make install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall make uninstall