This commit is contained in:
kit 2026-05-18 16:11:59 -04:00
commit aa9512d232
3 changed files with 54 additions and 0 deletions

18
Makefile Executable file
View file

@ -0,0 +1,18 @@
#!/bin/make
CFLAGS ?= -Ofast -march=native -mtune=native -static -Wall -Wextra -Wpedantic
./exec-in-chroot: ./exec-in-chroot.c
.PHONY: install uninstall clean
install: ./exec-in-chroot
cp "$<" "${PREFIX}/bin/exec-in-chroot"
chmod 4555 "${PREFIX}/bin/exec-in-chroot"
cp -n "./exec-in-chroot.conf" "/etc/exec-in-chroot.conf"
uninstall:
rm "${PREFIX}/bin/exec-in-chroot"
rm "/etc/exec-in-chroot.conf"
clean:
rm ./exec-in-chroot