Skip to content

Commit fb159ea

Browse files
committed
makefile: add uninstall
1 parent cbc074b commit fb159ea

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,13 @@ install: $(TARGET)
8686
mkdir -p $(DESTDIR)$(APPPREFIX)
8787
cp -f cufetch.desktop $(DESTDIR)$(APPPREFIX)
8888

89-
.PHONY: $(TARGET) dist distclean fmt toml install all
89+
uninstall:
90+
rm -f $(DESTDIR)$(PREFIX)/bin/$(TARGET)
91+
rm -f $(DESTDIR)$(MANPREFIX)/man1/cufetch.1
92+
rm -f $(DESTDIR)$(APPPREFIX)/cufetch.desktop
93+
rm -rf $(DESTDIR)$(PREFIX)/share/customfetch/
94+
95+
remove: uninstall
96+
delete: uninstall
97+
98+
.PHONY: $(TARGET) remove uninstall delete dist distclean fmt toml install all

src/config.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ void Config::loadConfigFile(const std::string_view filename, colors_t& colors)
8282
colors.gui_magenta = this->getThemeValue("gui.magenta", "!#ff11cc");
8383
colors.gui_white = this->getThemeValue("gui.white", "!#ffffff");
8484

85-
// clang-format on
8685
}
8786

8887
std::string Config::getThemeValue(const std::string& value, const std::string& fallback) const

0 commit comments

Comments
 (0)