Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV1TSK <vitaly@easycoding.org>2015-03-16 21:10:40 +0300
committerV1TSK <vitaly@easycoding.org>2015-03-16 21:10:40 +0300
commit18f9e91408dfacba54619772ff5174fa0260e3ec (patch)
treea2259fca5f87f00de4bed4fcd06f5a30dde7cc83 /skypeweb/Makefile
parent255c6a722723d7ffade22ee0a2586e450bf2efdd (diff)
Updated makefile. Added --install section.
Diffstat (limited to 'skypeweb/Makefile')
-rw-r--r--skypeweb/Makefile23
1 files changed, 21 insertions, 2 deletions
diff --git a/skypeweb/Makefile b/skypeweb/Makefile
index 5a020ec..3163d77 100644
--- a/skypeweb/Makefile
+++ b/skypeweb/Makefile
@@ -1,8 +1,15 @@
COMPILER = gcc
+DIR_PERM=0755
+FILE_PERM=0644
LIBPURPLE_CFLAGS += $(shell pkg-config --cflags glib-2.0 json-glib-1.0 purple)
LIBPURPLE_LIBS += $(shell pkg-config --libs glib-2.0 json-glib-1.0 purple)
+PLUGIN_DIR_PURPLE=$(shell pkg-config --variable=plugindir purple)
+DATA_ROOT_DIR_PURPLE=$(shell pkg-config --variable=datarootdir purple)
+
+PRPL_NAME=libskypeweb.so
+PRPL_LIBNAME=${PRPL_NAME}
SKYPEWEB_SOURCES = \
skypeweb_connection.c \
@@ -13,9 +20,21 @@ SKYPEWEB_SOURCES = \
libskypeweb.c
.PHONY: all clean install
-all: libskypeweb.so
+all: ${PRPL_NAME}
+install:
+ mkdir -m $(DIR_PERM) -p $(DESTDIR)$(PLUGIN_DIR_PURPLE)
+ install -m $(FILE_PERM) $(PRPL_LIBNAME) $(DESTDIR)$(PLUGIN_DIR_PURPLE)/$(PRPL_NAME)
+ mkdir -m $(DIR_PERM) -p $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/16
+ install -m $(FILE_PERM) icons/16/skype.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/16/skype.png
+ install -m $(FILE_PERM) icons/16/skypeout.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/16/skypeout.png
+ mkdir -m $(DIR_PERM) -p $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/22
+ install -m $(FILE_PERM) icons/22/skype.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/22/skype.png
+ install -m $(FILE_PERM) icons/22/skypeout.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/22/skypeout.png
+ mkdir -m $(DIR_PERM) -p $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/48
+ install -m $(FILE_PERM) icons/48/skype.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/48/skype.png
+ install -m $(FILE_PERM) icons/48/skypeout.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/48/skypeout.png
clean:
rm -f libskypeweb.so
-libskypeweb.so: ${SKYPEWEB_SOURCES}
+${PRPL_NAME}: ${SKYPEWEB_SOURCES}
${COMPILER} -Wall -I. -g -O2 -fPIC -pipe ${SKYPEWEB_SOURCES} -o $@ ${LIBPURPLE_CFLAGS} ${LIBPURPLE_LIBS} -shared