SCM Repository
Annotation of /sml/trunk/sml-mode/Makefile
Parent Directory
|
Revision Log
Revision 378 - (view) (download)
1 : | monnier | 319 | # Makefile for emacs-lisp package |
2 : | monnier | 300 | |
3 : | monnier | 319 | # 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 | ||
6 : | # later version. | ||
7 : | monnier | 300 | |
8 : | monnier | 319 | # 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 | ||
11 : | # for more details. | ||
12 : | monnier | 300 | |
13 : | monnier | 319 | EMACS = emacs |
14 : | prefix = /usr/local | ||
15 : | |||
16 : | # the directory where you install third-party emacs packges | ||
17 : | lispdir = $(prefix)/share/emacs/site-lisp | ||
18 : | |||
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 | ||
23 : | |||
24 : | # the directory where you install the info doc | ||
25 : | infodir = $(prefix)/info | ||
26 : | docdir = $(prefix)/doc | ||
27 : | |||
28 : | ###################################################################### | ||
29 : | ### No changes below this line should be necessary ### | ||
30 : | ###################################################################### | ||
31 : | |||
32 : | |||
33 : | PACKAGE = sml-mode | ||
34 : | |||
35 : | # the directory where the .elc files will be installed | ||
36 : | elcdir = $(lispdir)/$(PACKAGE) | ||
37 : | eldir = $(elcdir) | ||
38 : | |||
39 : | ELFLAGS = --eval '(setq load-path (append (list "." "$(elibdir)" "$(lispdir)") load-path))' | ||
40 : | ELC = $(EMACS) -batch $(ELFLAGS) -f batch-byte-compile | ||
41 : | |||
42 : | ELFILES = sml-compat.el sml-util.el sml-defs.el sml-move.el sml-mode.el \ | ||
43 : | monnier | 333 | sml-proc.el |
44 : | monnier | 319 | ELCFILES = $(ELFILES:.el=.elc) |
45 : | |||
46 : | TEXEXTS = *.cps *.fns *.kys *.vr *.tp *.pg *.log *.aux *.toc *.cp *.ky *.fn | ||
47 : | |||
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 | ||
51 : | |||
52 : | .el.elc: | ||
53 : | $(ELC) $< | ||
54 : | |||
55 : | .texi.info: | ||
56 : | makeinfo $< | ||
57 : | |||
58 : | .texi.dvi: | ||
59 : | texi2dvi $< | ||
60 : | |||
61 : | .dvi.ps: | ||
62 : | dvips -f $< >$@ | ||
63 : | |||
64 : | ###################################################################### | ||
65 : | |||
66 : | default: elcfiles | ||
67 : | |||
68 : | elcfiles: $(ELCFILES) | ||
69 : | info: $(PACKAGE).info | ||
70 : | |||
71 : | install_elc: $(ELCFILES) | ||
72 : | mkdir -p $(elcdir) | ||
73 : | cp $(ELCFILES) $(elcdir)/ | ||
74 : | |||
75 : | install_el: | ||
76 : | mkdir -p $(eldir) | ||
77 : | cp $(ELFILES) $(eldir)/ | ||
78 : | |||
79 : | install_info: $(PACKAGE).info | ||
80 : | mkdir -p $(infodir) | ||
81 : | cp *.info* $(infodir)/ | ||
82 : | -[ ! -w $(infodir)/dir ] || install-info $(PACKAGE).info $(infodir)/dir | ||
83 : | |||
84 : | install_startup: | ||
85 : | mkdir -p $(lispdir) | ||
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 ;\ | ||
90 : | fi | ||
91 : | |||
92 : | install_dvi: $(PACKAGE).dvi | ||
93 : | mkdir -p $(docdir) | ||
94 : | cp *.dvi $(docdir)/ | ||
95 : | |||
96 : | install: install_elc install_info # install_el | ||
97 : | |||
98 : | clean: | ||
99 : | $(RM) .\#* $(TEXEXTS) | ||
100 : | |||
101 : | distclean: clean | ||
102 : | $(RM) *.elc *.dvi *.info* *.ps | ||
103 : | |||
104 : | ###################################################################### | ||
105 : | ### don't look below ### | ||
106 : | ###################################################################### | ||
107 : | |||
108 : | monnier | 378 | $(PACKAGE)-startup.el: $(ELFILES) |
109 : | chmod +w $@ | ||
110 : | $(EMACS) --batch --eval '(setq generated-autoload-file "'`pwd`'/$@")' -f batch-update-autoloads "." | ||
111 : | |||
112 : | ## | ||
113 : | |||
114 : | monnier | 319 | TAG = $(shell echo v$(VERSION) | tr '.' '_') |
115 : | ftpdir=/home/ftp/pub/monnier/$(PACKAGE) | ||
116 : | |||
117 : | dist: | ||
118 : | cvs tag -F $(TAG) &&\ | ||
119 : | cd $(TMP) &&\ | ||
120 : | cvs export -r $(TAG) -d $(PACKAGE)-$(VERSION) elisp/$(PACKAGE) &&\ | ||
121 : | cd $(PACKAGE)-$(VERSION) &&\ | ||
122 : | gmake info &&\ | ||
123 : | cd .. &&\ | ||
124 : | ztar $(PACKAGE)-$(VERSION) &&\ | ||
125 : | rm -rf $(PACKAGE)-$(VERSION) | ||
126 : | mv $(TMP)/$(PACKAGE)-$(VERSION).tar.gz $(ftpdir)/ | ||
127 : | ln -sf $(PACKAGE)-$(VERSION).tar.gz $(ftpdir)/$(PACKAGE).tar.gz | ||
128 : | |||
129 : | |||
130 : | #ident @(#)$Name$:$Id$ |
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |