From fdda27ed068e79934698c0af44d50dc7e27d73dd Mon Sep 17 00:00:00 2001 From: speedie Date: Wed, 1 Feb 2023 21:48:52 +0100 Subject: [PATCH] add install compatibility option --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 6911099..d215b81 100644 --- a/Makefile +++ b/Makefile @@ -43,12 +43,21 @@ install: all rm -f *.o rm -f spmenu +compat: + rm -f $(DESTDIR)$(PREFIX)/bin/dmenu + rm -f $(DESTDIR)$(PREFIX)/bin/dmenu_run + ln -s $(DESTDIR)$(PREFIX)/bin/spmenu $(DESTDIR)$(PREFIX)/bin/dmenu + ln -s $(DESTDIR)$(PREFIX)/bin/spmenu_run $(DESTDIR)$(PREFIX)/bin/dmenu_run + uninstall: $(DESTDIR)$(PREFIX)/bin/spmenu*\ help: @echo install: Installs spmenu. You may need to run this as root. @echo uninstall: Uninstalls spmenu. You may need to run this as root. + @echo dist: Creates a release for spmenu. + @echo clean: Removes objects and tarballs. + @echo compat: Installs compatibility with dmenu. WARNING: This will overwrite dmenu and dmenu_run @echo help: Displays this help sheet. .PHONY: all options clean dist install uninstall help