1 ### Makefile --- byte-compile ljupdate and its dependencies
6 EMACS
=emacs
-q
--no-site-file
12 SOURCE
=lj-acct.el lj-compat.el lj-compose.el lj-custom.el lj-edit.el \
13 lj-fill.el lj-login.el lj-pcomplete.el lj-protocol.el lj-util.el
14 TARGET
=$(patsubst %.el
,%.elc
, $(SOURCE
) ljupdate.el
)
15 TARBALL
=ljupdate.
tar.gz
19 ljupdate.el
: ljupdate.in
$(SOURCE
)
21 cat ljupdate.in | sed
-e
"s/##revision##/`svnversion .`/" > ljupdate.el
22 @
$(EMACS
) -batch
-l lj-maint.el
-f lj-generate-autoloads ljupdate.el .
26 DISTFILES
=$(patsubst %,ljupdate
/%,$(SOURCE
) lj-maint.el ljupdate.in \
27 ljupdate.el README COPYING Makefile
)
31 $(TARBALL
): $(SOURCE
) lj-maint.el ljupdate.in ljupdate.el README \
33 tar czvf
$(TARBALL
) -C ..
$(DISTFILES
)
37 scp
$(TARBALL
) rakim
:/web
/edward.oconnor.cx
/html
/code
/ljupdate
39 ## Support for downloading required libraries
41 THIRD_PARTY
=http-cookies.el http-get.el http-post.el
44 SAVANNAH_VIEWCVS
=http
://cvs.savannah.gnu.org
/viewvc
45 HTTP_EMACS_SITE
=$(SAVANNAH_VIEWCVS
)/*checkout
*/http-emacs
/http-emacs
48 wget
$(HTTP_EMACS_SITE
)/$*.el
59 @
rm -f
$(THIRD_PARTY
) ljupdate.el
$(TARBALL
)
64 @
$(EMACS
) -batch
-l lj-maint.el
-f batch-byte-compile
$*.el \
65 ||
(echo
"Perhaps you should specifcy LOAD_PATH to make?" \
66 "(e.g. \"gmake LOAD_PATH=~/elisp\".)" \
67 && echo
"Please see README for compilation instructions." \
70 ### Makefile ends here