fix gtk Makefile
This commit is contained in:
parent
cc157c0b3c
commit
6b3c1cea8e
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user