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 395, Wed Aug 11 20:48:17 1999 UTC revision 535, Fri Feb 18 16:49:10 2000 UTC
# Line 1  Line 1 
1  # Makefile for emacs-lisp package  # Makefile for emacs-lisp package
2    
3    #ident "@(#)$Name$:$Id$"
4    
5  # Copyright (C) 1998-1999  Stefan Monnier <monnier@cs.yale.edu>  # Copyright (C) 1998-1999  Stefan Monnier <monnier@cs.yale.edu>
6    
7  # 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
# Line 16  Line 18 
18  # along with GNU Emacs; see the file COPYING.  If not, write to  # along with GNU Emacs; see the file COPYING.  If not, write to
19  # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20    
21    # load the package-specific settings
22    include makefile.pkg
23    
24    # set up the usual installation paths
25  prefix  = /usr/local  prefix  = /usr/local
26  datadir = $(prefix)/share  datadir = $(prefix)/share
27    
28  # the directory where you install third-party emacs packges  # the directory where you install third-party emacs packges
29  lispdir = $(datadir)/emacs/site-lisp  lispdir = $(datadir)/emacs/site-lisp
30    
31    # the directory where the .elc files will be installed
32    elcdir  = $(lispdir)/$(PACKAGE)
33    # the directory where the .el files will be installed
34    eldir   = $(elcdir)
35    
36    # the file where the initialization goes.
37    #startupfile = $(HOME/.emacs
38  startupfile = $(lispdir)/site-start.el  startupfile = $(lispdir)/site-start.el
39    
40  # the directory where you installed the elib .elc files.  # the directory where you installed the elib .elc files.
# Line 38  Line 52 
52  SHELL   = /bin/sh  SHELL   = /bin/sh
53  DVIPS   = dvips  DVIPS   = dvips
54  CP      = cp  CP      = cp
55    RM      = rm -f
56  MKDIR   = mkdir -p  MKDIR   = mkdir -p
57  ETAGS   = etags  ETAGS   = etags
58    
# Line 45  Line 60 
60  ###        No changes below this line should be necessary          ###  ###        No changes below this line should be necessary          ###
61  ######################################################################  ######################################################################
62    
 PACKAGE = sml-mode  
   
 # the directory where the .elc files will be installed  
 elcdir  = $(lispdir)/$(PACKAGE)  
 eldir   = $(elcdir)  
   
63  ELFLAGS = --eval '(setq load-path (append (list "." "$(elibdir)" "$(lispdir)") load-path))'  ELFLAGS = --eval '(setq load-path (append (list "." "$(elibdir)" "$(lispdir)") load-path))'
64  ELC     = $(EMACS) -batch $(ELFLAGS) -f batch-byte-compile  ELC     = $(EMACS) -batch $(ELFLAGS) -f batch-byte-compile
65    
 ELFILES = sml-compat.el sml-util.el sml-defs.el sml-move.el sml-mode.el \  
         sml-proc.el  
