Initial Commit
[packages] / xemacs-packages / ilisp / Makefile.rm
1 # -*- Mode: Makefile -*-
2
3 # Makefile --
4 #
5 # This file is part of ILISP.
6 # Please refer to the file COPYING for copyrights and licensing
7 # information.
8 # Please refer to the file ACKNOWLEGDEMENTS for an (incomplete) list
9 # of present and past contributors.
10 #
11 # $Id: Makefile.rm,v 1.3 2002-06-03 23:36:56 wbd Exp $
12
13 # Note: this makefile assumes GNU make
14
15 #==============================================================================
16 # Various Variables
17
18 Version = 5.12.0
19
20 # Use whichever you like most
21 #EMACS = xemacs
22 #EMACS = /usr/local/bin/emacs
23 EMACS = emacs
24
25 # If your operating system does not support file links (e.g. Windows),
26 # change this to an ordinary copy command
27 LN = ln -s
28
29 # The SHELL variable is used only for making the distribution.
30 SHELL = /bin/csh
31
32 # The 'rm' command used (we redefine it mostly because it may be
33 # aliased
34 RM = /bin/rm -f
35
36
37 # These are used mostly for packaging the distribution
38 Ilisp_src_dir = $(shell pwd)
39 Ilisp_tar_dir = ilisp-$(Version)
40
41 OtherFiles = README         \
42              HISTORY        \
43              Makefile       \
44              ilisp.emacs    \
45              icompile.bat   \
46              INSTALLATION   \
47              COPYING        \
48              GETTING-ILISP  \
49              Welcome        \
50              ChangeLog      \
51              ACKNOWLEDGMENTS
52
53 # maybe add custom-ilisp.elc to LoadFiles later.
54 LoadFiles = ilisp-def.elc ilisp-sym.elc \
55  ilisp-inp.elc ilisp-ind.elc ilisp-prc.elc ilisp-val.elc ilisp-out.elc \
56  ilisp-mov.elc ilisp-key.elc ilisp-prn.elc ilisp-low.elc ilisp-doc.elc \
57  ilisp-ext.elc ilisp-mod.elc ilisp-dia.elc ilisp-cmt.elc ilisp-rng.elc \
58  ilisp-hnd.elc ilisp-utl.elc ilisp-cmp.elc ilisp-kil.elc ilisp-snd.elc \
59  ilisp-xfr.elc ilisp-hi.elc ilisp-aut.elc \
60  ilisp-cl.elc ilisp-cmu.elc ilisp-sbcl.elc ilisp-cl-easy-menu.elc\
61  ilisp-acl.elc ilisp-kcl.elc ilisp-luc.elc ilisp-sch.elc ilisp-hlw.elc \
62  ilisp-xls.elc ilisp-chs.elc ilisp-openmcl.elc ilisp-ccl.elc
63
64
65 DocFiles = docs/Makefile \
66            docs/README \
67            docs/doc-changes.txt \
68            docs/ilisp-refcard.tex \
69            docs/ilisp.texi
70
71
72 FaslFiles = *.fasl *.fas *.lib *.x86f *.sparcf *.pfsl
73
74 #==============================================================================
75 # Rules
76
77 compile:
78         $(EMACS) -batch -l ilisp-mak.el
79
80 tags:
81         etags *.el
82
83 docs: FORCE
84         cd docs; $(MAKE)
85
86 clean: 
87         -$(RM) *.elc *~ extra/*.elc extra/*~ TAGS \
88         $(FaslFiles)
89         (cd docs; $(MAKE) clean)
90
91 loadfile:
92         touch ilisp-all.elc
93         cat $(LoadFiles) > ilisp-all.elc
94         $(RM) $(LoadFiles)
95 # Note that the redirection is done by a Bourne Shell.
96
97 compress:
98         gzip *.el $(OtherFiles)
99
100 FORCE:
101
102 #==============================================================================
103 # The following targets are used only to create a distribution file.
104
105 dist: tarring dist_compressing
106
107 tarring:
108         @echo "ILISP dist: preparing tar file."
109         @echo "            source directory: " $(Ilisp_src_dir)
110         @echo "            tar directory:    " $(Ilisp_tar_dir)
111         (cd $(Ilisp_src_dir)/..;                                        \
112          if ( $(notdir $(Ilisp_src_dir)) != $(Ilisp_tar_dir) )          \
113             ln -s $(notdir $(Ilisp_src_dir)) $(Ilisp_tar_dir) ;         \
114          tar cvf $(Ilisp_tar_dir).tar                                   \
115             $(patsubst %,$(Ilisp_tar_dir)/%,$(OtherFiles))              \
116             $(Ilisp_tar_dir)/*.el                                       \
117             $(Ilisp_tar_dir)/*.lisp                                     \
118             $(Ilisp_tar_dir)/*.scm                                      \
119             $(patsubst %,$(Ilisp_tar_dir)/%,$(DocFiles))                \
120             $(Ilisp_tar_dir)/extra/README                               \
121             $(Ilisp_tar_dir)/extra/hyperspec.el                         \
122             $(Ilisp_tar_dir)/extra/cltl2.el                             \
123             $(Ilisp_tar_dir)/pictures/ilisp-icon.*                      \
124         )
125
126 dist_compressing:
127         (cd $(Ilisp_src_dir)/.. ; gzip $(Ilisp_tar_dir).tar)
128
129 uuencoding: ../$(Ilisp_tar_dir).tar.gz
130         (cd $(Ilisp_src_dir)/.. ;                                           \
131          uuencode $(Ilisp_tar_dir).tar.gz $(Ilisp_tar_dir).tar.gz > il.uue)
132
133
134 # end of file -- Makefile --