Makefile.mingw

Tue, 21 Jan 2025 23:50:29 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 21 Jan 2025 23:50:29 -0600
branch
release-2.x.y
changeset 43155
624e30955003
parent 42604
8851e3dc8613
child 43264
50facee54d1d
permissions
-rw-r--r--

Add the ability to run a custom command for signing the binaries

This allows you to do customize the entire signing process via your `local.mak`.

Mine looks like this

```
CUSTOM_AUTHENTICODE=/home/grim/sign.bat
```

And then my `sign.bat` does a whole lot of magic I'll document elsewhere.

Testing Done:
Ran `make -f Makefile.mingw installers` too many times to count.

Reviewed at https://reviews.imfreedom.org/r/3778/

3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
1 # Makefile.mingw
8615
7db99c77c41e [gaim-migrate @ 9366]
Luke Schierer <lschiere@pidgin.im>
parents: 7056
diff changeset
2 #
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
3 # Author: hermanator12002@yahoo.com
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
4 # Date 9/11/02
25875
a98b16817658 Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents: 24229
diff changeset
5 # Description: Top Makefile for win32 (mingw) port of Pidgin and libpurple
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
6 #
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
7
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15805
diff changeset
8 PIDGIN_TREE_TOP := .
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15805
diff changeset
9 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
10804
e51729c86312 [gaim-migrate @ 12452]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10201
diff changeset
10
42604
8851e3dc8613 A few cleanups for the windows build
Gary Kramlich <grim@reaperworld.com>
parents: 41272
diff changeset
11 DICTIONARY_TIMESTAMP := 20240223-040846
41272
17237faf35cb Fix the downloading of dictionaries in the windows installer
Gary Kramlich <grim@reaperworld.com>
parents: 40832
diff changeset
12
14516
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
13 # Generate a X.X.X.X version for the installer file versioning header
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
14 # The last digit will be 99 for a final release, 0 for dev or unknown, or the beta number
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15643
diff changeset
15 PIDGIN_PRODUCT_VERSION = $(shell \
14516
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
16 awk 'BEGIN {FS="."} { \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
17 if (int($$3) == $$3) { \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
18 $$4 = "99"; \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
19 } else { \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
20 $$5 = $$3; \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
21 sub(int($$3), "", $$5); \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
22 if ($$5 == "dev") { \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
23 $$4 = "0"; \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
24 } else { \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
25 if (sub("beta", "", $$5) > 0) { \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
26 $$4 = $$5; \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
27 } else { \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
28 $$4 = "0"; \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
29 } \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
30 } \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
31 } \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
32 printf("%s.%s.%s.%s", $$1, $$2, int($$3), $$4); \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
33 exit; \
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
34 }' VERSION)
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
35
36307
714ba418d0aa win32: Update zlib to 1.2.8
Daniel Atallah <datallah@pidgin.im>
parents: 36306
diff changeset
36 GTK_INSTALL_VERSION = 2.16.6.3
15425
c0961da59074 [gaim-migrate @ 18156]
Daniel Atallah <datallah@pidgin.im>
parents: 15144
diff changeset
37
36161
89bb3eaa33b9 Add support for doing the win32 signing with signtool so that we can make SHA256 signatures
Daniel Atallah <datallah@pidgin.im>
parents: 35283
diff changeset
38 ifdef SIGNTOOL
89bb3eaa33b9 Add support for doing the win32 signing with signtool so that we can make SHA256 signatures
Daniel Atallah <datallah@pidgin.im>
parents: 35283
diff changeset
39 authenticode_sign = $(SIGNTOOL) sign \
89bb3eaa33b9 Add support for doing the win32 signing with signtool so that we can make SHA256 signatures
Daniel Atallah <datallah@pidgin.im>
parents: 35283
diff changeset
40 /fd SHA256 \
89bb3eaa33b9 Add support for doing the win32 signing with signtool so that we can make SHA256 signatures
Daniel Atallah <datallah@pidgin.im>
parents: 35283
diff changeset
41 /f "$(SIGNTOOL_PFX)" /p "$(SIGNTOOL_PASSWORD)" \
89bb3eaa33b9 Add support for doing the win32 signing with signtool so that we can make SHA256 signatures
Daniel Atallah <datallah@pidgin.im>
parents: 35283
diff changeset
42 /d $(2) /du "https://pidgin.im" \
89bb3eaa33b9 Add support for doing the win32 signing with signtool so that we can make SHA256 signatures
Daniel Atallah <datallah@pidgin.im>
parents: 35283
diff changeset
43 /tr "http://timestamp.comodoca.com/rfc3161" /td SHA256 \
89bb3eaa33b9 Add support for doing the win32 signing with signtool so that we can make SHA256 signatures
Daniel Atallah <datallah@pidgin.im>
parents: 35283
diff changeset
44 $(1)
89bb3eaa33b9 Add support for doing the win32 signing with signtool so that we can make SHA256 signatures
Daniel Atallah <datallah@pidgin.im>
parents: 35283
diff changeset
45 else
40832
cbb6d1c52d6e Add support for osslsigncode and newer versions of nsis
Gary Kramlich <grim@reaperworld.com>
parents: 36307
diff changeset
46 ifdef OSSLSIGNCODE
cbb6d1c52d6e Add support for osslsigncode and newer versions of nsis
Gary Kramlich <grim@reaperworld.com>
parents: 36307
diff changeset
47 osslsigncode_sign = $(OSSLSIGNCODE) sign \
cbb6d1c52d6e Add support for osslsigncode and newer versions of nsis
Gary Kramlich <grim@reaperworld.com>
parents: 36307
diff changeset
48 -spc "$(SIGNCODE_SPC)" -key "$(SIGNCODE_PVK)" \
cbb6d1c52d6e Add support for osslsigncode and newer versions of nsis
Gary Kramlich <grim@reaperworld.com>
parents: 36307
diff changeset
49 -h $(3) -comm \
cbb6d1c52d6e Add support for osslsigncode and newer versions of nsis
Gary Kramlich <grim@reaperworld.com>
parents: 36307
diff changeset
50 -n $(2) -i "https://pidgin.im" \
cbb6d1c52d6e Add support for osslsigncode and newer versions of nsis
Gary Kramlich <grim@reaperworld.com>
parents: 36307
diff changeset
51 -t http://timestamp.digicert.com \
cbb6d1c52d6e Add support for osslsigncode and newer versions of nsis
Gary Kramlich <grim@reaperworld.com>
parents: 36307
diff changeset
52 -in $(1) -out $(1).signed \
cbb6d1c52d6e Add support for osslsigncode and newer versions of nsis
Gary Kramlich <grim@reaperworld.com>
parents: 36307
diff changeset
53 && mv $(1).signed $(1)
cbb6d1c52d6e Add support for osslsigncode and newer versions of nsis
Gary Kramlich <grim@reaperworld.com>
parents: 36307
diff changeset
54 # osslsigncode apparently only allows one nested signature
cbb6d1c52d6e Add support for osslsigncode and newer versions of nsis
Gary Kramlich <grim@reaperworld.com>
parents: 36307
diff changeset
55 authenticode_sign = $(call osslsigncode_sign,$(1),$(2),sha1) && \
cbb6d1c52d6e Add support for osslsigncode and newer versions of nsis
Gary Kramlich <grim@reaperworld.com>
parents: 36307
diff changeset
56 $(call osslsigncode_sign,$(1),$(2),sha256 -nest)
cbb6d1c52d6e Add support for osslsigncode and newer versions of nsis
Gary Kramlich <grim@reaperworld.com>
parents: 36307
diff changeset
57 else
43155
624e30955003 Add the ability to run a custom command for signing the binaries
Gary Kramlich <grim@reaperworld.com>
parents: 42604
diff changeset
58 ifdef CUSTOM_AUTHENTICODE
624e30955003 Add the ability to run a custom command for signing the binaries
Gary Kramlich <grim@reaperworld.com>
parents: 42604
diff changeset
59 # This will call whatever program you specific in CUSTOM_AUTHENTICODE. It will
624e30955003 Add the ability to run a custom command for signing the binaries
Gary Kramlich <grim@reaperworld.com>
parents: 42604
diff changeset
60 # pass the input file as the first parameter and the description as the second.
624e30955003 Add the ability to run a custom command for signing the binaries
Gary Kramlich <grim@reaperworld.com>
parents: 42604
diff changeset
61 authenticode_sign = $(CUSTOM_AUTHENTICODE) $(1) $(2)
624e30955003 Add the ability to run a custom command for signing the binaries
Gary Kramlich <grim@reaperworld.com>
parents: 42604
diff changeset
62 else
33417
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
63 authenticode_sign = $(MONO_SIGNCODE) \
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
64 -spc "$(SIGNCODE_SPC)" -v "$(SIGNCODE_PVK)" \
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
65 -a sha1 -$$ commercial \
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
66 -n "$(2)" -i "https://pidgin.im" \
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
67 -t "http://timestamp.verisign.com/scripts/timstamp.dll" -tr 10 \
33752
fb9baad00cbd installer: remove Baltimore_CyberTrust_Root.pem, ValiCert_Class_2_VA.pem when uninstalling
Daniel Atallah <datallah@pidgin.im>
parents: 33669
diff changeset
68 $(1) && rm -f $(1).bak
36161
89bb3eaa33b9 Add support for doing the win32 signing with signtool so that we can make SHA256 signatures
Daniel Atallah <datallah@pidgin.im>
parents: 35283
diff changeset
69 endif
40832
cbb6d1c52d6e Add support for osslsigncode and newer versions of nsis
Gary Kramlich <grim@reaperworld.com>
parents: 36307
diff changeset
70 endif
43155
624e30955003 Add the ability to run a custom command for signing the binaries
Gary Kramlich <grim@reaperworld.com>
parents: 42604
diff changeset
71 endif
33417
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
72
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
73 gpg_sign = $(GPG_SIGN) -ab $(1) && $(GPG_SIGN) --verify $(1).asc
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
74
20253
7e389b201776 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19668
diff changeset
75 STRIPPED_RELEASE_DIR = $(PIDGIN_TREE_TOP)/pidgin-$(PIDGIN_VERSION)-win32bin
29634
80dbf6f777c4 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents: 28003
diff changeset
76 DEBUG_SYMBOLS_DIR = $(PIDGIN_TREE_TOP)/pidgin-$(PIDGIN_VERSION)-dbgsym
20253
7e389b201776 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19668
diff changeset
77
33753
75999131f023 installer: update installer deps with a fixed NSIS SHA1Sum plugin that works on Windows XP
Daniel Atallah <datallah@pidgin.im>
parents: 33752
diff changeset
78 PIDGIN_INST_DEP_DIR="$(WIN32_DEV_TOP)/pidgin-inst-deps-20130214"
20253
7e389b201776 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19668
diff changeset
79
15144
d936faa32f0e [gaim-migrate @ 17868]
Daniel Atallah <datallah@pidgin.im>
parents: 14761
diff changeset
80 # Any *.dll or *.exe files included in win32-install-dir that we don't compile
d936faa32f0e [gaim-migrate @ 17868]
Daniel Atallah <datallah@pidgin.im>
parents: 14761
diff changeset
81 # should be included in this list so they don't get stripped
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15643
diff changeset
82 EXTERNAL_DLLS = \
29818
ba5a3e226f5d Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents: 29807
diff changeset
83 exchndl.dll \
15144
d936faa32f0e [gaim-migrate @ 17868]
Daniel Atallah <datallah@pidgin.im>
parents: 14761
diff changeset
84 freebl3.dll \
29807
bda3933c6400 Upgrade GtkSpell to 2.0.16 on Windows. The installer needs a bunch more work, but that is for later
Daniel Atallah <datallah@pidgin.im>
parents: 29798
diff changeset
85 libenchant.dll \
29877
56aca5bc0c25 Update some dll names to avoid stripping/including debug symbols for.
Daniel Atallah <datallah@pidgin.im>
parents: 29862
diff changeset
86 libenchant_ispell.dll \
56aca5bc0c25 Update some dll names to avoid stripping/including debug symbols for.
Daniel Atallah <datallah@pidgin.im>
parents: 29862
diff changeset
87 libenchant_myspell.dll \
29807
bda3933c6400 Upgrade GtkSpell to 2.0.16 on Windows. The installer needs a bunch more work, but that is for later
Daniel Atallah <datallah@pidgin.im>
parents: 29798
diff changeset
88 libgtkspell-0.dll \
15144
d936faa32f0e [gaim-migrate @ 17868]
Daniel Atallah <datallah@pidgin.im>
parents: 14761
diff changeset
89 libmeanwhile-1.dll \
29794
c2e688a6a2f5 Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <datallah@pidgin.im>
parents: 29639
diff changeset
90 libnspr4.dll \
c2e688a6a2f5 Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <datallah@pidgin.im>
parents: 29639
diff changeset
91 libplc4.dll \
c2e688a6a2f5 Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <datallah@pidgin.im>
parents: 29639
diff changeset
92 libplds4.dll \
33366
75dbccde9fc7 Enable the GCC Stack-Smashing Protection functionality (-fstack-protector-all)
Daniel Atallah <datallah@pidgin.im>
parents: 33354
diff changeset
93 libssp-0.dll \
15144
d936faa32f0e [gaim-migrate @ 17868]
Daniel Atallah <datallah@pidgin.im>
parents: 14761
diff changeset
94 nss3.dll \
29794
c2e688a6a2f5 Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <datallah@pidgin.im>
parents: 29639
diff changeset
95 nssutil3.dll \
21395
e5bb2b0df509 Improved cyrus sasl support on win32:
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21074
diff changeset
96 smime3.dll \
15144
d936faa32f0e [gaim-migrate @ 17868]
Daniel Atallah <datallah@pidgin.im>
parents: 14761
diff changeset
97 softokn3.dll \
29794
c2e688a6a2f5 Update NSS/NSPR to 3.12.5/4.8.2 (self-built). Big thanks goes to Berke Viktor for doing this.
Daniel Atallah <datallah@pidgin.im>
parents: 29639
diff changeset
98 sqlite3.dll \
15144
d936faa32f0e [gaim-migrate @ 17868]
Daniel Atallah <datallah@pidgin.im>
parents: 14761
diff changeset
99 ssl3.dll
d936faa32f0e [gaim-migrate @ 17868]
Daniel Atallah <datallah@pidgin.im>
parents: 14761
diff changeset
100
d936faa32f0e [gaim-migrate @ 17868]
Daniel Atallah <datallah@pidgin.im>
parents: 14761
diff changeset
101 #build an expression for `find` to use to ignore the above files
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15643
diff changeset
102 EXTERNAL_DLLS_FIND_EXP = $(patsubst %,-o -name %,$(EXTERNAL_DLLS))
15144
d936faa32f0e [gaim-migrate @ 17868]
Daniel Atallah <datallah@pidgin.im>
parents: 14761
diff changeset
103
30285
33c8197dc6b6 Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents: 29881
diff changeset
104 include $(PIDGIN_COMMON_RULES)
33c8197dc6b6 Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents: 29881
diff changeset
105
33417
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
106 .PHONY: all docs install installer installer_offline installer_zip debug_symbols_zip installers clean uninstall create_release_install_dir generate_installer_includes $(PIDGIN_REVISION_H) $(PIDGIN_REVISION_RAW_TXT) gtk_runtime_zip
14516
fa15efbfe388 [gaim-migrate @ 17168]
Daniel Atallah <datallah@pidgin.im>
parents: 14377
diff changeset
107
27970
1dea59c9eced Fix windows build by adding the necessary bits to define the MTN revision
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 27665
diff changeset
108 all: $(PIDGIN_CONFIG_H) $(PIDGIN_REVISION_H)
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15805
diff changeset
109 $(MAKE) -C $(PURPLE_TOP) -f $(MINGW_MAKEFILE)
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15805
diff changeset
110 $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE)
21074
91249b31d423 Add support for a DISABLE_NLS makefile variable in the mingw build to disable processing any of the translations. This shaves some time off test builds. This doesn't actually disable gettext during the build.
Daniel Atallah <datallah@pidgin.im>
parents: 20253
diff changeset
111 ifndef DISABLE_NLS
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15805
diff changeset
112 $(MAKE) -C $(PURPLE_PO_TOP) -f $(MINGW_MAKEFILE)
21074
91249b31d423 Add support for a DISABLE_NLS makefile variable in the mingw build to disable processing any of the translations. This shaves some time off test builds. This doesn't actually disable gettext during the build.
Daniel Atallah <datallah@pidgin.im>
parents: 20253
diff changeset
113 endif
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
114
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15805
diff changeset
115 install: all $(PIDGIN_INSTALL_DIR)
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15805
diff changeset
116 $(MAKE) -C $(PURPLE_TOP) -f $(MINGW_MAKEFILE) install
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15805
diff changeset
117 $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE) install
21074
91249b31d423 Add support for a DISABLE_NLS makefile variable in the mingw build to disable processing any of the translations. This shaves some time off test builds. This doesn't actually disable gettext during the build.
Daniel Atallah <datallah@pidgin.im>
parents: 20253
diff changeset
118 ifndef DISABLE_NLS
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15805
diff changeset
119 $(MAKE) -C $(PURPLE_PO_TOP) -f $(MINGW_MAKEFILE) install
21074
91249b31d423 Add support for a DISABLE_NLS makefile variable in the mingw build to disable processing any of the translations. This shaves some time off test builds. This doesn't actually disable gettext during the build.
Daniel Atallah <datallah@pidgin.im>
parents: 20253
diff changeset
120 endif
21502
71835d560439 Fix win32 build following death of share/Makefile.mingw
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21395
diff changeset
121 $(MAKE) -C share/ca-certs -f $(MINGW_MAKEFILE) install
71835d560439 Fix win32 build following death of share/Makefile.mingw
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21395
diff changeset
122 $(MAKE) -C share/sounds -f $(MINGW_MAKEFILE) install
32108
e7cc0ed5569a Upgrade win32 version of enchant to 1.6.0. Fixes #11886
Daniel Atallah <datallah@pidgin.im>
parents: 32095
diff changeset
123 mkdir -p $(PIDGIN_INSTALL_DIR)/spellcheck/lib/enchant
29807
bda3933c6400 Upgrade GtkSpell to 2.0.16 on Windows. The installer needs a bunch more work, but that is for later
Daniel Atallah <datallah@pidgin.im>
parents: 29798
diff changeset
124 cp $(GTKSPELL_TOP)/bin/libgtkspell-0.dll $(PIDGIN_INSTALL_DIR)/spellcheck
bda3933c6400 Upgrade GtkSpell to 2.0.16 on Windows. The installer needs a bunch more work, but that is for later
Daniel Atallah <datallah@pidgin.im>
parents: 29798
diff changeset
125 cp $(ENCHANT_TOP)/bin/libenchant.dll $(PIDGIN_INSTALL_DIR)/spellcheck
32108
e7cc0ed5569a Upgrade win32 version of enchant to 1.6.0. Fixes #11886
Daniel Atallah <datallah@pidgin.im>
parents: 32095
diff changeset
126 cp -R $(ENCHANT_TOP)/lib/enchant/*.dll $(PIDGIN_INSTALL_DIR)/spellcheck/lib/enchant
33620
8c11f90243e4 Update the Installer Dependencies to the latest version with the exchndl.dll that doesn't crash with gcc > 4.4
Daniel Atallah <datallah@pidgin.im>
parents: 33418
diff changeset
127 cp $(PIDGIN_INST_DEP_DIR)/exchndl.dll $(PIDGIN_INSTALL_DIR)
33765
910bab8c9dac win32: Use the libssp-0.dll from the gcc bin directory instead of based on a separate dependency.
Daniel Atallah <datallah@pidgin.im>
parents: 33753
diff changeset
128 cp $(GCC_SSP_TOP)/libssp-0.dll $(PIDGIN_INSTALL_DIR)
3630
caa952062dc2 [gaim-migrate @ 3753]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
129
33417
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
130 gtk_runtime_zip:
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
131 pidgin/win32/nsis/generate_gtk_zip.sh "`pwd`" "$(GPG_SIGN)"
29798
7e57f09e0b2e The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents: 29794
diff changeset
132
33417
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
133 generate_installer_includes: create_release_install_dir gtk_runtime_zip debug_symbols_zip $(PIDGIN_TREE_TOP)/pidgin/win32/nsis/nsis_translations.desktop
29818
ba5a3e226f5d Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents: 29807
diff changeset
134 rm -f pidgin/win32/nsis/pidgin-translations.nsh pidgin/win32/nsis/pidgin-spellcheck.nsh pidgin/win32/nsis/pidgin-spellcheck-preselect.nsh
29639
7266983d565c Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents: 29634
diff changeset
135 find $(STRIPPED_RELEASE_DIR)/locale -maxdepth 1 -mindepth 1 \
7266983d565c Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents: 29634
diff changeset
136 -exec basename {} ';' \
30409
5ec2b6ec47f4 Make sure that the translations in the installer are displayed sorted.
Daniel Atallah <datallah@pidgin.im>
parents: 30285
diff changeset
137 | LC_ALL=C sort | sed -e s/^/\!insertmacro\ LANG_SECTION\ \"/ -e s/$$/\"/ \
29639
7266983d565c Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents: 29634
diff changeset
138 > pidgin/win32/nsis/pidgin-translations.nsh
29818
ba5a3e226f5d Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents: 29807
diff changeset
139 #Convert the available.lst lines to "!insertmacro SPELLCHECK_SECTION lang lang_name lang_file"
41272
17237faf35cb Fix the downloading of dictionaries in the windows installer
Gary Kramlich <grim@reaperworld.com>
parents: 40832
diff changeset
140 sed -e "/^#/d" -e "s/,/\ /" -e "s/^/\!insertmacro\ SPELLCHECK_SECTION\ /" \
29818
ba5a3e226f5d Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents: 29807
diff changeset
141 pidgin/win32/nsis/available.lst \
ba5a3e226f5d Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents: 29807
diff changeset
142 > pidgin/win32/nsis/pidgin-spellcheck.nsh
ba5a3e226f5d Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents: 29807
diff changeset
143 #Convert the lines to "!insertmacro CHECK_SPELLCHECK_SECTION lang"
ba5a3e226f5d Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents: 29807
diff changeset
144 iconv -f latin1 -t utf-8 pidgin/win32/nsis/pidgin-spellcheck.nsh | \
ba5a3e226f5d Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents: 29807
diff changeset
145 sed -e "s/SPELLCHECK_SECTION/CHECK_SPELLCHECK_SECTION/" \
41272
17237faf35cb Fix the downloading of dictionaries in the windows installer
Gary Kramlich <grim@reaperworld.com>
parents: 40832
diff changeset
146 -e "s/ \"[^\"]*\"[\t\ ]*$$//" | \
29818
ba5a3e226f5d Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents: 29807
diff changeset
147 iconv -f utf-8 -t latin1 \
ba5a3e226f5d Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents: 29807
diff changeset
148 > pidgin/win32/nsis/pidgin-spellcheck-preselect.nsh
30285
33c8197dc6b6 Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents: 29881
diff changeset
149 #Generate the Installer translations
33c8197dc6b6 Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents: 29881
diff changeset
150 echo "!define GCOMPRIS_NSIS_INCLUDE_PATH \".\"" > $(PIDGIN_TREE_TOP)/pidgin/win32/nsis/langmacros.nsh
33c8197dc6b6 Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents: 29881
diff changeset
151 echo "@INSERT_TRANSLATIONS@" >> $(PIDGIN_TREE_TOP)/pidgin/win32/nsis/langmacros.nsh
33c8197dc6b6 Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents: 29881
diff changeset
152 $(PERL) $(PIDGIN_TREE_TOP)/pidgin/win32/nsis/create_nsis_translations.pl \
33c8197dc6b6 Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents: 29881
diff changeset
153 $(PIDGIN_TREE_TOP)/pidgin/win32/nsis/nsis_translations.desktop \
33c8197dc6b6 Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents: 29881
diff changeset
154 $(PIDGIN_TREE_TOP)/pidgin/win32/nsis/langmacros.nsh \
33c8197dc6b6 Final piece of getting the installer translations integrated with the regular
Daniel Atallah <datallah@pidgin.im>
parents: 29881
diff changeset
155 $(PIDGIN_TREE_TOP)/pidgin/win32/nsis/translations
29639
7266983d565c Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents: 29634
diff changeset
156
15144
d936faa32f0e [gaim-migrate @ 17868]
Daniel Atallah <datallah@pidgin.im>
parents: 14761
diff changeset
157 create_release_install_dir: install
20253
7e389b201776 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19668
diff changeset
158 rm -rf $(STRIPPED_RELEASE_DIR)
29807
bda3933c6400 Upgrade GtkSpell to 2.0.16 on Windows. The installer needs a bunch more work, but that is for later
Daniel Atallah <datallah@pidgin.im>
parents: 29798
diff changeset
159 mkdir $(STRIPPED_RELEASE_DIR)
29818
ba5a3e226f5d Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents: 29807
diff changeset
160 tar -cf - $(PIDGIN_INSTALL_DIR) --exclude=Gtk --exclude=spellcheck/share \
29807
bda3933c6400 Upgrade GtkSpell to 2.0.16 on Windows. The installer needs a bunch more work, but that is for later
Daniel Atallah <datallah@pidgin.im>
parents: 29798
diff changeset
161 | tar --strip 2 -xC $(STRIPPED_RELEASE_DIR) -f -
20253
7e389b201776 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19668
diff changeset
162 find $(STRIPPED_RELEASE_DIR) \( -name '*.dll' -o -name '*.exe' \) \
29639
7266983d565c Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents: 29634
diff changeset
163 -not \( -false $(EXTERNAL_DLLS_FIND_EXP) \) \
7266983d565c Add the ability to choose which translations are installed.
Daniel Atallah <datallah@pidgin.im>
parents: 29634
diff changeset
164 -exec $(STRIP) --strip-unneeded {} ';'
33417
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
165 $(call authenticode_sign, $(STRIPPED_RELEASE_DIR)/pidgin.exe, "Pidgin $(PIDGIN_VERSION)")
5384
b187b49ff651 [gaim-migrate @ 5760]
Herman Bloggs <herman@bluedigits.com>
parents: 4897
diff changeset
166
29818
ba5a3e226f5d Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents: 29807
diff changeset
167 installer: generate_installer_includes
33415
51473787ff4f Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents: 33408
diff changeset
168 $(eval $@_DEBUG_SYMBOLS_SHA1SUM := $(shell sha1sum $(DEBUG_SYMBOLS_DIR).zip | sed -e "s/\ .*$$//"))
51473787ff4f Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents: 33408
diff changeset
169 $(eval $@_GTK_SHA1SUM := $(shell sha1sum pidgin/win32/nsis/gtk-runtime-$(GTK_INSTALL_VERSION).zip | sed -e "s/\ .*$$//"))
51473787ff4f Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents: 33408
diff changeset
170 $(MAKENSIS) -V3 -DPIDGIN_VERSION="$(PIDGIN_VERSION)" -DPIDGIN_PRODUCT_VERSION="$(PIDGIN_PRODUCT_VERSION)" \
51473787ff4f Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents: 33408
diff changeset
171 -DPIDGIN_INSTALL_DIR="$(STRIPPED_RELEASE_DIR)" -DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" \
41272
17237faf35cb Fix the downloading of dictionaries in the windows installer
Gary Kramlich <grim@reaperworld.com>
parents: 40832
diff changeset
172 -DDEBUG_SYMBOLS_SHA1SUM="$($@_DEBUG_SYMBOLS_SHA1SUM)" -DGTK_SHA1SUM="$($@_GTK_SHA1SUM)" \
17237faf35cb Fix the downloading of dictionaries in the windows installer
Gary Kramlich <grim@reaperworld.com>
parents: 40832
diff changeset
173 -DDICTIONARY_TIMESTAMP="$(DICTIONARY_TIMESTAMP)" \
33415
51473787ff4f Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents: 33408
diff changeset
174 pidgin/win32/nsis/pidgin-installer.nsi
33417
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
175 $(call authenticode_sign, pidgin/win32/nsis/pidgin-$(PIDGIN_VERSION).exe, "Pidgin Installer")
21671
5fb405d62f39 This is a patch from Lee Roach to update the mingw "clean" makefile targets to remove some generated files and to fix a couple other issues. Fixes #3981.
Daniel Atallah <datallah@pidgin.im>
parents: 21526
diff changeset
176 mv pidgin/win32/nsis/pidgin-$(PIDGIN_VERSION).exe ./
33417
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
177 $(call gpg_sign, pidgin-$(PIDGIN_VERSION).exe)
15144
d936faa32f0e [gaim-migrate @ 17868]
Daniel Atallah <datallah@pidgin.im>
parents: 14761
diff changeset
178
29818
ba5a3e226f5d Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents: 29807
diff changeset
179 installer_offline: generate_installer_includes
33415
51473787ff4f Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents: 33408
diff changeset
180 $(MAKENSIS) -V3 -DPIDGIN_VERSION="$(PIDGIN_VERSION)" -DPIDGIN_PRODUCT_VERSION="$(PIDGIN_PRODUCT_VERSION)" \
51473787ff4f Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents: 33408
diff changeset
181 -DPIDGIN_INSTALL_DIR="$(STRIPPED_RELEASE_DIR)" -DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" \
41272
17237faf35cb Fix the downloading of dictionaries in the windows installer
Gary Kramlich <grim@reaperworld.com>
parents: 40832
diff changeset
182 -DDICTIONARY_TIMESTAMP="$(DICTIONARY_TIMESTAMP)" -DOFFLINE_INSTALLER \
33415
51473787ff4f Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents: 33408
diff changeset
183 pidgin/win32/nsis/pidgin-installer.nsi
33417
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
184 $(call authenticode_sign, pidgin/win32/nsis/pidgin-$(PIDGIN_VERSION)-offline.exe, "Pidgin Installer")
29634
80dbf6f777c4 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents: 28003
diff changeset
185 mv pidgin/win32/nsis/pidgin-$(PIDGIN_VERSION)-offline.exe ./
33417
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
186 $(call gpg_sign, pidgin-$(PIDGIN_VERSION)-offline.exe)
5931
6bd53176fdcf [gaim-migrate @ 6371]
Herman Bloggs <herman@bluedigits.com>
parents: 5387
diff changeset
187
20253
7e389b201776 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19668
diff changeset
188 installer_zip: create_release_install_dir
7e389b201776 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19668
diff changeset
189 rm -f pidgin-$(PIDGIN_VERSION)-win32-bin.zip
7e389b201776 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19668
diff changeset
190 zip -9 -r pidgin-$(PIDGIN_VERSION)-win32-bin.zip $(STRIPPED_RELEASE_DIR)
33417
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
191 $(call gpg_sign, pidgin-$(PIDGIN_VERSION)-win32-bin.zip)
20253
7e389b201776 applied changes from 60b78c93bfc38b72c6e9fdde59d0e2507bccc4bd
Luke Schierer <lschiere@pidgin.im>
parents: 19668
diff changeset
192
29634
80dbf6f777c4 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents: 28003
diff changeset
193 debug_symbols_zip: install
80dbf6f777c4 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents: 28003
diff changeset
194 rm -rf $(DEBUG_SYMBOLS_DIR) $(DEBUG_SYMBOLS_DIR).zip
80dbf6f777c4 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents: 28003
diff changeset
195 mkdir $(DEBUG_SYMBOLS_DIR)
80dbf6f777c4 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents: 28003
diff changeset
196 tar -cf - `find $(PIDGIN_INSTALL_DIR) \( -name '*.dll' -o -name '*.exe' \) \
80dbf6f777c4 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents: 28003
diff changeset
197 -not \( -false $(EXTERNAL_DLLS_FIND_EXP) \) -print` \
80dbf6f777c4 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents: 28003
diff changeset
198 | tar --strip 2 --xform s/$$/.dbgsym/ -xC $(DEBUG_SYMBOLS_DIR) -f -
33418
a711c88ce448 Patch win32 meanwhile binary with jhkrischel's adium patches to fix #12637
Daniel Atallah <datallah@pidgin.im>
parents: 33417
diff changeset
199 cp $(MEANWHILE_TOP)/bin/libmeanwhile-1.dll.unstripped $(DEBUG_SYMBOLS_DIR)/libmeanwhile-1.dll.dbgsym
29634
80dbf6f777c4 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents: 28003
diff changeset
200 zip -9 -r $(DEBUG_SYMBOLS_DIR).zip $(DEBUG_SYMBOLS_DIR)
33417
156f37832487 Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents: 33415
diff changeset
201 $(call gpg_sign, $(DEBUG_SYMBOLS_DIR).zip)
29634
80dbf6f777c4 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents: 28003
diff changeset
202
80dbf6f777c4 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents: 28003
diff changeset
203 installers: installer installer_offline debug_symbols_zip installer_zip
5384
b187b49ff651 [gaim-migrate @ 5760]
Herman Bloggs <herman@bluedigits.com>
parents: 4897
diff changeset
204
18667
ebbd675130b3 Patch from Jason Conti to enable `make -f Makefile.mingw docs` on the windows build. Fixes #1801.
Daniel Atallah <datallah@pidgin.im>
parents: 16761
diff changeset
205 Doxyfile.mingw: Doxyfile.in
29877
56aca5bc0c25 Update some dll names to avoid stripping/including debug symbols for.
Daniel Atallah <datallah@pidgin.im>
parents: 29862
diff changeset
206 sed -e "s/@PACKAGE@/pidgin/" -e "s/@VERSION@/$(PIDGIN_VERSION)/" -e "s/@top_srcdir@/$(PIDGIN_TREE_TOP)/g" -e "s/@enable_dot@/NO/" $< > $@
18667
ebbd675130b3 Patch from Jason Conti to enable `make -f Makefile.mingw docs` on the windows build. Fixes #1801.
Daniel Atallah <datallah@pidgin.im>
parents: 16761
diff changeset
207
ebbd675130b3 Patch from Jason Conti to enable `make -f Makefile.mingw docs` on the windows build. Fixes #1801.
Daniel Atallah <datallah@pidgin.im>
parents: 16761
diff changeset
208 docs: Doxyfile.mingw
ebbd675130b3 Patch from Jason Conti to enable `make -f Makefile.mingw docs` on the windows build. Fixes #1801.
Daniel Atallah <datallah@pidgin.im>
parents: 16761
diff changeset
209 @echo "Running doxygen..."
ebbd675130b3 Patch from Jason Conti to enable `make -f Makefile.mingw docs` on the windows build. Fixes #1801.
Daniel Atallah <datallah@pidgin.im>
parents: 16761
diff changeset
210 @doxygen Doxyfile.mingw
ebbd675130b3 Patch from Jason Conti to enable `make -f Makefile.mingw docs` on the windows build. Fixes #1801.
Daniel Atallah <datallah@pidgin.im>
parents: 16761
diff changeset
211
14377
c0440e16bacd [gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents: 14303
diff changeset
212 clean:
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15805
diff changeset
213 $(MAKE) -C $(PURPLE_PO_TOP) -f $(MINGW_MAKEFILE) clean
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15805
diff changeset
214 $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE) clean
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15805
diff changeset
215 $(MAKE) -C $(PURPLE_TOP) -f $(MINGW_MAKEFILE) clean
24229
ca33845455fd Some Makefile cleanups to remove generated files from Lee Roach. Fixes #6609.
Daniel Atallah <datallah@pidgin.im>
parents: 21671
diff changeset
216 $(MAKE) -C share/ca-certs -f $(MINGW_MAKEFILE) clean
29634
80dbf6f777c4 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents: 28003
diff changeset
217 rm -f $(PIDGIN_CONFIG_H) $(PIDGIN_REVISION_H) $(PIDGIN_REVISION_RAW_TXT) ./VERSION pidgin-$(PIDGIN_VERSION)*.exe pidgin-$(PIDGIN_VERSION)-win32-bin.zip $(DEBUG_SYMBOLS_DIR).zip
18667
ebbd675130b3 Patch from Jason Conti to enable `make -f Makefile.mingw docs` on the windows build. Fixes #1801.
Daniel Atallah <datallah@pidgin.im>
parents: 16761
diff changeset
218 rm -rf doc/html Doxyfile.mingw
14761
d90178571681 [gaim-migrate @ 17451]
Daniel Atallah <datallah@pidgin.im>
parents: 14638
diff changeset
219
d90178571681 [gaim-migrate @ 17451]
Daniel Atallah <datallah@pidgin.im>
parents: 14638
diff changeset
220 uninstall:
29634
80dbf6f777c4 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents: 28003
diff changeset
221 rm -rf $(PURPLE_INSTALL_PERL_DIR) $(PIDGIN_INSTALL_PLUGINS_DIR) $(PURPLE_INSTALL_PO_DIR) $(PIDGIN_INSTALL_DIR) $(STRIPPED_RELEASE_DIR) $(DEBUG_SYMBOLS_DIR)
21671
5fb405d62f39 This is a patch from Lee Roach to update the mingw "clean" makefile targets to remove some generated files and to fix a couple other issues. Fixes #3981.
Daniel Atallah <datallah@pidgin.im>
parents: 21526
diff changeset
222 rm -f ./VERSION
5931
6bd53176fdcf [gaim-migrate @ 6371]
Herman Bloggs <herman@bluedigits.com>
parents: 5387
diff changeset
223
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15805
diff changeset
224 include $(PIDGIN_COMMON_TARGETS)
28003
e9773dca1e18 Apparently the .PHONY bits are important for the revision reported in win32
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 27970
diff changeset
225

mercurial