summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-09-17 12:02:22 +0200
committerxengineering <mail2xengineering@protonmail.com>2020-09-17 12:58:41 +0200
commit70ae67877828bc17352dd8ae0f6fe02643ba990e (patch)
treedc1984997ebf691fbbac1c5b57c76e27582c6c9d /Makefile
parentfbc00d7932a717a227389040a96443e61b597d7c (diff)
downloadpicontrol-70ae67877828bc17352dd8ae0f6fe02643ba990e.tar
picontrol-70ae67877828bc17352dd8ae0f6fe02643ba990e.tar.zst
picontrol-70ae67877828bc17352dd8ae0f6fe02643ba990e.zip
Implement Installation with Make
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..16b3ccd
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+
+.PHONY: install uninstall
+
+install :
+ install -Dm 644 "main.py" "/usr/share/eu.xengineering.picontrol/main.py"
+ install -Dm 644 "picontrol.service" "/usr/lib/systemd/system/picontrol.service"
+ install -Dm 644 "static/css/style.css" "/usr/share/eu.xengineering.picontrol/static/css/style.css"
+ install -Dm 644 "static/img/favicon.ico" "/usr/share/eu.xengineering.picontrol/static/img/favicon.ico"
+ install -Dm 644 "static/js/api_client.js" "/usr/share/eu.xengineering.picontrol/static/js/api_client.js"
+ install -Dm 644 "templates/index.html" "/usr/share/eu.xengineering.picontrol/templates/index.html"
+
+uninstall :
+ rm -f /usr/lib/systemd/system/picontrol.service
+ rm -rf /usr/share/eu.xengineering.picontrol/