annotate lisp/url/Makefile @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children ac2d302a0011
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 # Temp file to use to build .elc files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 ELISP-TO-COMPILE = /tmp/elc-url-${USER}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 # what emacs is called on your system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 EMACS = xemacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 # where the Info file should go
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 INFODIR = .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 # where the lisp files will be installed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 LISPDIR = $$HOME/lisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 # Change this to be where your .emacs file is stored
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 DOTEMACS = $$HOME/.emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 # Change this to be how to convert texinfo files into info files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 # examples:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 # MAKEINFO = $(EMACS) -batch -q -f batch-texinfo-format
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 # MAKEINFO = makeinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 MAKEINFO = makeinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 # How to make a directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 # need a -p if you want to make the parents!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 MKDIR = mkdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 # Various other stuff used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 RM = rm -f
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 CP = cp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ############## no user servicable parts beyond this point ###################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 MAJOR=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 MINOR=0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 # Have to preload a few things to get a nice clean compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 DEPS = -l ./url-vars.el -l ./docomp.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 # compile with noninteractive and relatively clean environment
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 BATCHFLAGS = -batch -q -no-site-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 # What type of version this is - beta or normal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 VTYPE = p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 DIRNAME = url
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 .SUFFIXES: .elc .el .el,v
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 .el.elc:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $<
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 OBJECTS = \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 url-file.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 url-nfs.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 url-cookie.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 url-irc.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 url-parse.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 url-gopher.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 url-hash.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 url-http.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 url-mail.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 url-misc.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 url-news.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 url-pgp.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 url-vars.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 url-wais.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 urlauth.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 mm.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 md5.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 ssl.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 base64.elc \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 url.elc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 SOURCES = \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 docomp.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 url-nfs.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 url-sysdp.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 url-file.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 url-cookie.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 url-parse.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 url-irc.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 url-gopher.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 url-hash.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 url-http.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 url-mail.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 url-misc.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 url-news.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 url-pgp.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 url-vars.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 url-wais.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 urlauth.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 mm.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 md5.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 ssl.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 base64.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 url.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 DISTFILES = $(SOURCES) descrip.mms
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 url: docomp.el $(OBJECTS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 @echo Build of url complete...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 clean:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 rm -f $(OBJECTS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 ChangeLog:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 /usr/local/bin/rcs2log -h cs.indiana.edu -i 0 >| ChangeLog
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 version: ChangeLog url.info
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 @echo -n "Creating new version "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 @mkdir $(DIRNAME)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 @./incvers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 @co -q $(DISTFILES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 @rcs -q -s$(VTYPE)$(MAJOR)-$(MINOR)-`cat .version` url-vars.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 @rcs -q -s$(VTYPE)$(MAJOR)-$(MINOR)-`cat .version` url.texi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 @co -q -kv $(SOURCES) docomp.el url.texi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 @mv $(DISTFILES) $(DIRNAME)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 @cp Makefile $(DIRNAME)/Makefile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 @touch $(DIRNAME)/THIS-IS-VERSION-$(MAJOR).$(MINOR).`cat .version`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 @mv ChangeLog url.info* $(DIRNAME)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 @echo -n "$(MAJOR).$(MINOR)."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 @echo `cat .version`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 @tar czf url-$(MAJOR).$(MINOR).`cat .version`.tar.gz $(DIRNAME)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 @rcs -nv$(MAJOR)-$(MINOR)-`cat .version`: $(SOURCES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 @rm -fr $(DIRNAME)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 url.html: url.texi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 @texi2html -menu -split_node -verbose url.texi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 url.info: url.texi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 @$(MAKEINFO) url.texi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 url.dvi: url.texi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 @tex url.texi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 @texindex url.cp url.fn url.ky url.pg url.tp url.vr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 @tex url.texi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 @rm -f url.cp url.fn url.ky url.pg url.tp url.vr \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 url.cps url.fns url.kys url.pgs url.tps url.vrs \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 url.log url.toc url.aux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 install: url
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 @echo Installing in $(LISPDIR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 if [ ! -d $(LISPDIR) ] ; then $(MKDIR) $(LISPDIR) ; fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 (cd $(LISPDIR) ; $(RM) $(SOURCES) $(OBJECTS) url-sysdp.el*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 $(CP) $(SOURCES) $(OBJECTS) $(LISPDIR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 if [ ! -d $(INFODIR) ] ; then $(MKDIR) $(INFODIR) ; fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 $(CP) url.info* $(INFODIR)