24 lines
609 B
Makefile
24 lines
609 B
Makefile
# 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
|