summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHaoran S. Diao <0@hairydiode.xyz>2019-04-13 22:31:35 -0400
committerHaoran S. Diao <0@hairydiode.xyz>2019-04-13 22:31:35 -0400
commit0559e8bd1055395b032a9c51708c4fea5934715a (patch)
treedebbb2cd1dc8a3026e11b2c406cdbfa550aa519f /Makefile
parent18a0c695a74081bf73c44921c7af43acf5933885 (diff)
added actual installation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9dd09ed..509fa91 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,11 @@
guardian : guardian.c rs232.c
gcc guardian.c rs232.c -o guardian
+install:
+ mkdir /etc/guardian
+ mkdir /etc/guardian/templates
+ cp templates/* /etc/guardian/templates/
+ cp guardian /usr/bin/guardian
+remove:
+ rm -r /etc/guardian/templates/
+ rm -r /etc/guardian
+ rm /usr/bin/guardian