Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/sml-mode/Makefile
ViewVC logotype

Diff of /sml/trunk/sml-mode/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 319, Mon Jun 7 22:47:00 1999 UTC revision 395, Wed Aug 11 20:48:17 1999 UTC
# Line 1  Line 1 
1  # Makefile for emacs-lisp package  # Makefile for emacs-lisp package
2    
3    # Copyright (C) 1998-1999  Stefan Monnier <monnier@cs.yale.edu>
4    
5  # This file is free software; you can redistribute it and/or modify it  # This file is free software; you can redistribute it and/or modify it
6  # under the terms of the GNU General Public License as published by the  # under the terms of the GNU General Public License as published by the
7  # Free Software Foundation; either version 2, or (at your option) any  # Free Software Foundation; either version 2, or (at your option) any
# Line 10  Line 12 
12  # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License  # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  # for more details.  # for more details.
14    
15  EMACS   = emacs  # You should have received a copy of the GNU General Public License
16    # along with GNU Emacs; see the file COPYING.  If not, write to
17    # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18    
19  prefix  = /usr/local  prefix  = /usr/local
20    datadir = $(prefix)/share
21    
22  # the directory where you install third-party emacs packges  # the directory where you install third-party emacs packges
23  lispdir = $(prefix)/share/emacs/site-lisp  lispdir = $(datadir)/emacs/site-lisp
24    startupfile = $(lispdir)/site-start.el
25    
26  # the directory where you installed the elib .elc files.  # the directory where you installed the elib .elc files.
27  # This is only needed if your site-start.el (or default.el) does not  # This is only needed if your site-start.el (or default.el) does not
# Line 25  Line 32 
32  infodir = $(prefix)/info  infodir = $(prefix)/info
33  docdir = $(prefix)/doc  docdir = $(prefix)/doc
34    
35    EMACS   = emacs
36    MAKEINFO= makeinfo
37    TEXI2DVI= texi2dvi
38    SHELL   = /bin/sh
39    DVIPS   = dvips
40    CP      = cp
41    MKDIR   = mkdir -p
42    ETAGS   = etags
43    
44  ######################################################################  ######################################################################
45  ###        No changes below this line should be necessary          ###  ###        No changes below this line should be necessary          ###
46  ######################################################################  ######################################################################
47    
   
