Mercurial > pidgin.yaz
comparison Makefile.mingw @ 15753:0efc23706de2
merge of '0bbdd897525969f1b481b593dad32050b57f9033'
and '8dee64564b04f629410f93246dc03044efc8a7c6'
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 01 Mar 2007 01:45:53 +0000 |
parents | e11859350489 |
children | ded8da3de5f8 |
comparison
equal
deleted
inserted
replaced
15743:6d4c5218b90b | 15753:0efc23706de2 |
---|---|
8 GAIM_TOP := . | 8 GAIM_TOP := . |
9 include $(GAIM_TOP)/libpurple/win32/global.mak | 9 include $(GAIM_TOP)/libpurple/win32/global.mak |
10 | 10 |
11 # Generate a X.X.X.X version for the installer file versioning header | 11 # Generate a X.X.X.X version for the installer file versioning header |
12 # The last digit will be 99 for a final release, 0 for dev or unknown, or the beta number | 12 # The last digit will be 99 for a final release, 0 for dev or unknown, or the beta number |
13 GAIM_PRODUCT_VERSION = $(shell \ | 13 PIDGIN_PRODUCT_VERSION = $(shell \ |
14 awk 'BEGIN {FS="."} { \ | 14 awk 'BEGIN {FS="."} { \ |
15 if (int($$3) == $$3) { \ | 15 if (int($$3) == $$3) { \ |
16 $$4 = "99"; \ | 16 $$4 = "99"; \ |
17 } else { \ | 17 } else { \ |
18 $$5 = $$3; \ | 18 $$5 = $$3; \ |
36 echo $$gtk_version \ | 36 echo $$gtk_version \ |
37 ) | 37 ) |
38 | 38 |
39 # Any *.dll or *.exe files included in win32-install-dir that we don't compile | 39 # Any *.dll or *.exe files included in win32-install-dir that we don't compile |
40 # should be included in this list so they don't get stripped | 40 # should be included in this list so they don't get stripped |
41 NON_GAIM_DLLS = \ | 41 EXTERNAL_DLLS = \ |
42 freebl3.dll \ | 42 freebl3.dll \ |
43 libgtkspell.dll \ | 43 libgtkspell.dll \ |
44 libmeanwhile-1.dll \ | 44 libmeanwhile-1.dll \ |
45 libxml2.dll \ | 45 libxml2.dll \ |
46 nspr4.dll \ | 46 nspr4.dll \ |
52 silcclient.dll \ | 52 silcclient.dll \ |
53 softokn3.dll \ | 53 softokn3.dll \ |
54 ssl3.dll | 54 ssl3.dll |
55 | 55 |
56 #build an expression for `find` to use to ignore the above files | 56 #build an expression for `find` to use to ignore the above files |
57 NON_GAIM_DLLS_FIND_EXP = $(patsubst %,-o -name %,$(NON_GAIM_DLLS)) | 57 EXTERNAL_DLLS_FIND_EXP = $(patsubst %,-o -name %,$(EXTERNAL_DLLS)) |
58 | 58 |
59 .PHONY: all install installer installer_nogtk installer_debug installers clean uninstall create_release_install_dir | 59 .PHONY: all install installer installer_nogtk installer_debug installers clean uninstall create_release_install_dir |
60 | 60 |
61 all: $(GAIM_CONFIG_H) | 61 all: $(GAIM_CONFIG_H) |
62 $(MAKE) -C $(GAIM_LIB_TOP) -f $(GAIM_WIN32_MAKEFILE) | 62 $(MAKE) -C $(GAIM_LIB_TOP) -f $(GAIM_WIN32_MAKEFILE) |
70 | 70 |
71 create_release_install_dir: install | 71 create_release_install_dir: install |
72 rm -rf $(GAIM_INSTALL_DIR).release | 72 rm -rf $(GAIM_INSTALL_DIR).release |
73 cp -R $(GAIM_INSTALL_DIR) $(GAIM_INSTALL_DIR).release | 73 cp -R $(GAIM_INSTALL_DIR) $(GAIM_INSTALL_DIR).release |
74 find $(GAIM_INSTALL_DIR).release \( -name '*.dll' -o -name '*.exe' \) \ | 74 find $(GAIM_INSTALL_DIR).release \( -name '*.dll' -o -name '*.exe' \) \ |
75 -not \( -false $(NON_GAIM_DLLS_FIND_EXP) \) -exec $(STRIP) --strip-unneeded {} ';' | 75 -not \( -false $(EXTERNAL_DLLS_FIND_EXP) \) -exec $(STRIP) --strip-unneeded {} ';' |
76 | 76 |
77 installer: create_release_install_dir | 77 installer: create_release_install_dir |
78 $(MAKENSIS) /V3 /DGAIM_VERSION="$(GAIM_VERSION)" /DGAIM_PRODUCT_VERSION="$(GAIM_PRODUCT_VERSION)" /DWITH_GTK /DGAIM_INSTALL_DIR="$(GAIM_INSTALL_DIR).release" /DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" gaim-installer.nsi | 78 $(MAKENSIS) /V3 /DPIDGIN_VERSION="$(GAIM_VERSION)" /DPIDGIN_PRODUCT_VERSION="$(PIDGIN_PRODUCT_VERSION)" /DWITH_GTK /DPIDGIN_INSTALL_DIR="$(GAIM_INSTALL_DIR).release" /DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" pidgin/win32/nsis/pidgin-installer.nsi |
79 mv pidgin/win32/nsis/pidgin*.exe ./ | |
79 | 80 |
80 installer_nogtk: create_release_install_dir | 81 installer_nogtk: create_release_install_dir |
81 $(MAKENSIS) -V3 -DGAIM_VERSION="$(GAIM_VERSION)" -DGAIM_PRODUCT_VERSION="$(GAIM_PRODUCT_VERSION)" -DGAIM_INSTALL_DIR="$(GAIM_INSTALL_DIR).release" -DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" gaim-installer.nsi | 82 $(MAKENSIS) /V3 /DPIDGIN_VERSION="$(GAIM_VERSION)" /DPIDGIN_PRODUCT_VERSION="$(PIDGIN_PRODUCT_VERSION)" /DPIDGIN_INSTALL_DIR="$(GAIM_INSTALL_DIR).release" /DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" pidgin/win32/nsis/pidgin-installer.nsi |
83 mv pidgin/win32/nsis/pidgin*.exe ./ | |
82 | 84 |
83 installer_debug: install | 85 installer_debug: install |
84 $(MAKENSIS) /V3 /DGAIM_VERSION="$(GAIM_VERSION)" /DGAIM_PRODUCT_VERSION="$(GAIM_PRODUCT_VERSION)" /DGAIM_INSTALL_DIR="$(GAIM_INSTALL_DIR)" /DDEBUG /DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" gaim-installer.nsi | 86 $(MAKENSIS) /V3 /DPIDGIN_VERSION="$(GAIM_VERSION)" /DPIDGIN_PRODUCT_VERSION="$(PIDGIN_PRODUCT_VERSION)" /DPIDGIN_INSTALL_DIR="$(GAIM_INSTALL_DIR)" /DDEBUG /DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" pidgin/win32/nsis/pidgin-installer.nsi |
87 mv pidgin/win32/nsis/pidgin*.exe ./ | |
85 | 88 |
86 installers: installer installer_nogtk installer_debug | 89 installers: installer installer_nogtk installer_debug |
87 | 90 |
88 clean: | 91 clean: |
89 $(MAKE) -C $(GAIM_PO_TOP) -f $(GAIM_WIN32_MAKEFILE) clean | 92 $(MAKE) -C $(GAIM_PO_TOP) -f $(GAIM_WIN32_MAKEFILE) clean |
90 $(MAKE) -C $(GAIM_GTK_TOP) -f $(GAIM_WIN32_MAKEFILE) clean | 93 $(MAKE) -C $(GAIM_GTK_TOP) -f $(GAIM_WIN32_MAKEFILE) clean |
91 $(MAKE) -C $(GAIM_LIB_TOP) -f $(GAIM_WIN32_MAKEFILE) clean | 94 $(MAKE) -C $(GAIM_LIB_TOP) -f $(GAIM_WIN32_MAKEFILE) clean |
92 rm -f $(GAIM_CONFIG_H) VERSION gaim*.exe | 95 rm -f $(GAIM_CONFIG_H) VERSION pidgin*.exe |
93 | 96 |
94 uninstall: | 97 uninstall: |
95 rm -rf $(GAIM_INSTALL_PERLMOD_DIR) $(GAIM_INSTALL_PLUGINS_DIR) $(GAIM_INSTALL_PO_DIR) $(GAIM_INSTALL_DIR) $(GAIM_INSTALL_DIR).release | 98 rm -rf $(GAIM_INSTALL_PERLMOD_DIR) $(GAIM_INSTALL_PLUGINS_DIR) $(GAIM_INSTALL_PO_DIR) $(GAIM_INSTALL_DIR) $(GAIM_INSTALL_DIR).release |
96 | 99 |
97 include $(GAIM_COMMON_TARGETS) | 100 include $(GAIM_COMMON_TARGETS) |