1 # -*- Mode: Makefile -*-
5 # This file is part of ILISP.
6 # Please refer to the file COPYING for copyrights and licensing
8 # Please refer to the file ACKNOWLEGDEMENTS for an (incomplete) list
9 # of present and past contributors.
11 # $Id: Makefile.rm,v 1.3 2002-06-03 23:36:56 wbd Exp $
13 # Note: this makefile assumes GNU make
15 #==============================================================================
20 # Use whichever you like most
22 #EMACS = /usr/local/bin/emacs
25 # If your operating system does not support file links (e.g. Windows),
26 # change this to an ordinary copy command
29 # The SHELL variable is used only for making the distribution.
32 # The 'rm' command used (we redefine it mostly because it may be
37 # These are used mostly for packaging the distribution
38 Ilisp_src_dir = $(shell pwd)
39 Ilisp_tar_dir = ilisp-$(Version)
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
65 DocFiles = docs/Makefile \
67 docs/doc-changes.txt \
68 docs/ilisp-refcard.tex \
72 FaslFiles = *.fasl *.fas *.lib *.x86f *.sparcf *.pfsl
74 #==============================================================================
78 $(EMACS) -batch -l ilisp-mak.el
87 -$(RM) *.elc *~ extra/*.elc extra/*~ TAGS \
89 (cd docs; $(MAKE) clean)
93 cat $(LoadFiles) > ilisp-all.elc
95 # Note that the redirection is done by a Bourne Shell.
98 gzip *.el $(OtherFiles)
102 #==============================================================================
103 # The following targets are used only to create a distribution file.
105 dist: tarring dist_compressing
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.* \
127 (cd $(Ilisp_src_dir)/.. ; gzip $(Ilisp_tar_dir).tar)
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)
134 # end of file -- Makefile --