48  PACKAGE = sml-mode  PACKAGE = sml-mode
49    
50  # the directory where the .elc files will be installed  # the directory where the .elc files will be installed
# Line 40  Line 55 
55  ELC     = $(EMACS) -batch $(ELFLAGS) -f batch-byte-compile  ELC     = $(EMACS) -batch $(ELFLAGS) -f batch-byte-compile
56    
57  ELFILES = sml-compat.el sml-util.el sml-defs.el sml-move.el sml-mode.el \  ELFILES = sml-compat.el sml-util.el sml-defs.el sml-move.el sml-mode.el \
58          sml-proc.el sml-menus.el sml-mosml.el sml-poly-ml.el sml-smlnj.el          sml-proc.el
59  ELCFILES = $(ELFILES:.el=.elc)  ELCFILES = $(ELFILES:.el=.elc)
60    
61  TEXEXTS =  *.cps *.fns *.kys *.vr *.tp *.pg *.log *.aux *.toc *.cp *.ky *.fn  TEXEXTS =  *.cps *.fns *.kys *.vr *.tp *.pg *.log *.aux *.toc *.cp *.ky *.fn
# Line 48  Line 63 
63  .SUFFIXES: .elc .el .info .ps .dvi .texi  .SUFFIXES: .elc .el .info .ps .dvi .texi
64  .PHONY: elcfiles info clean distclean default  .PHONY: elcfiles info clean distclean default
65  .PHONY: install_startup install_elc install install_el install_info  .PHONY: install_startup install_elc install install_el install_info
66    .PHONY: dvi postscript
67    
68  .el.elc:  .el.elc:
69          $(ELC) $<          $(ELC) $<
70    
71  .texi.info:  .texi.info:
72          makeinfo $<          $(MAKEINFO) $<
73    
74  .texi.dvi:  .texi.dvi:
75          texi2dvi $<          $(TEXI2DVI) $<
76    
77  .dvi.ps:  .dvi.ps:
78          dvips -f $< >$@          $(DVIPS) -f $< >$@
79    
80  ######################################################################  ######################################################################
81    
# Line 69  Line 85 
85  info: $(PACKAGE).info  info: $(PACKAGE).info
86    
87  install_elc: $(ELCFILES)  install_elc: $(ELCFILES)
88          mkdir -p $(elcdir)          $(MKDIR) $(elcdir)
89          cp $(ELCFILES) $(elcdir)/          $(CP) $(ELCFILES) $(elcdir)/
90    
91  install_el:  install_el:
92          mkdir -p $(eldir)          $(MKDIR) $(eldir)
93          cp $(ELFILES) $(eldir)/          $(CP) $(ELFILES) $(eldir)/
94    
95  install_info: $(PACKAGE).info  install_info: $(PACKAGE).info
96          mkdir -p $(infodir)          $(MKDIR) $(infodir)
97          cp *.info* $(infodir)/          $(CP) *.info* $(infodir)/
98          -[ ! -w $(infodir)/dir ] || install-info $(PACKAGE).info $(infodir)/dir          -[ ! -w $(infodir)/dir ] || install-info $(PACKAGE).info $(infodir)/dir
99    
100  install_startup:  install_startup:
101          mkdir -p $(lispdir)          $(MKDIR) $(lispdir)
102          if grep $(PACKAGE) $(lispdir)/site-start.el >/dev/null 2>&1 || \          if grep $(PACKAGE) $(startupfile) >/dev/null 2>&1 || \
103             grep $(PACKAGE) $(lispdir)/default.el >/dev/null 2>&1; then :; else \             grep $(PACKAGE) $(lispdir)/default.el >/dev/null 2>&1; then \
104              sed 's/@elcdir@/$(elcdir)/' \              echo "!!! Check $(PACKAGE)-startup.el and merge it" \
105                  $(PACKAGE)-startup.el >>$(lispdir)/site-start.el ;\              echo "!!! into your $(startupfile) file"; \
106            else \
107                sed 's|@elcdir@|$(elcdir)|' \
108                    $(PACKAGE)-startup.el >>$(startupfile) ;\
109          fi          fi
110    
111  install_dvi: $(PACKAGE).dvi  postscript: $(PACKAGE).ps
112          mkdir -p $(docdir)  dvi: $(PACKAGE).dvi
113          cp *.dvi $(docdir)/  install_dvi: dvi
114            $(MKDIR) $(docdir)
115            $(CP) *.dvi $(docdir)/
116    
117  install: install_elc install_info # install_el  install: install_elc install_info # install_el
118    
119  clean:  clean:
120          $(RM) .\#* $(TEXEXTS)          $(RM) *~ core .\#* $(TEXEXTS)
121    
122    TAGS tags:
123            $(ETAGS) $(ELFILES)
124    
125  distclean: clean  distclean: clean
126          $(RM) *.elc *.dvi *.info* *.ps          $(RM) *.elc *.dvi *.info* *.ps
# Line 105  Line 129 
129  ###                    don't look below                            ###  ###                    don't look below                            ###
130  ######################################################################  ######################################################################
131    
132    $(PACKAGE)-startup.el:  $(ELFILES)
133            chmod +w $@
134            $(EMACS) --batch --eval '(setq generated-autoload-file "'`pwd`'/$@")' -f batch-update-autoloads "."
135    
136    ##
137    
138  TAG = $(shell echo v$(VERSION) | tr '.' '_')  TAG = $(shell echo v$(VERSION) | tr '.' '_')
139  ftpdir=/home/ftp/pub/monnier/$(PACKAGE)  ftpdir=/home/ftp/pub/monnier/$(PACKAGE)
140    

Legend:
Removed from v.319  
changed lines
  Added in v.395

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0