build: Add a dist target.

This commit is contained in:
June Tate-Gans 2024-03-29 10:53:17 -05:00
parent 6f92869f6e
commit 3d94e8e810
2 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,8 @@ endif
ifeq (${DISTRO},manjaro)
DISTRO := archlinux
else ifeq (${DISTRO},arch)
DISTRO := archlinux
endif
$(warning Building on ${DISTRO})

View File

@ -24,10 +24,9 @@ case "${DISTRO}" in
try pacman -S --noconfirm base-devel python meson lsb-release git
# Work around makepkg brain-damage and build as nobody
try mkdir -p /tmp/build
try cp -r /srcs /tmp/build
try chown -R nobody:nobody /tmp/build
cd /tmp/build
try cd /tmp/build
try sudo -u nobody make
try cp build/* /srcs/build
;;