Merge remote-tracking branch 'sourceforge/master'
[emacs-jabber.git] / Makefile.am
blob4a9767fb42a3a1ad5970db59152fcfccec5023b8
1 ACLOCAL_AMFLAGS = -I m4
2 # The following line needs to be here since automake 1.4 doesn't look
3 # for options in configure.ac.
4 AUTOMAKE_OPTIONS = 1.9
6 my_lisp_sources=fsm.el jabber-activity.el jabber-ahc-presence.el        \
7 jabber-ahc.el jabber-alert.el jabber-autoaway.el jabber-avatar.el       \
8 jabber-awesome.el jabber-ping.el jabber-libnotify.el jabber-console.el  \
9 jabber-bookmarks.el jabber-browse.el jabber-chat.el                     \
10 jabber-chatbuffer.el jabber-chatstates.el jabber-compose.el             \
11 jabber-conn.el jabber-core.el jabber-disco.el jabber-events.el          \
12 jabber-export.el jabber-feature-neg.el jabber-festival.el               \
13 jabber-ft-client.el jabber-ft-common.el jabber-ft-server.el             \
14 jabber-gmail.el jabber-history.el jabber-iq.el jabber-keepalive.el      \
15 jabber-keymap.el jabber-logon.el jabber-menu.el jabber-modeline.el      \
16 jabber-muc-nick-completion.el jabber-muc.el jabber-newdisco.el          \
17 jabber-osd.el jabber-presence.el jabber-private.el jabber-ratpoison.el  \
18 jabber-register.el jabber-roster.el jabber-sasl.el jabber-sawfish.el    \
19 jabber-screen.el jabber-search.el jabber-si-client.el                   \
20 jabber-si-common.el jabber-si-server.el jabber-socks5.el                \
21 jabber-time.el jabber-truncate.el jabber-util.el                        \
22 jabber-vcard-avatars.el jabber-vcard.el jabber-version.el               \
23 jabber-watch.el jabber-widget.el jabber-wmii.el jabber-xmessage.el      \
24 jabber-muc-nick-coloring.el                                             \
25 jabber-xml.el jabber.el srv.el
27 compat_lisp_sources =
28 if USE_OUR_SHA1
29 compat_lisp_sources += compat/sha1.el
30 endif
31 if USE_OUR_HEX_UTIL
32 compat_lisp_sources += compat/hex-util.el
33 endif
34 if USE_OUR_HEXRGB
35 compat_lisp_sources += compat/hexrgb.el
36 endif
37 # automake gets confused and doesn't clean up these two compiled files.
38 CLEANFILES=sha1.elc hex-util.elc hexrgb.elc
40 dist_lisp_LISP=$(my_lisp_sources) $(compat_lisp_sources) jabber-autoloads.el jabber-ourversion.el
41 MAINTAINERCLEANFILES=jabber-autoloads.el
43 EXTRA_DIST = jabber-pkg.el.in
45 # The autoload file will cause Lisp sources to be rebuilt _twice_: the
46 # timestamp of the Lisp compilation is set _before_ the autoloads are
47 # regenerated, which means that jabber-autoload.el is once again
48 # considered new, which means that everything will be built again.
49 # Suggestions welcome.
51 # Emacs 21 requires that the file already exist and have non-zero
52 # size, so we touch it with ancient timestamp.
53 jabber-autoloads.el: $(my_lisp_sources)
54         test -s $@ || cp -f $(srcdir)/jabber-autoloads.stub $@; touch -t 197001030000 $@
55         $(EMACS) --batch --eval "(setq generated-autoload-file \"$(abs_builddir)/$@\")" -f batch-update-autoloads $(srcdir)
57 info_TEXINFOS=jabber.texi
59 dist_libexec_SCRIPTS = emacs-jabber-uri-handler
61 SUBDIRS = . tests
62 if USE_GCONFTOOL
63 if GCONF_SCHEMAS_INSTALL
64 SUBDIRS += gconf
65 endif
66 endif
68 # Package everything in a form suitable for ELPA.  That is, use
69 # "jabber" instead of "emacs-jabber" as base name.
70 CLEANFILES += jabber-pkg.el
71 elpa: dist
72         rm -rf emacs-jabber-$(PACKAGE_VERSION) jabber-$(PACKAGE_VERSION)
73         $(AMTAR) xzf emacs-jabber-$(PACKAGE_VERSION).tar.gz
74         mv emacs-jabber-$(PACKAGE_VERSION) jabber-$(PACKAGE_VERSION)
75         cd jabber-$(PACKAGE_VERSION) ; install-info jabber.info dir
76         sed "s/@""PACKAGE_VERSION@""/$(PACKAGE_VERSION)/" < $(srcdir)/jabber-pkg.el.in > jabber-$(PACKAGE_VERSION)/jabber-pkg.el
77         mv jabber-$(PACKAGE_VERSION)/compat/*.el jabber-$(PACKAGE_VERSION)/
78         $(AMTAR) chf jabber-$(PACKAGE_VERSION).tar jabber-$(PACKAGE_VERSION)
79         rm -rf jabber-$(PACKAGE_VERSION)
80         @echo "Created jabber-$(PACKAGE_VERSION).tar"