initial
This commit is contained in:
commit
aa9512d232
3 changed files with 54 additions and 0 deletions
18
Makefile
Executable file
18
Makefile
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue