#!/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
