Skip to content

Commit

Permalink
makefile: add uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni500github committed Aug 31, 2024
1 parent cbc074b commit fb159ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,13 @@ install: $(TARGET)
mkdir -p $(DESTDIR)$(APPPREFIX)
cp -f cufetch.desktop $(DESTDIR)$(APPPREFIX)

.PHONY: $(TARGET) dist distclean fmt toml install all
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(TARGET)
rm -f $(DESTDIR)$(MANPREFIX)/man1/cufetch.1
rm -f $(DESTDIR)$(APPPREFIX)/cufetch.desktop
rm -rf $(DESTDIR)$(PREFIX)/share/customfetch/

remove: uninstall
delete: uninstall

.PHONY: $(TARGET) remove uninstall delete dist distclean fmt toml install all
1 change: 0 additions & 1 deletion src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ void Config::loadConfigFile(const std::string_view filename, colors_t& colors)
colors.gui_magenta = this->getThemeValue("gui.magenta", "!#ff11cc");
colors.gui_white = this->getThemeValue("gui.white", "!#ffffff");

// clang-format on
}

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

0 comments on commit fb159ea

Please sign in to comment.