66  ELCFILES = $(ELFILES:.el=.elc)  ELCFILES = $(ELFILES:.el=.elc)
67    
68  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 84  Line 91 
91  elcfiles: $(ELCFILES)  elcfiles: $(ELCFILES)
92  info: $(PACKAGE).info  info: $(PACKAGE).info
93    
94  install_elc: $(ELCFILES)  install_elc: $(ELCFILES) $(PACKAGE)-startup.el
95          $(MKDIR) $(elcdir)          $(MKDIR) $(elcdir)
96          $(CP) $(ELCFILES) $(elcdir)/          for f in $(ELCFILES) $(PACKAGE)-startup.el; do \
97                $(CP) $$f $(elcdir)/$$f ;\
98            done
99    
100  install_el:  install_el:
101          $(MKDIR) $(eldir)          $(MKDIR) $(eldir)
102          $(CP) $(ELFILES) $(eldir)/          for f in $(ELFILES); do \
103                $(CP) $$f $(eldir)/$$f ;\
104            done
105    
106  install_info: $(PACKAGE).info  install_info: $(PACKAGE).info
107          $(MKDIR) $(infodir)          $(MKDIR) $(infodir)
108          $(CP) *.info* $(infodir)/          $(CP) *.info* $(infodir)/
109          -[ ! -w $(infodir)/dir ] || install-info $(PACKAGE).info $(infodir)/dir          -[ ! -w $(infodir)/dir ] \
110                || install-info --info-dir=$(infodir)/dir $(PACKAGE).info
111    
112  install_startup:  install_startup:
113          $(MKDIR) $(lispdir)          $(MKDIR) $(lispdir)
114          if grep $(PACKAGE) $(startupfile) >/dev/null 2>&1 || \          @if grep $(PACKAGE) $(lispdir)/site-start.el >/dev/null 2>&1 || \
115               grep $(PACKAGE) $(startupfile) >/dev/null 2>&1 || \
116             grep $(PACKAGE) $(lispdir)/default.el >/dev/null 2>&1; then \             grep $(PACKAGE) $(lispdir)/default.el >/dev/null 2>&1; then \
117              echo "!!! Check $(PACKAGE)-startup.el and merge it" \              echo "**********************************************************" ;\
118              echo "!!! into your $(startupfile) file"; \              echo "*** It seems you already have some setup code" ;\
119                echo "*** for $(PACKAGE) in your startup files." ;\
120                echo "*** Check that it properly loads \"$(PACKAGE)-startup\"" ;\
121                echo "**********************************************************" ;\
122          else \          else \
123              sed 's|@elcdir@|$(elcdir)|' \              echo 'echo ";; load $(PACKAGE) setup code" >>$(startupfile)' ;\
124                  $(PACKAGE)-startup.el >>$(startupfile) ;\              echo ";; load $(PACKAGE) setup code" >>$(startupfile) ;\
125                echo 'echo "(add-to-list '\''load-path \"$(elcdir)\")" >>$(startupfile)' ;\
126                echo "(add-to-list 'load-path \"$(elcdir)\")" >>$(startupfile) ;\
127                echo 'echo "(load \"$(PACKAGE)-startup\")" >>$(startupfile)' ;\
128                echo "(load \"$(PACKAGE)-startup\")" >>$(startupfile) ;\
129          fi          fi
130    
131  postscript: $(PACKAGE).ps  postscript: $(PACKAGE).ps
132  dvi: $(PACKAGE).dvi  dvi: $(PACKAGE).dvi
133  install_dvi: dvi  install_dvi: dvi
134          $(MKDIR) $(docdir)          $(MKDIR) $(docdir)
135          $(CP) *.dvi $(docdir)/          $(CP) `find . -type f -name '*.dvi' -print` $(docdir)/
136    
137  install: install_elc install_info # install_el  install: install_elc install_info install_startup # install_el
138    
139  clean:  clean:
140          $(RM) *~ core .\#* $(TEXEXTS)          $(RM) *~ core .\#* $(TEXEXTS)
# Line 130  Line 150 
150  ######################################################################  ######################################################################
151    
152  $(PACKAGE)-startup.el:  $(ELFILES)  $(PACKAGE)-startup.el:  $(ELFILES)
153          chmod +w $@          [ -f $@ ] || echo ' ' >$@
154          $(EMACS) --batch --eval '(setq generated-autoload-file "'`pwd`'/$@")' -f batch-update-autoloads "."          $(EMACS) --batch --eval '(setq generated-autoload-file "'`pwd`'/$@")' -f batch-update-autoloads "."
155    
156  ##  ##
# Line 143  Line 163 
163          cd $(TMP) &&\          cd $(TMP) &&\
164          cvs export -r $(TAG) -d $(PACKAGE)-$(VERSION) elisp/$(PACKAGE) &&\          cvs export -r $(TAG) -d $(PACKAGE)-$(VERSION) elisp/$(PACKAGE) &&\
165          cd $(PACKAGE)-$(VERSION) &&\          cd $(PACKAGE)-$(VERSION) &&\
166          gmake info &&\          gmake info $(PACKAGE)-startup.el &&\
167          cd .. &&\          cd .. &&\
168          ztar $(PACKAGE)-$(VERSION) &&\          ztar $(PACKAGE)-$(VERSION) &&\
169          rm -rf $(PACKAGE)-$(VERSION)          rm -rf $(PACKAGE)-$(VERSION)
170          mv $(TMP)/$(PACKAGE)-$(VERSION).tar.gz $(ftpdir)/          mv $(TMP)/$(PACKAGE)-$(VERSION).tar.gz $(ftpdir)/
171          ln -sf $(PACKAGE)-$(VERSION).tar.gz $(ftpdir)/$(PACKAGE).tar.gz          ln -sf $(PACKAGE)-$(VERSION).tar.gz $(ftpdir)/$(PACKAGE).tar.gz
   
   
 #ident @(#)$Name$:$Id$  

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

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