grub2-se-verifyserv/Makefile

30 lines
820 B
Makefile
Raw Normal View History

2018-03-18 10:35:03 +00:00
# Makefile for grub2-se-verifyserv
2018-03-17 19:59:40 +00:00
# Author: Bandie Canis
# Licence: GNU-GPLv3
all:
mkdir -p bin
2018-03-29 03:03:55 +00:00
cc --std=c99 src/grub2-se-verifyserv.c -o bin/grub2-se-verifyserv
2018-03-17 19:59:40 +00:00
install:
mkdir -p /usr/local/sbin
cp ./bin/grub2-se-verifyserv /usr/local/sbin/
cp ./systemd/grub2-se-verifyserv.service /etc/systemd/system
chown root:root /usr/local/sbin/grub2-se-verifyserv
chmod 740 /usr/local/sbin/grub2-se-verifyserv
@printf "Done.\n"
2018-03-21 21:46:45 +00:00
@printf "You may want to enable and start the service: \"systemctl enable grub2-se-verifyserv ; systemctl start grub2-se-verifyserv\"\n"
@printf "The file will be called /verified\n"
2018-03-17 19:59:40 +00:00
uninstall:
rm /usr/sbin/local/grub2-se-verifyserv
2018-03-21 21:46:45 +00:00
rm /etc/systemd/system/grub2-se-verifyserv.service
2018-03-17 19:59:40 +00:00
@printf "Done.\n"
clean:
rm bin/grub2-se-verifyserv
2018-03-18 15:58:28 +00:00
rmdir bin
2018-03-29 03:01:58 +00:00
test:
@printf "What to test?"