diff --git a/gtk/Makefile b/gtk/Makefile index 2d01b80..4065493 100644 --- a/gtk/Makefile +++ b/gtk/Makefile @@ -1,6 +1,6 @@ CFLAGS = -Wall -O2 -I.. `pkg-config --cflags gtk+-3.0` LDFLAGS = `pkg-config --libs gtk+-3.0` -DSTDIR = /usr/lib64/gtk-3.0/3.0.0/immodules +DSTDIR ?= $(shell find /usr/lib* -type d -path "*/gtk-3.0/*/immodules" 2>/dev/null | head -1) im-strans.so: main.c $(CC) -shared -fPIC $(CFLAGS) -o $@ $< $(LDFLAGS) @@ -10,6 +10,7 @@ docker: main.c Dockerfile docker run --rm -v $(CURDIR)/..:/src -w /src/gtk strans-gtk make im-strans.so install: + mkdir -p $(DSTDIR) cp im-strans.so $(DSTDIR)/ gtk-query-immodules-3.0 --update-cache