1 # Makefile for emacs-lisp package
3 # This file is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU General Public License as published by the
5 # Free Software Foundation; either version 2, or (at your option) any
8 # This file is distributed in the hope that it will be useful, but WITHOUT
9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 # the directory where you install third-party emacs packges
17 lispdir
= $(prefix)/share
/emacs
/site-lisp
19 # the directory where you installed the elib .elc files.
20 # This is only needed if your site-start.el (or default.el) does not
21 # set up elib correctly.
22 elibdir
= $(lispdir
)/elib
24 # the directory where you install the info doc
25 infodir = $(prefix)/info
26 docdir
= $(prefix)/doc
28 ######################################################################
29 ### No changes below this line should be necessary ###
30 ######################################################################
35 # the directory where the .elc files will be installed
36 elcdir
= $(lispdir
)/$(PACKAGE
)
39 ELFLAGS
= --eval
'(setq load-path (append (list "." "$(elibdir)" "$(lispdir)") load-path))'
40 ELC
= $(EMACS
) -batch
$(ELFLAGS
) -f batch-byte-compile
42 ELFILES
= sml-compat.el sml-util.el sml-defs.el sml-move.el sml-mode.el \
44 ELCFILES
= $(ELFILES
:.el
=.elc
)
46 TEXEXTS
= *.cps
*.fns
*.kys
*.vr
*.tp
*.pg
*.log
*.aux
*.toc
*.cp
*.ky
*.fn
48 .SUFFIXES
: .elc .el .
info .ps .
dvi .texi
49 .PHONY
: elcfiles
info clean distclean default
50 .PHONY
: install_startup install_elc
install install_el install_info
64 ######################################################################
71 install_elc
: $(ELCFILES
)
73 cp
$(ELCFILES
) $(elcdir
)/
77 cp
$(ELFILES
) $(eldir
)/
79 install_info
: $(PACKAGE
).
info
81 cp
*.
info* $(infodir)/
82 -[ ! -w
$(infodir)/dir ] || install-info
$(PACKAGE
).
info $(infodir)/dir
86 if grep
$(PACKAGE
) $(lispdir
)/site-start.el
>/dev
/null
2>&1 || \
87 grep
$(PACKAGE
) $(lispdir
)/default.el
>/dev
/null
2>&1; then
:; else \
88 sed
's/@elcdir@/$(elcdir)/' \
89 $(PACKAGE
)-startup.el
>>$(lispdir
)/site-start.el
;\
92 install_dvi
: $(PACKAGE
).
dvi
96 install: install_elc install_info
# install_el
102 $(RM
) *.elc
*.
dvi *.
info* *.ps
104 ######################################################################
105 ### don't look below ###
106 ######################################################################
108 TAG
= $(shell echo v
$(VERSION
) | tr
'.' '_')
109 ftpdir
=/home
/ftp
/pub
/monnier
/$(PACKAGE
)
112 cvs tag
-F
$(TAG
) &&\
114 cvs
export -r
$(TAG
) -d
$(PACKAGE
)-$(VERSION
) elisp
/$(PACKAGE
) &&\
115 cd
$(PACKAGE
)-$(VERSION
) &&\
118 ztar
$(PACKAGE
)-$(VERSION
) &&\
119 rm -rf
$(PACKAGE
)-$(VERSION
)
120 mv
$(TMP
)/$(PACKAGE
)-$(VERSION
).
tar.gz
$(ftpdir
)/
121 ln
-sf
$(PACKAGE
)-$(VERSION
).
tar.gz
$(ftpdir
)/$(PACKAGE
).
tar.gz
124 #ident @(#)$Name$:$Id$