Makefiles use now $(MAKE) instead of make.

This commit is contained in:
Ohio2 2021-07-01 05:03:43 +02:00
parent 090ce0b962
commit 4dc299869a
23 changed files with 81 additions and 91 deletions

View file

@ -2,8 +2,8 @@ prepare:
git clone git://git.sv.gnu.org/autoconf git clone git://git.sv.gnu.org/autoconf
cd autoconf cd autoconf
autoconf: autoconf:
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -1,9 +1,9 @@
prepare: prepare:
git clone https://git.savannah.gnu.org/git/automake.git git clone https://git.savannah.gnu.org/git/auto$(MAKE).git
cd automake cd auto$(MAKE)
automake: auto$(MAKE):
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -2,8 +2,8 @@ prepare:
git clone https://git.savannah.gnu.org/git/bash.git git clone https://git.savannah.gnu.org/git/bash.git
cd bash cd bash
bash: bash:
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -2,7 +2,7 @@ prepare:
wget -O binutils.tar.gz https://mirrors.nav.ro/gnu/binutils/binutils-2.10.1.tar.gz wget -O binutils.tar.gz https://mirrors.nav.ro/gnu/binutils/binutils-2.10.1.tar.gz
tar -xf binutils.tar.gz tar -xf binutils.tar.gz
cd binutils cd binutils
make: $(MAKE):
@../configure --prefix=/usr \ @../configure --prefix=/usr \
--enable-gold \ --enable-gold \
--enable-ld=default \ --enable-ld=default \
@ -11,8 +11,8 @@ make:
--disable-werror \ --disable-werror \
--enable-64-bit-bfd \ --enable-64-bit-bfd \
--with-system-zlib --with-system-zlib
make tooldir=${PREFIX}/usr $(MAKE) tooldir=${PREFIX}/usr
install: install:
make install tooldir=${PREFIX}/usr DESTDIR="${PREFIX}" $(MAKE) install tooldir=${PREFIX}/usr DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -2,10 +2,10 @@ prepare:
wget -O bison.tar.gz https://mirrors.nav.ro/gnu/bison/bison-1.25.tar.gz wget -O bison.tar.gz https://mirrors.nav.ro/gnu/bison/bison-1.25.tar.gz
tar -xf bison.tar.gz tar -xf bison.tar.gz
cd bison cd bison
make: $(MAKE):
@./configure --prefix=/usr @./configure --prefix=/usr
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -2,10 +2,10 @@ prepare:
git clone git://busybox.net/busybox.git git clone git://busybox.net/busybox.git
cd busybox cd busybox
busybox: busybox:
make defconfig $(MAKE) defconfig
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
busybox --install busybox --install
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -1,14 +1,14 @@
prepare: prepare:
git clone https://www.sourceware.org/pub/bzip2/bzip2-latest.tar.gz bzip2 git clone https://www.sourceware.org/pub/bzip2/bzip2-latest.tar.gz bzip2
cd bzip2 cd bzip2
make: $(MAKE):
make -f Makefile-libbz2_so $(MAKE) -f Makefile-libbz2_so
make clean $(MAKE) clean
make $(MAKE)
install: install:
make PREFIX=${PREFIX}/tools install $(MAKE) PREFIX=${PREFIX}/tools install
cp -v bzip2-shared ${PREFIX}/tools/bin/bzip2 cp -v bzip2-shared ${PREFIX}/tools/bin/bzip2
cp -av libbz2.so* ${PREFIX}/tools/lib cp -av libbz2.so* ${PREFIX}/tools/lib
ln -sv libbz2.so.1.0 ${PREFIX}/tools/lib/libbz2.so ln -sv libbz2.so.1.0 ${PREFIX}/tools/lib/libbz2.so
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -2,10 +2,10 @@ prepare:
wget -O curl.tar.gz https://curl.se/download/curl-7.77.0.tar.gz wget -O curl.tar.gz https://curl.se/download/curl-7.77.0.tar.gz
tar -xf curl.tar.gz tar -xf curl.tar.gz
cd curl cd curl
make: $(MAKE):
@./configure --prefix=/usr --with-openssl @./configure --prefix=/usr --with-openssl
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -2,15 +2,15 @@ prepare:
wget -O flex.tar.gz https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz wget -O flex.tar.gz https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz
tar -xf flex.tar.gz tar -xf flex.tar.gz
cd flex cd flex
make: $(MAKE):
@./configure \ @./configure \
--prefix=/usr \ --prefix=/usr \
ac_cv_func_malloc_0_nonnull=yes \ ac_cv_func_malloc_0_nonnull=yes \
ac_cv_func_realloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
ln -s flex "$1/usr/bin/lex" ln -s flex "$1/usr/bin/lex"
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -7,9 +7,9 @@ gcc:
mkdir build mkdir build
cd build cd build
./configure --prefix=${PREFIX}/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++ ./configure --prefix=${PREFIX}/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
ln -s gcc "$1/usr/bin/cc" ln -s gcc "$1/usr/bin/cc"
install -Dm755 ../c99 "$1/usr/bin/c99" install -Dm755 ../c99 "$1/usr/bin/c99"
uninstall: uninstall:

View file

@ -2,8 +2,8 @@ prepare:
git clone git://git.kernel.org/pub/scm/git/git.git git clone git://git.kernel.org/pub/scm/git/git.git
cd git cd git
git: git:
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -1,10 +0,0 @@
prepare:
git clone https://git.savannah.gnu.org/git/gzip.git
cd gzip
make:
./configure --prefix=${PREFIX}/usr --host=$LFS_TGT
make
install:
make DESTDIR=$LFS install
uninstall:
make uninstall

