Makefile.am

Sat, 20 Mar 2010 21:04:17 +0000

author
John Bailey <rekkanoryo@rekkanoryo.org>
date
Sat, 20 Mar 2010 21:04:17 +0000
changeset 29901
dd0bc58418e5
parent 28464
db0a324d17e6
child 30285
33c8197dc6b6
permissions
-rw-r--r--

Make --disable-nls work again. Fixes #11548.

15665
950062fe0d40 make dist works now.
Luke Schierer <lschiere@pidgin.im>
parents: 15538
diff changeset
1 EXTRA_DIST = \
7960
614c56892fa5 [gaim-migrate @ 8637]
Nathan Walp <nwalp@pidgin.im>
parents: 7601
diff changeset
2 COPYRIGHT \
14568
98b24917a5b5 [gaim-migrate @ 17226]
Mark Doliner <markdoliner@pidgin.im>
parents: 14517
diff changeset
3 ChangeLog.API \
98b24917a5b5 [gaim-migrate @ 17226]
Mark Doliner <markdoliner@pidgin.im>
parents: 14517
diff changeset
4 ChangeLog.win32 \
6198
8be5d3e84233 [gaim-migrate @ 6684]
Herman Bloggs <herman@bluedigits.com>
parents: 6187
diff changeset
5 Doxyfile.in \
14568
98b24917a5b5 [gaim-migrate @ 17226]
Mark Doliner <markdoliner@pidgin.im>
parents: 14517
diff changeset
6 HACKING \
98b24917a5b5 [gaim-migrate @ 17226]
Mark Doliner <markdoliner@pidgin.im>
parents: 14517
diff changeset
7 Makefile.mingw \
98b24917a5b5 [gaim-migrate @ 17226]
Mark Doliner <markdoliner@pidgin.im>
parents: 14517
diff changeset
8 PLUGIN_HOWTO \
16237
606a402fea87 Beat some older documentation into submission.
Richard Laager <rlaager@pidgin.im>
parents: 16206
diff changeset
9 README.MTN \
14568
98b24917a5b5 [gaim-migrate @ 17226]
Mark Doliner <markdoliner@pidgin.im>
parents: 14517
diff changeset
10 README.mingw \
15966
cf2b67eaa153 Change some stuff from gaim to pidgin
Mark Doliner <markdoliner@pidgin.im>
parents: 15949
diff changeset
11 config.h.mingw \
21726
8c64499910a3 applied changes from 654b8e10e1c4bc9cb97ac7fe2d159149a695a928
Will Thompson <resiak@pidgin.im>
parents: 21495
diff changeset
12 doxy2devhelp.xsl \
24973
d021d316a53d Add a script to change casts to GObject macros. We'll run this later.
Richard Laager <rlaager@pidgin.im>
parents: 24582
diff changeset
13 fix-casts.sh \
9364
6d800038ed6c [gaim-migrate @ 10172]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 9137
diff changeset
14 gaim.pc.in \
15946
d40e8847e825 More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15878
diff changeset
15 gaim-uninstalled.pc.in \
13180
4cce5a554f53 [gaim-migrate @ 15542]
Richard Laager <rlaager@pidgin.im>
parents: 12299
diff changeset
16 intltool-extract.in \
4cce5a554f53 [gaim-migrate @ 15542]
Richard Laager <rlaager@pidgin.im>
parents: 12299
diff changeset
17 intltool-merge.in \
4cce5a554f53 [gaim-migrate @ 15542]
Richard Laager <rlaager@pidgin.im>
parents: 12299
diff changeset
18 intltool-update.in \
27945
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
19 package_revision.h \
15966
cf2b67eaa153 Change some stuff from gaim to pidgin
Mark Doliner <markdoliner@pidgin.im>
parents: 15949
diff changeset
20 pidgin.apspec.in \
cf2b67eaa153 Change some stuff from gaim to pidgin
Mark Doliner <markdoliner@pidgin.im>
parents: 15949
diff changeset
21 pidgin.spec.in \
cf2b67eaa153 Change some stuff from gaim to pidgin
Mark Doliner <markdoliner@pidgin.im>
parents: 15949
diff changeset
22 pidgin.desktop.in \
16671
b674ee610d47 The valgrind suppressions file would be useful to people developing from a
Richard Laager <rlaager@pidgin.im>
parents: 16608
diff changeset
23 po/Makefile.mingw \
b674ee610d47 The valgrind suppressions file would be useful to people developing from a
Richard Laager <rlaager@pidgin.im>
parents: 16608
diff changeset
24 valgrind-suppressions
0
7b1da07f853f [gaim-migrate @ 9]
Rob Flynn <gaim@robflynn.com>
parents:
diff changeset
25
27945
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
26 noinst_HEADERS = config.h package_revision.h
9364
6d800038ed6c [gaim-migrate @ 10172]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 9137
diff changeset
27
15946
d40e8847e825 More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15878
diff changeset
28 dist-hook: pidgin.spec
d40e8847e825 More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15878
diff changeset
29 cp pidgin.spec $(distdir)
14812
19bc309acce1 [gaim-migrate @ 17507]
Daniel Atallah <datallah@pidgin.im>
parents: 14714
diff changeset
30 rm $(distdir)/config.h
3449
4a91c7f019d5 [gaim-migrate @ 3493]
Christian Hammond <chipx86@chipx86.com>
parents: 3439
diff changeset
31
16721
1029de4b36e8 Step one of N for making 'make distcheck' happy. GtkUI.pm was renamed
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16671
diff changeset
32 distcheck-hook: libpurple/plugins/perl/common/Purple.pm pidgin/plugins/perl/common/Pidgin.pm
15435
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 14856
diff changeset
33 # cp libpurple/plugins/perl/common/Gaim.pm $(distdir)/libpurple/plugins/perl/common
6701
7e2db9273748 [gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents: 6596
diff changeset
34
24582
fbcdf75b7195 applied changes from 84461a44ffa2c1e7ab026455c5463a9763f64a9d
Richard Laager <rlaager@pidgin.im>
parents: 24525
diff changeset
35 commit-check:
fbcdf75b7195 applied changes from 84461a44ffa2c1e7ab026455c5463a9763f64a9d
Richard Laager <rlaager@pidgin.im>
parents: 24525
diff changeset
36 (cd po ; intltool-update -m 2>&1 | grep -v '^mismatched quotes.*\.py$$' | sed "s|current directory|po directory|" | grep . ; if [ $$? = 0 ] ; then exit 1 ; else exit 0 ; fi)
fbcdf75b7195 applied changes from 84461a44ffa2c1e7ab026455c5463a9763f64a9d
Richard Laager <rlaager@pidgin.im>
parents: 24525
diff changeset
37 LC_ALL=C sort -c -t/ -u po/POTFILES.in
fbcdf75b7195 applied changes from 84461a44ffa2c1e7ab026455c5463a9763f64a9d
Richard Laager <rlaager@pidgin.im>
parents: 24525
diff changeset
38 LC_ALL=C sort -c -t/ -u po/POTFILES.skip
24700
8ed981baeb92 Fix our COPYRIGHT file to be UTF-8 again and add a test to the commit-check
Richard Laager <rlaager@pidgin.im>
parents: 24582
diff changeset
39 iconv -f utf8 -t utf8 COPYRIGHT | cmp COPYRIGHT -
24582
fbcdf75b7195 applied changes from 84461a44ffa2c1e7ab026455c5463a9763f64a9d
Richard Laager <rlaager@pidgin.im>
parents: 24525
diff changeset
40
fbcdf75b7195 applied changes from 84461a44ffa2c1e7ab026455c5463a9763f64a9d
Richard Laager <rlaager@pidgin.im>
parents: 24525
diff changeset
41 version-check: commit-check
24162
5bf6f22d213c Add some more code to the version-check target to test the ChangeLog files
Richard Laager <rlaager@pidgin.im>
parents: 24160
diff changeset
42 # We don't want to release development versions.
5bf6f22d213c Add some more code to the version-check target to test the ChangeLog files
Richard Laager <rlaager@pidgin.im>
parents: 24160
diff changeset
43 test x`echo $(PACKAGE_VERSION) | grep dev` = x
5bf6f22d213c Add some more code to the version-check target to test the ChangeLog files
Richard Laager <rlaager@pidgin.im>
parents: 24160
diff changeset
44
24525
fd63a55e8c27 disapproval of revision 'ff8b50f6e7cbd8635c3e9f6bac789daeeb343d04'
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 24521
diff changeset
45 # Make sure there is a NEWS entry for this version
fd63a55e8c27 disapproval of revision 'ff8b50f6e7cbd8635c3e9f6bac789daeeb343d04'
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 24521
diff changeset
46 head NEWS | grep "^$(PACKAGE_VERSION) (`date +%m/%d/%Y`):$$" > /dev/null
fd63a55e8c27 disapproval of revision 'ff8b50f6e7cbd8635c3e9f6bac789daeeb343d04'
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 24521
diff changeset
47
fd63a55e8c27 disapproval of revision 'ff8b50f6e7cbd8635c3e9f6bac789daeeb343d04'
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 24521
diff changeset
48 # Ensure NEWS has no spaces at the start of a line.
fd63a55e8c27 disapproval of revision 'ff8b50f6e7cbd8635c3e9f6bac789daeeb343d04'
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 24521
diff changeset
49 # Using spaces instead of tabs there is a common mistake.
fd63a55e8c27 disapproval of revision 'ff8b50f6e7cbd8635c3e9f6bac789daeeb343d04'
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 24521
diff changeset
50 test x`grep "^ " NEWS` = x
fd63a55e8c27 disapproval of revision 'ff8b50f6e7cbd8635c3e9f6bac789daeeb343d04'
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 24521
diff changeset
51
24162
5bf6f22d213c Add some more code to the version-check target to test the ChangeLog files
Richard Laager <rlaager@pidgin.im>
parents: 24160
diff changeset
52 # When doing a new minor (or major) release (X.Y.0), there must be a section in
5bf6f22d213c Add some more code to the version-check target to test the ChangeLog files
Richard Laager <rlaager@pidgin.im>
parents: 24160
diff changeset
53 # ChangeLog.API.
5bf6f22d213c Add some more code to the version-check target to test the ChangeLog files
Richard Laager <rlaager@pidgin.im>
parents: 24160
diff changeset
54 echo $(PACKAGE_VERSION) | grep -v "^[0-9]\+\.[0-9]\+\.0$$" >/dev/null || head ChangeLog.API | grep "^version $(PACKAGE_VERSION) (`date +%m/%d/%Y`):$$" >/dev/null
5bf6f22d213c Add some more code to the version-check target to test the ChangeLog files
Richard Laager <rlaager@pidgin.im>
parents: 24160
diff changeset
55
5bf6f22d213c Add some more code to the version-check target to test the ChangeLog files
Richard Laager <rlaager@pidgin.im>
parents: 24160
diff changeset
56 # For all releases, check the ChangeLogs.
5bf6f22d213c Add some more code to the version-check target to test the ChangeLog files
Richard Laager <rlaager@pidgin.im>
parents: 24160
diff changeset
57 head ChangeLog | grep "^version $(PACKAGE_VERSION) (`date +%m/%d/%Y`):$$" >/dev/null
5bf6f22d213c Add some more code to the version-check target to test the ChangeLog files
Richard Laager <rlaager@pidgin.im>
parents: 24160
diff changeset
58 head ChangeLog.win32 | grep "^version $(PACKAGE_VERSION) (`date +%m/%d/%Y`):$$" >/dev/null
24465
0fcdc2735014 po/ChangeLog doesn't include dates
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 24460
diff changeset
59 head po/ChangeLog | grep "^version $(PACKAGE_VERSION)$$" >/dev/null
24162
5bf6f22d213c Add some more code to the version-check target to test the ChangeLog files
Richard Laager <rlaager@pidgin.im>
parents: 24160
diff changeset
60
5bf6f22d213c Add some more code to the version-check target to test the ChangeLog files
Richard Laager <rlaager@pidgin.im>
parents: 24160
diff changeset
61 # Ensure we're working from a tag...
24159
a2e69221bd14 Verify monotone tag and workspace version on 'make packages'.
Ethan Blanton <elb@pidgin.im>
parents: 24158
diff changeset
62 test x`mtn automate select t:v$(PACKAGE_VERSION)` = x`mtn automate get_base_revision_id`
24162
5bf6f22d213c Add some more code to the version-check target to test the ChangeLog files
Richard Laager <rlaager@pidgin.im>
parents: 24160
diff changeset
63 # ... and have no changes in the working copy.
24811
19c97edbbdbd Fix an unintended error in version-check when you have uncommitted changes.
Richard Laager <rlaager@pidgin.im>
parents: 24700
diff changeset
64 test "x`mtn diff | grep -v '^#'`" = x
24159
a2e69221bd14 Verify monotone tag and workspace version on 'make packages'.
Ethan Blanton <elb@pidgin.im>
parents: 24158
diff changeset
65
24454
829b5b31b312 Run the (relatively quick) version check before the (painfully long)
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 24162
diff changeset
66 release: version-check distcheck packages
24158
9af58ab23276 Add release-time candy 'make release' and 'make packages' to the Makefile.
Ethan Blanton <elb@pidgin.im>
parents: 22723
diff changeset
67
24454
829b5b31b312 Run the (relatively quick) version check before the (painfully long)
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 24162
diff changeset
68 packages:
24158
9af58ab23276 Add release-time candy 'make release' and 'make packages' to the Makefile.
Ethan Blanton <elb@pidgin.im>
parents: 22723
diff changeset
69 gpg -ab pidgin-$(PACKAGE_VERSION).tar.gz
9af58ab23276 Add release-time candy 'make release' and 'make packages' to the Makefile.
Ethan Blanton <elb@pidgin.im>
parents: 22723
diff changeset
70 gpg -ab pidgin-$(PACKAGE_VERSION).tar.bz2
9af58ab23276 Add release-time candy 'make release' and 'make packages' to the Makefile.
Ethan Blanton <elb@pidgin.im>
parents: 22723
diff changeset
71 gpg --verify pidgin-$(PACKAGE_VERSION).tar.gz.asc pidgin-$(PACKAGE_VERSION).tar.gz
9af58ab23276 Add release-time candy 'make release' and 'make packages' to the Makefile.
Ethan Blanton <elb@pidgin.im>
parents: 22723
diff changeset
72 gpg --verify pidgin-$(PACKAGE_VERSION).tar.bz2.asc pidgin-$(PACKAGE_VERSION).tar.bz2
9af58ab23276 Add release-time candy 'make release' and 'make packages' to the Makefile.
Ethan Blanton <elb@pidgin.im>
parents: 22723
diff changeset
73
29901
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28464
diff changeset
74 if INSTALL_I18N
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28464
diff changeset
75 PO_DIR=po
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28464
diff changeset
76 DESKTOP_FILE=pidgin.desktop
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28464
diff changeset
77
21973
6989d49da5d2 Don't install pidgin.desktop when not installing Pidgin
Sean Egan <seanegan@pidgin.im>
parents: 21922
diff changeset
78 if ENABLE_GTK
5253
17806e81375c [gaim-migrate @ 5625]
Christian Hammond <chipx86@chipx86.com>
parents: 4564
diff changeset
79 appsdir = $(datadir)/applications
15538
ae12124b524a rename the .desktop file
Nathan Walp <nwalp@pidgin.im>
parents: 15462
diff changeset
80 apps_in_files = pidgin.desktop.in
13180
4cce5a554f53 [gaim-migrate @ 15542]
Richard Laager <rlaager@pidgin.im>
parents: 12299
diff changeset
81 apps_DATA = $(apps_in_files:.desktop.in=.desktop)
4cce5a554f53 [gaim-migrate @ 15542]
Richard Laager <rlaager@pidgin.im>
parents: 12299
diff changeset
82 @INTLTOOL_DESKTOP_RULE@
15435
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 14856
diff changeset
83 GTK_DIR=pidgin
29901
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28464
diff changeset
84 endif #ENABLE_GTK
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28464
diff changeset
85
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28464
diff changeset
86 endif #INSTALL_I18N
14253
b63ebf84c42b This is a hand-crafted commit to migrate across subversion revisions
Ethan Blanton <elb@pidgin.im>
parents: 13491
diff changeset
87
b63ebf84c42b This is a hand-crafted commit to migrate across subversion revisions
Ethan Blanton <elb@pidgin.im>
parents: 13491
diff changeset
88 if ENABLE_GNT
15878
f52832b611fe renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents: 15805
diff changeset
89 GNT_DIR=finch
14253
b63ebf84c42b This is a hand-crafted commit to migrate across subversion revisions
Ethan Blanton <elb@pidgin.im>
parents: 13491
diff changeset
90 endif
b63ebf84c42b This is a hand-crafted commit to migrate across subversion revisions
Ethan Blanton <elb@pidgin.im>
parents: 13491
diff changeset
91
27945
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
92 # This is phony, so that we always try to rebuild it. If it succeeds
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
93 # in calculating changes, it produces its target; otherwise, its
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
94 # target does not exist.
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
95 .PHONY: package_revision_raw.txt
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
96 # if both attempts fail, then we need to remove the empty file that >
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
97 # creates, and also make sure that the shell command exits
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
98 # successfully; the rm -f ensures both
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
99 package_revision_raw.txt:
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
100 REAL_BLDDIR=$$PWD/$(top_builddir); \
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
101 (cd $(srcdir) && $$REAL_BLDDIR/mtn --root=. automate get_base_revision_id) 2>/dev/null >$@ \
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
102 || (cd $(srcdir) && mtn --root=. automate get_base_revision_id) 2>/dev/null >$@ \
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
103 || rm -f $@
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
104 package_revision.h: package_revision_raw.txt
28464
db0a324d17e6 Make Makefile.am a bit more portable
Ethan Blanton <elb@pidgin.im>
parents: 27945
diff changeset
105 if test -f $<; then \
db0a324d17e6 Make Makefile.am a bit more portable
Ethan Blanton <elb@pidgin.im>
parents: 27945
diff changeset
106 echo "#define REVISION \"`cat $<`\"" > $@; \
27945
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
107 fi
28464
db0a324d17e6 Make Makefile.am a bit more portable
Ethan Blanton <elb@pidgin.im>
parents: 27945
diff changeset
108 if test ! -f $@ -a -f $(srcdir)/$@; then \
27945
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
109 cp $(srcdir)/$@ $@; \
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
110 fi
28464
db0a324d17e6 Make Makefile.am a bit more portable
Ethan Blanton <elb@pidgin.im>
parents: 27945
diff changeset
111 test -f $@ || echo "#define REVISION \"unknown\"" > $@
27945
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
112
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
113 # This is a magic directive copy-and-pasted, then modified, from the
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
114 # automake 1.9 manual, section 13.4, "Checking the distribution".
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
115 # Normally, 'distcheck' does a clean build, and then afterwards runs
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
116 # 'distclean', and 'distclean' is supposed to remove everything that
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
117 # the build created. However, we have some targets (package_revision.txt)
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
118 # that we distribute, but then always attempt to rebuild optimistically, and
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
119 # then if that fails fall back on the distributed versions. This
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
120 # means that 'distclean' should _not_ remove those files, since they
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
121 # are distributed, yet building the package will generate those files,
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
122 # thus automake thinks that 'distclean' _should_ remove those files,
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
123 # and 'distcheck' gets cranky if we don't. So basically what this
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
124 # line does is tell 'distcheck' to shut up and ignore those two files.
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
125 distcleancheck_listfiles = find . -type f -a ! -name package_revision.h
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
126
93ece0c6a9ad Add the MTN revision in the Pidgin About and finch --version dialogs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 25911
diff changeset
127 SUBDIRS = . libpurple doc $(GNT_DIR) $(GTK_DIR) m4macros $(PO_DIR) share/ca-certs share/sounds
4554
09f005a2628b [gaim-migrate @ 4834]
Christian Hammond <chipx86@chipx86.com>
parents: 3726
diff changeset
128
6596
d321d1757a34 [gaim-migrate @ 7120]
Christian Hammond <chipx86@chipx86.com>
parents: 6411
diff changeset
129 docs: Doxyfile
10925
dc0bfebfef15 [gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents: 10362
diff changeset
130 if HAVE_DOXYGEN
dc0bfebfef15 [gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents: 10362
diff changeset
131 @echo "Running doxygen..."
4554
09f005a2628b [gaim-migrate @ 4834]
Christian Hammond <chipx86@chipx86.com>
parents: 3726
diff changeset
132 @doxygen
20987
89f5ef90c79e Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents: 18292
diff changeset
133 if HAVE_XSLTPROC
89f5ef90c79e Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents: 18292
diff changeset
134 @echo "Generating devhelp index..."
21922
0692146e9809 Ari noticed that `make docs` no longer functions properly when the build
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 21726
diff changeset
135 @xsltproc $(top_srcdir)/doxy2devhelp.xsl doc/xml/index.xml > doc/html/pidgin.devhelp
20987
89f5ef90c79e Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents: 18292
diff changeset
136 @echo "(Symlink doc/html to ~/.local/share/gtk-doc/html/pidgin to make devhelp see the documentation)"
89f5ef90c79e Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents: 18292
diff changeset
137 else
89f5ef90c79e Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents: 18292
diff changeset
138 @echo "Not generating devhelp index: xsltproc was not found by configure"
89f5ef90c79e Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents: 18292
diff changeset
139 endif
10925
dc0bfebfef15 [gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents: 10362
diff changeset
140 else
25589
5633a8068258 I like this message better.
Etan Reisner <deryni@pidgin.im>
parents: 24811
diff changeset
141 @echo "doxygen was not found during configure. Unable to build documentation."
10925
dc0bfebfef15 [gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents: 10362
diff changeset
142 @echo;
dc0bfebfef15 [gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents: 10362
diff changeset
143 endif
11862
5d4bc6d54688 [gaim-migrate @ 14153]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 11147
diff changeset
144
5d4bc6d54688 [gaim-migrate @ 14153]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 11147
diff changeset
145 # perl's MakeMaker uninstall foo doesn't work well with DESTDIR set, which
5d4bc6d54688 [gaim-migrate @ 14153]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 11147
diff changeset
146 # breaks "make distcheck" unless we ignore perl things
5d4bc6d54688 [gaim-migrate @ 14153]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 11147
diff changeset
147
5d4bc6d54688 [gaim-migrate @ 14153]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 11147
diff changeset
148 distuninstallcheck_listfiles = \
15949
222f6fb6fd99 One step towards passing "make distcheck"
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15946
diff changeset
149 find . -type f -print | grep -v perl | grep -v Purple.3pm
12299
1748fd6f90a6 [gaim-migrate @ 14603]
Tim Ringenbach <marv@pidgin.im>
parents: 11883
diff changeset
150
29901
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28464
diff changeset
151 DISTCLEANFILES= $(DESKTOP_FILE) libpurple/gconf/purple.schemas intltool-extract \
14831
9b9d78696326 [gaim-migrate @ 17527]
Luke Schierer <lschiere@pidgin.im>
parents: 14826
diff changeset
152 intltool-merge intltool-update

mercurial