Fix for make uninstall without standalone GUI

This commit is contained in:
robxnano 2022-10-08 14:36:04 +01:00
parent af96a51acb
commit aaf67fd59a
2 changed files with 6 additions and 2 deletions

View File

@ -161,7 +161,9 @@ installdirs:
uninstall:
rm -f $(DESTDIR)$(bindir)/$(APP)$(EXEEXT)
rm -f $(DESTDIR)$(bindir)/$(GUI_APP)$(EXEEXT)
if test -f "$(GUI_APP_EXE)"; then \
rm -f $(DESTDIR)$(bindir)/$(GUI_APP_EXE); \
fi
rm -f $(DESTDIR)$(man1dir)/$(APP).1
rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes
rm -f $(DESTDIR)$(datadir)/$(APP)/fbdevices

View File

@ -168,7 +168,9 @@ installdirs:
uninstall:
rm -f $(DESTDIR)$(bindir)/$(APP_EXE)
rm -f $(DESTDIR)$(bindir)/$(GUI_APP_EXE)
if test -f "$(GUI_APP_EXE)"; then \
rm -f $(DESTDIR)$(bindir)/$(GUI_APP_EXE); \
fi
rm -f $(DESTDIR)$(man1dir)/$(APP).1
rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes
rm -f $(DESTDIR)$(datadir)/$(APP)/tunconfig