Tue, 30 May 2017 22:39:20 -0500
Clean out Perl files and references as they're no longer used
| 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 |
|
33937
f15e97d8758e
win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33293
diff
changeset
|
9 | @echo -e " GEN\t$@" |
|
f15e97d8758e
win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33293
diff
changeset
|
10 | @sed -e 's/@VERSION@/$(PIDGIN_VERSION)/; s/@DISPLAY_VERSION@/$(DISPLAY_VERSION)/' $@.mingw > $@ |
| 14377 | 11 | |
|
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
|
12 | $(PURPLE_PURPLE_H): $(PURPLE_PURPLE_H).in |
|
33937
f15e97d8758e
win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33293
diff
changeset
|
13 | @echo -e " GEN\t$@" |
|
f15e97d8758e
win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33293
diff
changeset
|
14 | @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
|
15 | |
|
16684
2743926ce447
version.h needs to be regenerated when configure.ac changes
Daniel Atallah <datallah@pidgin.im>
parents:
16673
diff
changeset
|
16 | $(PURPLE_VERSION_H): $(PURPLE_VERSION_H).in $(PIDGIN_TREE_TOP)/configure.ac |
|
33937
f15e97d8758e
win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33293
diff
changeset
|
17 | @echo -e " GEN\t$@" |
|
f15e97d8758e
win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33293
diff
changeset
|
18 | @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
|
19 | /^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
|
20 | /^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
|
21 | /^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
|
22 | |
|
27970
1dea59c9eced
Fix windows build by adding the necessary bits to define the MTN revision
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27670
diff
changeset
|
23 | $(PIDGIN_REVISION_RAW_TXT): |
|
33937
f15e97d8758e
win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33293
diff
changeset
|
24 | @echo -e " GEN\t$@" |
| 38240 | 25 | @(hg --cwd $(PIDGIN_TREE_TOP) log -r . -T '{node}') 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
|
26 | || 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
|
27 | |
|
1dea59c9eced
Fix windows build by adding the necessary bits to define the MTN revision
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27670
diff
changeset
|
28 | $(PIDGIN_REVISION_H): $(PIDGIN_REVISION_RAW_TXT) |
|
33937
f15e97d8758e
win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33293
diff
changeset
|
29 | @echo -e " GEN\t$@" |
|
f15e97d8758e
win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33293
diff
changeset
|
30 | @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
|
31 | 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
|
32 | fi |
|
33937
f15e97d8758e
win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33293
diff
changeset
|
33 | @[ -f $@ ] || echo "#define REVISION \"unknown\"" > $@ |
|
27970
1dea59c9eced
Fix windows build by adding the necessary bits to define the MTN revision
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27670
diff
changeset
|
34 | |
|
16663
bcc4caec2e29
Fix version.h generation on mingw build.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
35 | $(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
|
36 | $(MAKE) -C $(PURPLE_TOP) -f $(MINGW_MAKEFILE) libpurple.dll |
| 14377 | 37 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
38 | $(PIDGIN_DLL) $(PIDGIN_DLL).a: |
|
33937
f15e97d8758e
win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33293
diff
changeset
|
39 | $(MAKE_at) $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE) pidgin.dll |
| 14377 | 40 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
41 | $(PIDGIN_EXE): |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
42 | $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE) pidgin.exe |
| 14377 | 43 | |
| 44 | # Installation Directories | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
45 | $(PIDGIN_INSTALL_DIR): |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
46 | mkdir -p $(PIDGIN_INSTALL_DIR) |
| 14377 | 47 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
48 | $(PIDGIN_INSTALL_PLUGINS_DIR): |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
49 | mkdir -p $(PIDGIN_INSTALL_PLUGINS_DIR) |
| 14377 | 50 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
51 | $(PURPLE_INSTALL_PO_DIR): |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
52 | mkdir -p $(PURPLE_INSTALL_PO_DIR) |
| 14377 | 53 | |
|
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
|
54 | #$(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
|
55 | # mkdir -p $(PURPLE_INSTALL_PLUGINS_DIR) |