summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-01-30 15:53:15 +0100
committerxengineering <mail2xengineering@protonmail.com>2021-01-30 15:53:15 +0100
commit883e4bb795ed3f8501c74dd57bc8b0f6ea33f416 (patch)
tree4ec9afc099dd11f584f33b7cce6c76dffa0f8950 /Makefile
parent58daf50667396477021e4a4f57d8241e44ff268c (diff)
downloadxbot-883e4bb795ed3f8501c74dd57bc8b0f6ea33f416.tar
xbot-883e4bb795ed3f8501c74dd57bc8b0f6ea33f416.tar.zst
xbot-883e4bb795ed3f8501c74dd57bc8b0f6ea33f416.zip
Fix empty Profile Bug
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cd8b97d..ff0e394 100644
--- a/Makefile
+++ b/Makefile
@@ -21,10 +21,13 @@ build/%.o: src/%.c
$(CC) -c $< -o $@
install: all
- $(INSTALL_PROGRAM) $(TARGET_EXEC) $(bindir)/xbot
+ mkdir -p $(HOME)/.config/xbot/
+ touch $(HOME)/.config/xbot/profile.ini
+ chmod 600 $(HOME)/.config/xbot/profile.ini
+ sudo $(INSTALL_PROGRAM) $(TARGET_EXEC) $(bindir)/xbot
uninstall:
- rm -f $(bindir)/xbot
+ sudo rm -f $(bindir)/xbot
.PHONY: clean uninstall
clean: