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.
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-bookmarks.el jabber-browse.el jabber-chat.el \
9 jabber-chatbuffer.el jabber-chatstates.el jabber-compose.el \
10 jabber-conn.el jabber-core.el jabber-disco.el jabber-events.el \
11 jabber-export.el jabber-feature-neg.el jabber-festival.el \
12 jabber-ft-client.el jabber-ft-common.el jabber-ft-server.el \
13 jabber-gmail.el jabber-history.el jabber-iq.el jabber-keepalive.el \
14 jabber-keymap.el jabber-logon.el jabber-menu.el jabber-modeline.el \
15 jabber-muc-nick-completion.el jabber-muc.el jabber-newdisco.el \
16 jabber-osd.el jabber-presence.el jabber-private.el jabber-ratpoison.el \
17 jabber-register.el jabber-roster.el jabber-sasl.el jabber-sawfish.el \
18 jabber-screen.el jabber-search.el jabber-si-client.el \
19 jabber-si-common.el jabber-si-server.el jabber-socks5.el \
20 jabber-time.el jabber-truncate.el jabber-util.el \
21 jabber-vcard-avatars.el jabber-vcard.el jabber-version.el \
22 jabber-watch.el jabber-widget.el jabber-wmii.el jabber-xmessage.el \
23 jabber-xml.el jabber.el srv.el
27 compat_lisp_sources += compat/sha1.el
30 compat_lisp_sources += compat/hex-util.el
32 # automake gets confused and doesn't clean up these two compiled files.
33 CLEANFILES=sha1.elc hex-util.elc
35 dist_lisp_LISP=$(my_lisp_sources) $(compat_lisp_sources) jabber-autoloads.el jabber-ourversion.el
36 MAINTAINERCLEANFILES=jabber-autoloads.el
38 EXTRA_DIST = jabber-pkg.el.in
40 # The autoload file will cause Lisp sources to be rebuilt _twice_: the
41 # timestamp of the Lisp compilation is set _before_ the autoloads are
42 # regenerated, which means that jabber-autoload.el is once again
43 # considered new, which means that everything will be built again.
44 # Suggestions welcome.
46 # Emacs 21 requires that the file already exist and have non-zero
47 # size, so we touch it with ancient timestamp.
48 jabber-autoloads.el: $(my_lisp_sources)
49 test -s $@ || cp -f $(srcdir)/jabber-autoloads.stub $@; touch -t 197001030000 $@
50 $(EMACS) --batch --eval "(setq generated-autoload-file \"$(abs_builddir)/$@\")" -f batch-update-autoloads $(srcdir)
52 info_TEXINFOS=jabber.texi
54 dist_libexec_SCRIPTS = xmppuri.sh
58 # Package everything in a form suitable for ELPA. That is, use
59 # "jabber" instead of "emacs-jabber" as base name.
60 CLEANFILES += jabber-pkg.el
62 rm -rf emacs-jabber-$(PACKAGE_VERSION) jabber-$(PACKAGE_VERSION)
63 $(AMTAR) xzf emacs-jabber-$(PACKAGE_VERSION).tar.gz
64 mv emacs-jabber-$(PACKAGE_VERSION) jabber-$(PACKAGE_VERSION)
65 cd jabber-$(PACKAGE_VERSION) ; install-info jabber.info dir
66 sed "s/@""PACKAGE_VERSION@""/$(PACKAGE_VERSION)/" < $(srcdir)/jabber-pkg.el.in > jabber-$(PACKAGE_VERSION)/jabber-pkg.el
67 $(AMTAR) chf jabber-$(PACKAGE_VERSION).tar jabber-$(PACKAGE_VERSION)
68 rm -rf jabber-$(PACKAGE_VERSION)
69 @echo "Created jabber-$(PACKAGE_VERSION).tar"