dmenu_charinput/Makefile

24 lines
609 B
Makefile
Raw Normal View History

2021-03-15 09:41:21 +01:00
# dmenu_charinput - a unicode character selection menu with dmenu
all: dmenu_charinput unicodedata
unicodedata: UnicodeData.txt
go build unicodedata.go
clean:
rm -f unicodedata
install: all
@echo -n "Checking for dmenu... " && which dmenu || echo "not found"
@echo -n "Checking for xclip... " && which xclip || echo "not found"
mkdir -p /usr/local/bin
cp -f unicodedata dmenu_charinput /usr/local/bin
chmod 755 /usr/local/bin/unicodedata
chmod 755 /usr/local/bin/dmenu_charinput
uninstall:
rm -f /usr/local/bin/unicodedata\
/usr/local/bin/dmenu_charinput
.PHONY: all clean install uninstall