This repository has been archived on 2024-08-04. You can view files and clone it, but cannot push or open issues or pull requests.
stagex/Makefile

248 lines
6.0 KiB
Makefile
Raw Normal View History

export SOURCE_DATE_EPOCH = 0
2023-11-09 10:13:20 +00:00
out/bootstrap.oci.tgz:
2023-12-07 16:02:05 +00:00
docker build -t distrust/bootstrap --output type=oci,dest=$@ bootstrap
out/musl.oci.tgz: \
2023-11-13 22:48:49 +00:00
out/bootstrap.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/musl --output type=oci,dest=$@ musl
2023-11-13 22:48:49 +00:00
out/busybox.oci.tgz: \
out/bootstrap.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/busybox --output type=oci,dest=$@ busybox
2023-11-13 22:48:49 +00:00
out/binutils.oci.tgz: \
out/bootstrap.oci.tgz \
out/musl.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/binutils --output type=oci,dest=$@ binutils
2023-11-17 10:00:25 +00:00
out/linux-headers.oci.tgz:
2023-12-07 16:02:05 +00:00
docker build -t distrust/linux-headers --output type=oci,dest=$@ linux-headers
out/gcc.oci.tgz: \
2023-11-13 22:48:49 +00:00
out/bootstrap.oci.tgz \
out/musl.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/gcc --output type=oci,dest=$@ gcc
2023-11-09 10:13:20 +00:00
2023-11-16 10:01:19 +00:00
out/make.oci.tgz: \
out/bootstrap.oci.tgz \
out/musl.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/make --output type=oci,dest=$@ make
2023-11-16 10:01:19 +00:00
2023-11-19 07:38:16 +00:00
out/ca-certificates.oci.tgz:
2023-12-07 16:02:05 +00:00
docker build -t distrust/ca-certificates --output type=oci,dest=$@ ca-certificates
2023-11-19 07:38:16 +00:00
out/bash.oci.tgz: \
out/gcc.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/bash --output type=oci,dest=$@ bash
2023-12-05 04:34:07 +00:00
out/m4.oci.tgz: \
out/busybox.oci.tgz \
out/gcc.oci.tgz \
out/binutils.oci.tgz \
out/musl.oci.tgz \
2023-12-06 12:56:43 +00:00
out/make.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/m4 --output type=oci,dest=$@ m4
2023-12-05 04:34:07 +00:00
out/autoconf.oci.tgz: \
out/busybox.oci.tgz \
out/gcc.oci.tgz \
out/binutils.oci.tgz \
out/musl.oci.tgz \
out/make.oci.tgz \
out/perl.oci.tgz \
out/m4.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/autoconf --output type=oci,dest=$@ autoconf
2023-12-05 04:34:07 +00:00
out/automake.oci.tgz: \
out/busybox.oci.tgz \
out/gcc.oci.tgz \
out/binutils.oci.tgz \
out/musl.oci.tgz \
out/make.oci.tgz \
out/perl.oci.tgz \
out/autoconf.oci.tgz \
out/m4.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/automake --output type=oci,dest=$@ automake
2023-12-05 04:34:07 +00:00
2023-12-05 04:36:18 +00:00
out/sed.oci.tgz: \
out/busybox.oci.tgz \
out/gcc.oci.tgz \
out/binutils.oci.tgz \
out/musl.oci.tgz \
out/make.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/sed --output type=oci,dest=$@ sed
2023-12-05 04:36:18 +00:00
out/libtool.oci.tgz: \
out/busybox.oci.tgz \
out/gcc.oci.tgz \
out/binutils.oci.tgz \
out/musl.oci.tgz \
out/make.oci.tgz \
out/bash.oci.tgz \
out/sed.oci.tgz \
out/m4.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/libtool --output type=oci,dest=$@ libtool
2023-12-05 04:36:18 +00:00
out/pkgconf.oci.tgz: \
out/busybox.oci.tgz \
out/gcc.oci.tgz \
out/binutils.oci.tgz \
out/musl.oci.tgz \
out/make.oci.tgz \
out/libtool.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/pkgconf --output type=oci,dest=$@ pkgconf
2023-12-05 04:36:18 +00:00
out/libxml2.oci.tgz: \
out/busybox.oci.tgz \
out/gcc.oci.tgz \
out/binutils.oci.tgz \
out/musl.oci.tgz \
out/make.oci.tgz \
out/bash.oci.tgz \
out/python.oci.tgz \
out/sed.oci.tgz \
out/m4.oci.tgz \
out/autoconf.oci.tgz \
out/automake.oci.tgz \
out/pkgconf.oci.tgz \
out/libtool.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/libxml2 --output type=oci,dest=$@ libxml2
2023-12-05 04:36:18 +00:00
2023-12-06 12:56:43 +00:00
out/libunwind.oci.tgz: \
out/busybox.oci.tgz \
out/gcc.oci.tgz \
out/binutils.oci.tgz \
out/musl.oci.tgz \
out/make.oci.tgz \
out/bash.oci.tgz \
out/autoconf.oci.tgz \
out/automake.oci.tgz \
out/libtool.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/libunwind --output type=oci,dest=$@ libunwind
2023-12-06 12:56:43 +00:00
2023-11-16 10:01:19 +00:00
out/openssl.oci.tgz: \
out/gcc.oci.tgz \
out/binutils.oci.tgz \
out/busybox.oci.tgz \
2023-11-21 23:57:26 +00:00
out/linux-headers.oci.tgz \
2023-11-16 10:01:19 +00:00
out/musl.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/openssl --output type=oci,dest=$@ openssl
2023-11-16 10:01:19 +00:00
out/go.oci.tgz: \
out/gcc.oci.tgz \
out/binutils.oci.tgz \
out/busybox.oci.tgz \
out/bash.oci.tgz \
out/musl.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/go --output type=oci,dest=$@ go
2023-11-15 00:30:48 +00:00
2023-11-16 10:01:19 +00:00
out/perl.oci.tgz: \
out/gcc.oci.tgz \
out/binutils.oci.tgz \
out/busybox.oci.tgz \
2023-11-21 23:57:26 +00:00
out/make.oci.tgz \
2023-11-16 10:01:19 +00:00
out/musl.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/perl --output type=oci,dest=$@ perl
2023-11-16 10:01:19 +00:00
2023-11-19 07:38:16 +00:00
out/curl.oci.tgz: \
out/gcc.oci.tgz \
out/musl.oci.tgz \
out/busybox.oci.tgz \
out/make.oci.tgz \
out/binutils.oci.tgz \
out/openssl.oci.tgz \
out/ca-certificates.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/curl --output type=oci,dest=$@ curl
2023-11-19 07:38:16 +00:00
2023-11-16 10:01:19 +00:00
out/python.oci.tgz: \
out/gcc.oci.tgz \
out/perl.oci.tgz \
out/binutils.oci.tgz \
out/busybox.oci.tgz \
out/openssl.oci.tgz \
out/make.oci.tgz \
out/musl.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/python --output type=oci,dest=$@ python
2023-11-16 10:01:19 +00:00
2023-11-21 23:57:26 +00:00
out/ninja.oci.tgz: \
out/busybox.oci.tgz \
out/gcc.oci.tgz \
out/binutils.oci.tgz \
out/musl.oci.tgz \
out/make.oci.tgz \
out/openssl.oci.tgz \
out/python.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/ninja --output type=oci,dest=$@ ninja
2023-11-21 23:57:26 +00:00
out/cmake.oci.tgz: \
out/busybox.oci.tgz \
out/gcc.oci.tgz \
out/binutils.oci.tgz \
out/ninja.oci.tgz \
out/musl.oci.tgz \
out/make.oci.tgz \
out/linux-headers.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/cmake --output type=oci,dest=$@ cmake
2023-11-21 23:57:26 +00:00
out/py-setuptools.oci.tgz: \
out/busybox.oci.tgz \
out/python.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/py-setuptools --output type=oci,dest=$@ py-setuptools
2023-11-21 23:57:26 +00:00
out/zlib.oci.tgz: \
out/busybox.oci.tgz \
out/gcc.oci.tgz \
out/binutils.oci.tgz \
out/musl.oci.tgz \
out/make.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/zlib --output type=oci,dest=$@ zlib
2023-11-21 23:57:26 +00:00
out/llvm.oci.tgz: \
out/gcc.oci.tgz \
out/python.oci.tgz \
out/py-setuptools.oci.tgz \
out/perl.oci.tgz \
out/binutils.oci.tgz \
out/cmake.oci.tgz \
out/ninja.oci.tgz \
out/busybox.oci.tgz \
out/musl.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/llvm --output type=oci,dest=$@ llvm
2023-11-21 23:57:26 +00:00
2023-12-04 02:08:26 +00:00
out/llvm13.oci.tgz: \
out/gcc.oci.tgz \
out/python.oci.tgz \
out/py-setuptools.oci.tgz \
out/perl.oci.tgz \
out/binutils.oci.tgz \
out/cmake.oci.tgz \
out/ninja.oci.tgz \
out/busybox.oci.tgz \
out/musl.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/llvm13 --output type=oci,dest=$@ llvm13
2023-12-04 02:08:26 +00:00
out/rust.oci.tgz: \
out/gcc.oci.tgz \
out/bash.oci.tgz \
out/zlib.oci.tgz \
out/python.oci.tgz \
out/binutils.oci.tgz \
out/cmake.oci.tgz \
out/make.oci.tgz \
out/busybox.oci.tgz \
out/musl.oci.tgz
2023-12-07 16:02:05 +00:00
docker build -t distrust/rust --output type=oci,dest=$@ rust
2023-11-15 00:30:48 +00:00
test:
2023-12-07 16:02:05 +00:00
docker build -t distrust/test-c tests/c
docker build -t distrust/test-go tests/go
docker build -t distrust/test-perl tests/perl
2023-11-15 00:30:48 +00:00
@printf "\nOcirep Test Suite\n"
2023-11-16 10:01:19 +00:00
@printf "go -> "
2023-12-07 16:02:05 +00:00
@docker run -i distrust/test-go | grep Success
2023-11-16 10:01:19 +00:00
@printf "c -> "
2023-12-07 16:02:05 +00:00
@docker run -i distrust/test-c | grep Success
2023-11-16 10:01:19 +00:00
@printf "perl -> "
2023-12-07 16:02:05 +00:00
@docker run -i distrust/test-perl | grep Success