3 # Author: pier11@operamail.com
4 # Author: zup@sbox.tugraz.at
6 # Description: Top Makefile for win32 (mingw) port of LCS protocol plugin
9 export PIDGIN_TREE_TOP := ../pidgin-2.10.0
10 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
14 WIX3_HOME := /cygdrive/c/Program\ Files/Windows\ Installer\ XML\ v3
15 WXS_NAME := pidgin-sipe
16 export VERSION := $(shell cat VERSION)
18 .PHONY: all clean install msi dev devinst nsis
21 $(MAKE) -C src -f $(MINGW_MAKEFILE)
22 $(MAKE) -C po -f $(MINGW_MAKEFILE)
25 $(MAKE) -C src -f $(MINGW_MAKEFILE)
28 $(MAKE) -C src -f $(MINGW_MAKEFILE) clean
29 $(MAKE) -C po -f $(MINGW_MAKEFILE) clean
30 rm -f $(WXS_NAME).wix*
31 rm -f $(WXS_NAME)-$(VERSION).msi
32 rm -f pidgin-sipe-$(VERSION).exe
36 $(MAKE) -C src -f $(MINGW_MAKEFILE) rmbak
39 $(MAKE) -C src -f $(MINGW_MAKEFILE) install
40 $(MAKE) -C po -f $(MINGW_MAKEFILE) install
41 $(MAKE) -C pixmaps -f $(MINGW_MAKEFILE) install
44 $(MAKE) -C src -f $(MINGW_MAKEFILE) install
47 $(MAKE) -C src -f $(MINGW_MAKEFILE) tests
50 PACKAGE_VERSION=$(VERSION) $(WIX3_HOME)/bin/candle $(WXS_NAME).wxs
51 $(WIX3_HOME)/bin/light $(WXS_NAME).wixobj
52 mv $(WXS_NAME).msi $(WXS_NAME)-$(VERSION).msi
55 makensis -DTREETOP=..\\pidgin-2.10.0 -DVERSION=$(VERSION) pidgin-sipe.nsi