summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2023-06-16 00:05:28 +1200
committerBossCode45 <human.cyborg42@gmail.com>2023-06-16 00:05:28 +1200
commit5f54adae7bc4edaf2c18383efe13ded233255509 (patch)
treeda3736531e9be6ea57057f7178bfb2baf5a061f9 /makefile
parent0b539b0b0278f2d7c2b7629e6d28d8463cba2688 (diff)
downloadYATwm-5f54adae7bc4edaf2c18383efe13ded233255509.tar.gz
YATwm-5f54adae7bc4edaf2c18383efe13ded233255509.zip
feat: Uses a backup config file and respects XDG
Uses config files in the order of `$XDG_CONFIG_HOME/YATwm/config`, `$HOME/.config/YATwm/config`, then `/etc/YATwm/config`
Diffstat (limited to 'makefile')
-rw-r--r--makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/makefile b/makefile
index 01e6b5d..df4304a 100644
--- a/makefile
+++ b/makefile
@@ -18,9 +18,9 @@ $(OBJS_DIR)/%.o : $(SOURCE_DIR)/%.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
i: $(EXEC)
- sudo install -D $(EXEC) $(INSTALL_DIR)usr/bin/$(EXEC)
+ sudo install -D -m 755 $(EXEC) $(INSTALL_DIR)usr/bin/$(EXEC)
sudo install -D -m 644 yat.desktop $(INSTALL_DIR)usr/share/xsessions/yat.desktop
- sudo install -D -m 644 config.toml $(INSTALL_DIR)etc/YATwm/config.toml
+ sudo install -D -m 644 config $(INSTALL_DIR)etc/YATwm/config
install: i
r:
sudo rm $(INSTALL_DIR)usr/bin/$(EXEC)