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 378, Wed Jul 7 14:45:42 1999 UTC revision 394, Mon Aug 9 21:45:51 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    
25  # the directory where you installed the elib .elc files.  # the directory where you installed the elib .elc files.
26  # 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 31 
31  infodir = $(prefix)/info  infodir = $(prefix)/info
32  docdir = $(prefix)/doc  docdir = $(prefix)/doc
33    
34    EMACS   = emacs
35    MAKEINFO= makeinfo
36    TEXI2DVI= texi2dvi
37    SHELL   = /bin/sh
38    DVIPS   = dvips
39    CP      = cp
40    MKDIR   = mkdir -p
41    ETAGS   = etags
42    
43  ######################################################################  ######################################################################
44  ###        No changes below this line should be necessary          ###  ###        No changes below this line should be necessary          ###
45  ######################################################################  ######################################################################
46    
   
47  PACKAGE = sml-mode  PACKAGE = sml-mode
48    
49  # the directory where the .elc files will be installed  # the directory where the .elc files will be installed
# Line 53  Line 67 
67          $(ELC) $<          $(ELC) $<
68    
69  .texi.info:  .texi.info:
70          makeinfo $<          $(MAKEINFO) $<
71    
72  .texi.dvi:  .texi.dvi:
73          texi2dvi $<          $(TEXI2DVI) $<
74    
75  .dvi.ps:  .dvi.ps:
76          dvips -f $< >$@          $(DVIPS) -f $< >$@
77    
78  ######################################################################  ######################################################################
79    
# Line 69  Line 83 
83  info: $(PACKAGE).info  info: $(PACKAGE).info
84    
85  install_elc: $(ELCFILES)  install_elc: $(ELCFILES)
86          mkdir -p $(elcdir)          $(MKDIR) $(elcdir)
87          cp $(ELCFILES) $(elcdir)/          $(CP) $(ELCFILES) $(elcdir)/
88    
89  install_el:  install_el:
90          mkdir -p $(eldir)          $(MKDIR) $(eldir)
91          cp $(ELFILES) $(eldir)/          $(CP) $(ELFILES) $(eldir)/
92    
93  install_info: $(PACKAGE).info  install_info: $(PACKAGE).info
94          mkdir -p $(infodir)          $(MKDIR) $(infodir)
95          cp *.info* $(infodir)/          $(CP) *.info* $(infodir)/
96          -[ ! -w $(infodir)/dir ] || install-info $(PACKAGE).info $(infodir)/dir          -[ ! -w $(infodir)/dir ] || install-info $(PACKAGE).info $(infodir)/dir
97    
98  install_startup:  install_startup:
99          mkdir -p $(lispdir)          $(MKDIR) $(lispdir)
100          if grep $(PACKAGE) $(lispdir)/site-start.el >/dev/null 2>&1 || \          if grep $(PACKAGE) $(lispdir)/site-start.el >/dev/null 2>&1 || \
101             grep $(PACKAGE) $(lispdir)/default.el >/dev/null 2>&1; then :; else \             grep $(PACKAGE) $(lispdir)/default.el >/dev/null 2>&1; then \
102              sed 's/@elcdir@/$(elcdir)/' \              echo "!!! Check $(PACKAGE)-startup.el and merge it" \
103                echo "!!! into your $(lispdir)/site-start.el file"; \
104            else \
105                sed 's|@elcdir@|$(elcdir)|' \
106                  $(PACKAGE)-startup.el >>$(lispdir)/site-start.el ;\                  $(PACKAGE)-startup.el >>$(lispdir)/site-start.el ;\
107          fi          fi
108    
109  install_dvi: $(PACKAGE).dvi  install_dvi: $(PACKAGE).dvi
110          mkdir -p $(docdir)          $(MKDIR) $(docdir)
111          cp *.dvi $(docdir)/          $(CP) *.dvi $(docdir)/
112    
113  install: install_elc install_info # install_el  install: install_elc install_info # install_el
114    
115  clean:  clean:
116          $(RM) .\#* $(TEXEXTS)          $(RM) *~ core .\#* $(TEXEXTS)
117    
118    TAGS tags:
119            $(ETAGS) $(ELFILES)
120    
121  distclean: clean  distclean: clean
122          $(RM) *.elc *.dvi *.info* *.ps          $(RM) *.elc *.dvi *.info* *.ps

Legend:
Removed from v.378  
changed lines
  Added in v.394

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