-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
29 lines (20 loc) · 791 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
TARGET = gnome-keyring
SECRETFLAGS = `pkg-config --libs --cflags libsecret-1`
PURPLEFLAGS = `pkg-config --cflags purple`
VERSION = $(shell cat VERSION)
ifeq ($(strip $(VERSION)),)
VERSION = `git describe --tags`
endif
PLUGINDIRPURPLE:=$(shell pkg-config --variable=plugindir purple)
all: ${TARGET}.so
clean:
rm -f ${TARGET}.so ${TARGET}_*.tar.gz pidgin-${TARGET}_*.* *.pyc
rm -rf pidgin-${TARGET}-*
${TARGET}.so: ${TARGET}.c
${CC} ${CFLAGS} ${LDFLAGS} -Wall -I. -g -O2 ${TARGET}.c -o ${TARGET}.so -shared -fPIC -DPIC -ggdb ${PURPLEFLAGS} ${SECRETFLAGS} -DVERSION=\"${VERSION}\"
install: ${TARGET}.so
mkdir -p ${DESTDIR}${PLUGINDIRPURPLE}
cp ${TARGET}.so ${DESTDIR}${PLUGINDIRPURPLE}
install_local: ${TARGET}.so
mkdir -p ~/.purple/plugins
cp ${TARGET}.so ~/.purple/plugins/