bqn-ibus/Makefile

24 lines
352 B
Makefile

PREFIX ?= /usr
DB := bqn.db
ICON := bqn.png
OUT := $(DB) $(ICON)
INSTALL := $(PREFIX)/share/ibus-table
%.db: %.txt
ibus-table-createdb -s $< -n $@
.PHONY: all
all: $(DB)
.PHONY: install
install: $(DB) $(ICON)
mkdir -p $(INSTALL)/tables $(INSTALL)/icons
cp $(DB) $(INSTALL)/tables
cp $(ICON) $(INSTALL)/icons
.PHONY: clean
clean:
rm -f $(DB)