summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-02-11 13:01:43 +0100
committerxengineering <mail2xengineering@protonmail.com>2021-02-11 13:01:43 +0100
commitbc6b03ab29703dfff857b63727657ca3127eb381 (patch)
tree009fc7df794754917ddb3fecfde8b2f739e7b1df /Makefile
parent7293dae63a07ec23e779fef20fbe81104ebc7d3f (diff)
downloadweb-template-bc6b03ab29703dfff857b63727657ca3127eb381.tar
web-template-bc6b03ab29703dfff857b63727657ca3127eb381.tar.zst
web-template-bc6b03ab29703dfff857b63727657ca3127eb381.zip
Refactoring: Reimplement Webroot Deployment
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9fe5771
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+# vim: tabstop=4 shiftwidth=4 noexpandtab
+
+
+all:
+ mkdir -p systemd/build
+ python3 manage.py build_systemd_files
+ mkdir -p flask/build
+ python3 manage.py build_flask_files
+
+clean:
+ rm -rf systemd/build
+ rm -rf flask/build
+
+install: all
+ python3 manage.py install_webroot
+ #find systemd/build -type f -exec sudo install -Dm 644 "{}" "/etc/systemd/system" \;
+
+uninstall:
+ python3 manage.py uninstall_webroot
+ #python3 manage.py uninstall_systemd_files
+