A command line tool that generates XDG menus for several window managers
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
PREFIX ?= /usr/local
|
|
|
|
DESTDIR ?= /
|
|
|
|
|
|
|
|
man:
|
|
|
|
@txt2tags -o man/xdgmenumaker.1 man/xdgmenumaker.t2t || \
|
|
|
|
echo "WARNING: txt2tags is not installed. The xdgmenumaker manpage will not be created."
|
|
|
|
|
|
|
|
install:
|
|
|
|
install -d -m 755 $(DESTDIR)/$(PREFIX)/bin
|
|
|
|
install -d -m 755 $(DESTDIR)/usr/share/desktop-directories
|
|
|
|
install -m 755 src/xdgmenumaker $(DESTDIR)/$(PREFIX)/bin/
|
|
|
|
install -m 644 desktop-directories/* $(DESTDIR)/usr/share/desktop-directories
|
|
|
|
if [ -f man/xdgmenumaker.1 ]; then \
|
|
|
|
install -d -m 755 $(DESTDIR)/$(PREFIX)/share/man/man1; \
|
|
|
|
install -m 644 man/xdgmenumaker.1 $(DESTDIR)/$(PREFIX)/share/man/man1/; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f man/xdgmenumaker.1
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f $(DESTDIR)/$(PREFIX)/bin/xdgmenumaker
|
|
|
|
rm -f $(DESTDIR)/usr/share/desktop-directories/xdgmenumaker*
|
|
|
|
|
|
|
|
.PHONY: man clean install
|