Wed, 13 Jun 2012 19:30:27 -0400
Merge 5b5516d9a5dbbd6e534eba231284bbd1c4c16f57 to fix package_version.h
| 14377 | 1 | # |
| 2 | # targets.mak | |
| 3 | # | |
| 4 | # This file should be included at the end of all Makefile.mingw | |
| 5 | # files for better handling of cross directory dependencies | |
| 6 | # | |
| 7 | ||
|
20289
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16684
diff
changeset
|
8 | $(PIDGIN_CONFIG_H): $(PIDGIN_CONFIG_H).mingw $(PIDGIN_TREE_TOP)/configure.ac |
|
21467
cf96ffcf7f99
Allow win32 builds to define EXTRAVERSION in local.mak to do the equivalent
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
21466
diff
changeset
|
9 | sed -e 's/@VERSION@/$(PIDGIN_VERSION)/; s/@DISPLAY_VERSION@/$(DISPLAY_VERSION)/' $@.mingw > $@ |
| 14377 | 10 | |
|
21466
491faf2e1fe4
Make purple.h a generated file so plugins can just include this and never
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20289
diff
changeset
|
11 | $(PURPLE_PURPLE_H): $(PURPLE_PURPLE_H).in |
|
21632
59fa3895076e
Fix purple.h generation on win32. Thanks to Kevin for noticing.
Daniel Atallah <datallah@pidgin.im>
parents:
21467
diff
changeset
|
12 | sed -e 's/@PLUGINS_DEFINE@/#define PURPLE_PLUGINS 1/' $@.in > $@ |
|
21466
491faf2e1fe4
Make purple.h a generated file so plugins can just include this and never
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20289
diff
changeset
|
13 | |
|
16684
2743926ce447
version.h needs to be regenerated when configure.ac changes
Daniel Atallah <datallah@pidgin.im>
parents:
16673
diff
changeset
|
14 | $(PURPLE_VERSION_H): $(PURPLE_VERSION_H).in $(PIDGIN_TREE_TOP)/configure.ac |
|
16663
bcc4caec2e29
Fix version.h generation on mingw build.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
15 | awk 'BEGIN {FS="[\\(\\)\\[\\]]"} \ |
|
22813
def7382231ff
Patch from dharding to allow pidgin to be built on win32 using MSYS 1.0.10 which includes a version of sed that doesn't handle in-place replacement. Fixes #5527.
Daniel Atallah <datallah@pidgin.im>
parents:
21632
diff
changeset
|
16 | /^m4_define..purple_major_version/ {system("sed -e s/@PURPLE_MAJOR_VERSION@/"$$5"/ $@.in > $@");} \ |
|
24841
e80889e8f1cc
I'm not sure how this ever worked...
Daniel Atallah <datallah@pidgin.im>
parents:
22813
diff
changeset
|
17 | /^m4_define..purple_minor_version/ {system("sed -e s/@PURPLE_MINOR_VERSION@/"$$5"/ $@ > $@.tmp && mv $@.tmp $@");} \ |
|
e80889e8f1cc
I'm not sure how this ever worked...
Daniel Atallah <datallah@pidgin.im>
parents:
22813
diff
changeset
|
18 | /^m4_define..purple_micro_version/ {system("sed -e s/@PURPLE_MICRO_VERSION@/"$$5"/ $@ > $@.tmp && mv $@.tmp $@"); exit}' $(PIDGIN_TREE_TOP)/configure.ac |
|
16663
bcc4caec2e29
Fix version.h generation on mingw build.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
19 | |
|
27970
1dea59c9eced
Fix windows build by adding the necessary bits to define the MTN revision
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27670
diff
changeset
|
20 | $(PIDGIN_REVISION_RAW_TXT): |
|
33034
f2bcfef842d2
Update package_version.h to work with hg
Hg Conversion <devel@pidgin.im>
parents:
27970
diff
changeset
|
21 | (hg --cwd $(PIDGIN_TREE_TOP) id -i --debug) 2>/dev/null >$@ \ |
|
27970
1dea59c9eced
Fix windows build by adding the necessary bits to define the MTN revision
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27670
diff
changeset
|
22 | || rm -f $@ |
|
1dea59c9eced
Fix windows build by adding the necessary bits to define the MTN revision
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27670
diff
changeset
|
23 | |
|
1dea59c9eced
Fix windows build by adding the necessary bits to define the MTN revision
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27670
diff
changeset
|
24 | $(PIDGIN_REVISION_H): $(PIDGIN_REVISION_RAW_TXT) |
|
1dea59c9eced
Fix windows build by adding the necessary bits to define the MTN revision
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27670
diff
changeset
|
25 | if [ -f $< ]; then \ |
|
29360
8a1aed2f1161
Fix cross-compile on OSX, working around an apparently crippled sed.
Daniel Atallah <datallah@pidgin.im>
parents:
27970
diff
changeset
|
26 | sed 's/^\(.\{1,\}\)$$/#define REVISION "\1"/' $< > $@; \ |
|
27970
1dea59c9eced
Fix windows build by adding the necessary bits to define the MTN revision
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27670
diff
changeset
|
27 | fi |
|
1dea59c9eced
Fix windows build by adding the necessary bits to define the MTN revision
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27670
diff
changeset
|
28 | [ -f $@ ] || echo "#define REVISION \"unknown\"" > $@ |
|
1dea59c9eced
Fix windows build by adding the necessary bits to define the MTN revision
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27670
diff
changeset
|
29 | |
|
16663
bcc4caec2e29
Fix version.h generation on mingw build.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
30 | $(PURPLE_DLL) $(PURPLE_DLL).a: $(PURPLE_VERSION_H) |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
31 | $(MAKE) -C $(PURPLE_TOP) -f $(MINGW_MAKEFILE) libpurple.dll |
| 14377 | 32 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
33 | $(PURPLE_PERL_DLL) $(PURPLE_PERL_DLL).a: |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
34 | $(MAKE) -C $(PURPLE_PERL_TOP) -f $(MINGW_MAKEFILE) perl.dll |
|
14509
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
35 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
36 | $(PIDGIN_DLL) $(PIDGIN_DLL).a: |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
37 | $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE) pidgin.dll |
| 14377 | 38 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
39 | $(PIDGIN_EXE): |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
40 | $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE) pidgin.exe |
| 14377 | 41 | |
| 42 | # Installation Directories | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
43 | $(PIDGIN_INSTALL_DIR): |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
44 | mkdir -p $(PIDGIN_INSTALL_DIR) |
| 14377 | 45 | |
| 27670 | 46 | $(PIDGIN_INSTALL_PERL_DIR): |
|
27665
00196a586c45
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents:
24841
diff
changeset
|
47 | mkdir -p $(PIDGIN_INSTALL_PERL_DIR) |
| 14377 | 48 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
49 | $(PIDGIN_INSTALL_PLUGINS_DIR): |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
50 | mkdir -p $(PIDGIN_INSTALL_PLUGINS_DIR) |
| 14377 | 51 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
52 | $(PURPLE_INSTALL_PO_DIR): |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
53 | mkdir -p $(PURPLE_INSTALL_PO_DIR) |
| 14377 | 54 | |
|
27665
00196a586c45
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents:
24841
diff
changeset
|
55 | #$(PURPLE_INSTALL_PLUGINS_DIR): |
|
00196a586c45
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents:
24841
diff
changeset
|
56 | # mkdir -p $(PURPLE_INSTALL_PLUGINS_DIR) |
|
00196a586c45
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents:
24841
diff
changeset
|
57 | |
|
00196a586c45
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents:
24841
diff
changeset
|
58 | #$(PURPLE_INSTALL_PERL_DIR): |
|
00196a586c45
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents:
24841
diff
changeset
|
59 | # mkdir -p $(PURPLE_INSTALL_PERL_DIR) |