use cooper theme -- end of git, I am trying livemesh
[srid.dotfiles.git] / emacs / external / ljupdate / Makefile
blob19cd297aef054c2ceb83780f0d5d4e0e1484f707
1 ### Makefile --- byte-compile ljupdate and its dependencies
3 ## Configuration
5 # choose one:
6 EMACS=emacs -q --no-site-file
7 # or
8 #EMACS=xemacs -vanilla
10 ## Building
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
17 compile: $(TARGET)
19 ljupdate.el: ljupdate.in $(SOURCE)
20 rm -f ljupdate.elc
21 cat ljupdate.in | sed -e "s/##revision##/`svnversion .`/" > ljupdate.el
22 @$(EMACS) -batch -l lj-maint.el -f lj-generate-autoloads ljupdate.el .
24 ## Distribution
26 DISTFILES=$(patsubst %,ljupdate/%,$(SOURCE) lj-maint.el ljupdate.in \
27 ljupdate.el README COPYING Makefile)
29 dist: $(TARBALL)
31 $(TARBALL): $(SOURCE) lj-maint.el ljupdate.in ljupdate.el README \
32 COPYING Makefile
33 tar czvf $(TARBALL) -C .. $(DISTFILES)
35 pub: $(TARBALL)
36 darcs push -va
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
42 fetch: $(THIRD_PARTY)
44 SAVANNAH_VIEWCVS=http://cvs.savannah.gnu.org/viewvc
45 HTTP_EMACS_SITE=$(SAVANNAH_VIEWCVS)/*checkout*/http-emacs/http-emacs
47 $(THIRD_PARTY):
48 wget $(HTTP_EMACS_SITE)/$*.el
50 ## Cleaning
52 pretty:
53 @rm -f *~
55 clean:
56 @rm -f $(TARGET)
58 distclean: clean
59 @rm -f $(THIRD_PARTY) ljupdate.el $(TARBALL)
61 ## Workhorse
63 .el.elc:
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." \
68 && exit 1)
70 ### Makefile ends here