diff options
-rw-r--r-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,10 +1,19 @@ .PHONY: all -all: clean rebuild srcinfo +all: clean rebuild srcinfo chroot-rebuild rebuild: makepkg -s + +chroot-rebuild: + @ [ -n "${CHROOT}" ] && \ + echo "Creating chroot in ${CHROOT}" && \ + [ -d "${CHROOT}/root" ] || mkarchroot "${CHROOT}/root" base-devel && \ + arch-nspawn "${CHROOT}/root" pacman -Syu && \ + makechrootpkg -c -r "${CHROOT}" || \ + echo "export the CHROOT environment variable if you want to use chroot-rebuild" + srcinfo: makepkg --printsrcinfo > .SRCINFO |