View file

@ -1,11 +1,11 @@
prepare: prepare:
git clone https://git.savannah.gnu.org/git/gzip.git/ git clone https://git.savannah.gnu.org/git/gzip.git/
cd gzip cd gzip
make: $(MAKE):
./configure --prefix=$prefix/usr --host=$LFS_TGT ./configure --prefix=$prefix/usr --host=$LFS_TGT
make CC="${CC:-cc} -static" $(MAKE) CC="${CC:-cc} -static"
install: install:
make DESTDIR=$LFS install $(MAKE) DESTDIR=$LFS install
install -Dm755 pigz "$1/usr/bin/pigz" install -Dm755 pigz "$1/usr/bin/pigz"
install -Dm755 unpigz "$1/usr/bin/unpigz" install -Dm755 unpigz "$1/usr/bin/unpigz"
install -Dm644 pigz.1 "$1/usr/share/man/man1/pigz.1" install -Dm644 pigz.1 "$1/usr/share/man/man1/pigz.1"

View file

@ -5,10 +5,10 @@ prepare:
wget https://git.hippoz.xyz/alnux/repo/src/branch/master/hummingbird/payload/usr/lib/hummingbird/interlude wget https://git.hippoz.xyz/alnux/repo/src/branch/master/hummingbird/payload/usr/lib/hummingbird/interlude
wget https://git.hippoz.xyz/alnux/repo/src/branch/master/hummingbird/payload/usr/lib/hummingbird/shutdown wget https://git.hippoz.xyz/alnux/repo/src/branch/master/hummingbird/payload/usr/lib/hummingbird/shutdown
wget https://git.hippoz.xyz/alnux/repo/src/branch/master/hummingbird/payload/usr/lib/hummingbird/tty wget https://git.hippoz.xyz/alnux/repo/src/branch/master/hummingbird/payload/usr/lib/hummingbird/tty
make: $(MAKE):
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
mv fs ${PREFIX}/usr/bin/hummingbird/ mv fs ${PREFIX}/usr/bin/hummingbird/
mv interlude ${PREFIX}/usr/bin/hummingbird/ mv interlude ${PREFIX}/usr/bin/hummingbird/

View file

@ -2,8 +2,8 @@ prepare:
git clone https://sourceware.org/git/glibc.git git clone https://sourceware.org/git/glibc.git
cd glibc cd glibc
libc: libc:
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -1,11 +1,11 @@
prepare: prepare:
git clone git://git.savannah.gnu.org/libtool.git git clone git://git.savannah.gnu.org/libtool.git
cd libtool cd libtool
make: $(MAKE):
./configure --prefix=${PREFIX}/usr ./configure --prefix=${PREFIX}/usr
make $(MAKE)
make check $(MAKE) check
install: install:
make install $(MAKE) install
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -1,11 +1,11 @@
prepare: prepare:
git clone http://git.savannah.gnu.org/r/m4.git git clone http://git.savannah.gnu.org/r/m4.git
cd m4 cd m4
make: $(MAKE):
export CFLAGS="$CFLAGS -static" export CFLAGS="$CFLAGS -static"
./configure ./configure
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -1,8 +1,8 @@
prepare: prepare:
git clone https://git.savannah.gnu.org/git/make.git git clone https://git.savannah.gnu.org/git/$(MAKE).git
cd make cd $(MAKE)
make: $(MAKE):
./bootstrap ./bootstrap
./build ./build
uninstall: uninstall:
rm -rf /usr/bin/make rm -rf /usr/bin/$(MAKE)

View file

@ -1,16 +1,16 @@
prepare: prepare:
git clone https://github.com/openssl/openssl.git git clone https://github.com/openssl/openssl.git
cd openssl cd openssl
make: $(MAKE):
./config --prefix=${PREFIX}/usr \ ./config --prefix=${PREFIX}/usr \
--openssldir=${PREFIX}/etc/ssl \ --openssldir=${PREFIX}/etc/ssl \
--libdir=lib \ --libdir=lib \
shared \ shared \
zlib-dynamic zlib-dynamic
make $(MAKE)
install: install:
sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
make MANSUFFIX=ssl install $(MAKE) MANSUFFIX=ssl install
mv -v /usr/share/doc/openssl /usr/share/doc/openssl-1.1.1d mv -v /usr/share/doc/openssl /usr/share/doc/openssl-1.1.1d
cp -vfr doc/* /usr/share/doc/openssl-1.1.1d cp -vfr doc/* /usr/share/doc/openssl-1.1.1d
uninstall: uninstall:

View file

@ -16,6 +16,6 @@ xorg:
--enable-xorg \ --enable-xorg \
--with-sha1=libcrypto \ --with-sha1=libcrypto \
--with-systemd-daemon=off --with-systemd-daemon=off
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"

View file

@ -1,12 +1,12 @@
prepare: prepare:
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=/usr \ --prefix=/usr \
--disable-nls --disable-nls
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -1,11 +1,11 @@
prepare: prepare:
git clone https://github.com/madler/zlib git clone https://github.com/madler/zlib
cd zlib cd zlib
make: $(MAKE):
./configure ./configure
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall $(MAKE) uninstall

View file

@ -2,8 +2,8 @@ prepare:
git clone https://github.com/zsh-users/zsh.git git clone https://github.com/zsh-users/zsh.git
cd zsh cd zsh
zsh: zsh:
make $(MAKE)
install: install:
make install DESTDIR="${PREFIX}" $(MAKE) install DESTDIR="${PREFIX}"
uninstall: uninstall:
make uninstall $(MAKE) uninstall