"Fossies" - the Fresh Open Source Software Archive

Member "slib-3b6/Makefile" (16 Feb 2020, 17784 Bytes) of package /linux/privat/slib-3b6.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile": 3b5_vs_3b6.

    1 # Makefile for Scheme Library
    2 # Author: Aubrey Jaffer
    3 #
    4 # This code is in the public domain.
    5 
    6 # These are normally set in "config.status"; defaults are here so that
    7 # "make" won't complain about target redefinitions.
    8 snapdir=$(HOME)/pub/
    9 infodir=$(HOME)/info/
   10 htmldir=$(HOME)/public_html/
   11 
   12 SHELL = /bin/sh
   13 INSTALL = install
   14 INSTALL_PROGRAM = ${INSTALL}
   15 INSTALL_DATA = ${INSTALL} -m 644
   16 INSTALL_INFO = install-info
   17 
   18 SCHEME = scm
   19 CHPAT = $(HOME)/bin/chpat
   20 MAKEDEV = $(MAKE) -f $(HOME)/makefile.dev
   21 TEXI2HTML = /usr/local/bin/texi2html -split -verbose
   22 TEXI2PDF = texi2pdf
   23 RSYNC = rsync -av
   24 Uploadee = csail
   25 
   26 RUNNABLE = scheme48
   27 S48INIT = scheme48.init
   28 S48LIB = $(libdir)$(RUNNABLE)/
   29 S48SLIB = $(S48LIB)slib/
   30 IMAGE48 = slib.image
   31 
   32 intro:	config.status
   33 	@echo
   34 	@echo "Welcome to SLIB.  Read \"README\" and \"slib.info\" (or"
   35 	@echo "\"slib.texi\") to learn how to install and use SLIB."
   36 	@echo
   37 
   38 VERSION = 3b6
   39 RELEASE = 1
   40 
   41 # ./configure --distdir=${HOME}/dist/ --snapdir=${HOME}/pub/ --htmldir=${HOME}/public_html/ --pdfdir=${HOME}/public_html/
   42 
   43 config.status:
   44 	./configure
   45 Makefile: config.status
   46 include config.status
   47 
   48 prevdocsdir = prevdocs/
   49 libslibdir = $(libdir)slib/
   50 windistdir = /c/Voluntocracy/dist/
   51 rpm_prefix = $(HOME)/rpmbuild/
   52 
   53 ffiles = format.scm printf.scm genwrite.scm pp.scm \
   54 	ppfile.scm strcase.scm debug.scm trace.scm \
   55 	strport.scm scanf.scm qp.scm break.scm stdio.scm \
   56 	strsrch.scm prec.scm schmooz.scm defmacex.scm mbe.scm
   57 lfiles = sort.scm comlist.scm logical.scm
   58 revfiles = sc4opt.scm sc4sc3.scm sc2.scm mularg.scm mulapply.scm \
   59 	trnscrpt.scm withfile.scm dynwind.scm promise.scm \
   60 	values.scm eval.scm null.scm
   61 afiles = charplot.scm root.scm cring.scm selfset.scm limit.scm \
   62 	 timecore.scm psxtime.scm cltime.scm timezone.scm tzfile.scm \
   63 	 math-real.scm
   64 bfiles = fluidlet.scm fluid-let.scm object.scm recobj.scm yasyn.scm	\
   65 	collect.scm collectx.scm
   66 scfiles = r4rsyn.scm scmacro.scm synclo.scm synrul.scm synchk.scm \
   67 	repl.scm macwork.scm mwexpand.scm mwdenote.scm mwsynrul.scm
   68 scafiles = scainit.scm scaglob.scm scamacr.scm scaoutp.scm scaexpp.scm \
   69 	structure.scm
   70 srfiles = srfi-2.scm srfi-8.scm srfi-9.scm srfi-11.scm	\
   71 	srfi-23.scm srfi-39.scm srfi-61.scm
   72 efiles = record.scm dynamic.scm process.scm hash.scm wttree.scm	\
   73 	wttree-test.scm sierpinski.scm soundex.scm simetrix.scm
   74 rfiles = rdms.scm alistab.scm paramlst.scm \
   75 	batch.scm crc.scm dbrowse.scm getopt.scm dbinterp.scm \
   76 	dbcom.scm dbsyn.scm
   77 ciefiles = cie1931.xyz cie1964.xyz resenecolours.txt saturate.txt \
   78 	nbs-iscc.txt ciesid65.dat ciesia.dat
   79 
   80 txiscms =grapheps.scm glob.scm getparam.scm \
   81 	vet.scm top-refs.scm hashtab.scm chap.scm comparse.scm\
   82 	alist.scm ratize.scm modular.scm dirs.scm priorque.scm queue.scm\
   83 	srfi.scm srfi-1.scm xml-parse.scm\
   84 	pnm.scm http-cgi.scm htmlform.scm html4each.scm db2html.scm uri.scm\
   85 	dft.scm solid.scm random.scm randinex.scm obj2str.scm ncbi-dna.scm\
   86 	minimize.scm factor.scm determ.scm daylight.scm colornam.scm\
   87 	mkclrnam.scm color.scm subarray.scm dbutil.scm array.scm transact.scm\
   88 	arraymap.scm phil-spc.scm lineio.scm differ.scm cvs.scm tree.scm\
   89 	coerce.scm byte.scm bytenumb.scm matfile.scm tsort.scm manifest.scm\
   90 	peanosfc.scm linterp.scm math-integer.scm rmdsff.scm iso8601.scm
   91 txifiles =grapheps.txi glob.txi getparam.txi\
   92 	vet.txi top-refs.txi hashtab.txi chap.txi comparse.txi\
   93 	alist.txi ratize.txi modular.txi dirs.txi priorque.txi queue.txi\
   94 	srfi.txi srfi-1.txi xml-parse.txi\
   95 	pnm.txi http-cgi.txi htmlform.txi html4each.txi db2html.txi uri.txi\
   96 	dft.txi solid.txi random.txi randinex.txi obj2str.txi ncbi-dna.txi\
   97 	minimize.txi factor.txi determ.txi daylight.txi colornam.txi\
   98 	mkclrnam.txi color.txi subarray.txi dbutil.txi array.txi transact.txi\
   99 	arraymap.txi phil-spc.txi lineio.txi differ.txi cvs.txi tree.txi\
  100 	coerce.txi byte.txi bytenumb.txi matfile.txi tsort.txi manifest.txi\
  101 	peanosfc.txi linterp.txi math-integer.txi rmdsff.txi iso8601.txi
  102 #txifiles = `echo $(txiscms) | sed 's%.scm%.txi%g'`
  103 
  104 texifiles = schmooz.texi indexes.texi object.texi format.texi limit.texi \
  105 	 fdl.texi
  106 docfiles = ANNOUNCE README COPYING FAQ slib.1 slib.texi \
  107 	$(texifiles) $(txifiles)
  108 mkfiles = Makefile require.scm Template.scm mklibcat.scm mkpltcat.scm \
  109 	syncase.sh Bev2slib.scm slib.spec slib.sh grapheps.ps slib.nsi \
  110 	configure
  111 ifiles = bigloo.init chez.init elk.init macscheme.init mitscheme.init \
  112 	scheme2c.init scheme48.init gambit.init t3.init vscm.init \
  113 	scm.init scsh.init sisc.init pscheme.init STk.init kawa.init \
  114 	RScheme.init mzscheme.init umbscheme.init jscheme.init s7.init \
  115 	guile.init guile.use guile-2.init
  116 tfiles = macrotst.scm dwindtst.scm formatst.scm
  117 sfiles = $(ffiles) $(lfiles) $(revfiles) $(afiles) $(scfiles) $(efiles) \
  118 	$(rfiles) colorspc.scm $(scafiles) $(txiscms) $(srfiles)
  119 allfiles = $(docfiles) $(mkfiles) $(ifiles) $(sfiles) $(tfiles)		\
  120 	$(bfiles) slib.doc $(ciefiles) clrnamdb.scm SLIB.ico ChangeLog	\
  121 	slib.info version.txi
  122 libfiles = $(ifiles) $(sfiles) $(bfiles) $(mkfiles) $(ciefiles) clrnamdb.scm
  123 tagfiles = $(docfiles) $(mkfiles) $(sfiles) $(bfiles) $(tfiles)	$(ifiles)
  124 
  125 # $(DESTDIR)$(S48SLIB) isn't included in installdirs because
  126 # Scheme48 may not be installed.
  127 $(DESTDIR)$(S48SLIB):
  128 	mkdir -p $(DESTDIR)$(S48SLIB)
  129 
  130 installdirs:
  131 	mkdir -p $(DESTDIR)$(mandir)man1/
  132 	mkdir -p $(DESTDIR)$(libslibdir)
  133 	mkdir -p $(DESTDIR)$(bindir)
  134 	mkdir -p $(DESTDIR)$(infodir)
  135 	mkdir -p $(DESTDIR)$(htmldir)
  136 	mkdir -p $(DESTDIR)$(pdfdir)
  137 	mkdir -p $(DESTDIR)$(dvidir)
  138 
  139 $(txifiles): slib.texi $(txiscms) schmooz.scm
  140 	$(SCHEME) -rschmooz -e'(schmooz "$<")'
  141 
  142 slib.dvi: slib.texi version.txi $(txifiles) $(texifiles)
  143 	$(TEXI2DVI) -b -c $<
  144 dvi:	slib.dvi
  145 xdvi:	slib.dvi
  146 	xdvi $<
  147 install-dvi: slib.dvi installdirs
  148 	$(INSTALL_DATA) $< $(DESTDIR)$(dvidir)
  149 
  150 slib.pdf: slib.texi version.txi $(txifiles) $(texifiles)
  151 	$(TEXI2PDF) -b -c $<
  152 pdf:	slib.pdf
  153 xpdf:	slib.pdf
  154 	xpdf $<
  155 install-pdf: slib.pdf installdirs
  156 	$(INSTALL_DATA) $< $(DESTDIR)$(pdfdir)
  157 
  158 # slib_toc.html: slib.texi version.txi $(txifiles) $(texifiles)
  159 # 	$(TEXI2HTML) $<
  160 # html:	slib_toc.html
  161 # $(DESTDIR)$(htmldir)slib_toc.html: slib_toc.html Makefile installdirs
  162 # 	-rm -f slib_stoc.html
  163 # 	if [ -f $(prevdocsdir)slib_toc.html ]; \
  164 # 	  then hitch $(prevdocsdir)slib_\*.html slib_\*.html \
  165 # 		$(DESTDIR)$(htmldir); \
  166 # 	  else $(INSTALL_DATA) slib_*.html $(DESTDIR)$(htmldir);fi
  167 # install-html: $(DESTDIR)$(htmldir)slib_toc.html
  168 
  169 html/slib: slib.texi version.txi $(txifiles) $(texifiles)
  170 	mkdir -p html
  171 	rm -rf html/slib
  172 	makeinfo --html $< -o html/slib
  173 	if type icoize>/dev/null; then icoize ../Logo/SCM.ico html/slib/*.html; fi
  174 html:	html/slib
  175 $(DESTDIR)$(htmldir)slib: html/slib
  176 	-rm -rf $(DESTDIR)$(htmldir)slib
  177 	mkdir -p $(DESTDIR)$(htmldir)slib
  178 	$(INSTALL_DATA) html/slib/*.html $(DESTDIR)$(htmldir)slib
  179 install-html: $(DESTDIR)$(htmldir)slib
  180 
  181 # Used by w32install
  182 slib.html: slib.texi
  183 	$(MAKEINFO) --html --no-split --no-warn --force $<
  184 
  185 slib-$(VERSION).info: slib.texi version.txi $(txifiles) $(texifiles)
  186 	$(MAKEINFO) $< --no-warn --no-split -o slib-$(VERSION).info
  187 slib.info: slib-$(VERSION).info
  188 	if [ -f $(prevdocsdir)slib.info ];\
  189 	  then infobar $(prevdocsdir)slib.info slib-$(VERSION).info \
  190 		slib.info;\
  191 	  else cp $< $@;fi
  192 $(DESTDIR)$(infodir)slib.info:	slib.info installdirs
  193 	$(INSTALL_DATA) $< $@
  194 	-rm $(DESTDIR)$(infodir)slib.info.gz
  195 	$(POST_INSTALL)    # Post-install commands follow.
  196 	-$(INSTALL_INFO) $@ $(DESTDIR)$(infodir)dir
  197 install-info:	$(DESTDIR)$(infodir)slib.info
  198 info:	install-info
  199 $(DESTDIR)$(infodir)slib.info.gz: $(DESTDIR)$(infodir)slib.info
  200 	gzip -f $<
  201 install-infoz:	$(DESTDIR)$(infodir)slib.info.gz
  202 infoz:	install-infoz
  203 
  204 slib.doc: slib.1
  205 	nroff -man $< | ul -tunknown >$@
  206 install-man: slib.1 installdirs
  207 	-$(INSTALL_DATA) $< $(DESTDIR)$(mandir)man1/
  208 
  209 docs:	$(DESTDIR)$(infodir)slib.info.gz \
  210 	$(DESTDIR)$(htmldir)slib_toc.html slib.dvi \
  211 	$(DESTDIR)$(pdfdir)slib.pdf \
  212 	slib.doc
  213 
  214 MKNMDB = (require 'color-database) (make-slib-color-name-db) (slib:exit)
  215 # this comment fixes emacs' colorizing
  216 
  217 clrnamdb: clrnamdb.scm
  218 clrnamdb.scm: mkclrnam.scm color.scm resenecolours.txt saturate.txt nbs-iscc.txt
  219 	if type scm; then scm -e"$(MKNMDB)";\
  220 	elif type guile; then guile -l guile.init -c\
  221 	 "(use-modules (ice-9 slib)) $(MKNMDB)";\
  222 	elif type slib48; then echo -e "$(MKNMDB)\n,exit" | slib48 -h 3000000;\
  223 	elif type umb-scheme; \
  224 	then SCHEME_INIT=`pwd`/umbscheme.init;export SCHEME_INIT;\
  225 	 echo "$(MKNMDB)" | umb-scheme;\
  226 	elif type mzscheme; \
  227 	then SCHEME_LIBRARY_PATH=`pwd`/;export SCHEME_LIBRARY_PATH;\
  228 	 echo "$(MKNMDB)" | mzscheme -f mzscheme.init;\
  229 	fi
  230 
  231 catalogs:
  232 	-if type scm; then scm -c "(require 'new-catalog)"; fi
  233 	-if type guile; then guile -l guile.init -c\
  234 	  "(use-modules (ice-9 slib)) (require 'new-catalog)"; fi
  235 	-if type umb-scheme; then\
  236 	  SCHEME_INIT=umbscheme.init;export SCHEME_INIT;\
  237 	  echo "(require 'new-catalog)" | umb-scheme; fi
  238 	-if type mzscheme; then\
  239 	  SCHEME_LIBRARY_PATH=`pwd`/;export SCHEME_LIBRARY_PATH;\
  240 	  cp mkpltcat.scm `mzscheme -mf mzscheme.init -e '(begin(display(implementation-vicinity))(exit))'`mkimpcat.scm;\
  241 	  mzscheme -g -f mzscheme.init -e "(require 'new-catalog)"</dev/null; fi
  242 	-if type scheme48; then $(MAKE) install48; fi
  243 
  244 $(DESTDIR)$(S48SLIB)strport.scm: $(DESTDIR)$(S48SLIB)
  245 	echo ";;; strport.scm  -*- scheme -*-">$(DESTDIR)$(S48SLIB)strport.scm
  246 	echo ";@">>$(DESTDIR)$(S48SLIB)strport.scm
  247 	echo "(define (call-with-output-string proc)">>$(DESTDIR)$(S48SLIB)strport.scm
  248 	echo "  (let ((port (make-string-output-port)))">>$(DESTDIR)$(S48SLIB)strport.scm
  249 	echo "    (proc port)">>$(DESTDIR)$(S48SLIB)strport.scm
  250 	echo "    (string-output-port-output port)))">>$(DESTDIR)$(S48SLIB)strport.scm
  251 	echo "(define (call-with-input-string string proc)">>$(DESTDIR)$(S48SLIB)strport.scm
  252 	echo "  (proc (make-string-input-port string)))">>$(DESTDIR)$(S48SLIB)strport.scm
  253 
  254 $(DESTDIR)$(S48SLIB)record.scm: $(DESTDIR)$(S48SLIB)
  255 	echo ";;; record.scm  -*- scheme -*-">$(DESTDIR)$(S48SLIB)record.scm
  256 	echo ";; This code is in the public domain">>$(DESTDIR)$(S48SLIB)record.scm
  257 	echo ";@">>$(DESTDIR)$(S48SLIB)record.scm
  258 	echo "(define make-record-type   make-record-type)">>$(DESTDIR)$(S48SLIB)record.scm
  259 	echo "(define record-constructor">>$(DESTDIR)$(S48SLIB)record.scm
  260 	echo "  (let ((constructor record-constructor))">>$(DESTDIR)$(S48SLIB)record.scm
  261 	echo "    (lambda (rt . fields)">>$(DESTDIR)$(S48SLIB)record.scm
  262 	echo "      (constructor rt (if (pair? fields)">>$(DESTDIR)$(S48SLIB)record.scm
  263 	echo "                          (car fields)">>$(DESTDIR)$(S48SLIB)record.scm
  264 	echo "                          (record-type-field-names rt))))))">>$(DESTDIR)$(S48SLIB)record.scm
  265 	echo "(define record-predicate   record-predicate)">>$(DESTDIR)$(S48SLIB)record.scm
  266 	echo "(define record-accessor    record-accessor)">>$(DESTDIR)$(S48SLIB)record.scm
  267 	echo "(define record-modifier    record-modifier)">>$(DESTDIR)$(S48SLIB)record.scm
  268 
  269 slib48:	$(IMAGE48)
  270 $(IMAGE48):	$(S48INIT) Makefile
  271 	S48_VERSION="`echo ,exit | $(RUNNABLE) |\
  272 	  sed -n 's/Welcome to Scheme 48 //;s/ ([^)]*)[.]//;p;q'`";\
  273 	  export S48_VERSION;\
  274 	  S48_VICINITY="$(DESTDIR)$(S48LIB)";export S48_VICINITY;\
  275 	  SCHEME_LIBRARY_PATH="`pwd`/";export SCHEME_LIBRARY_PATH;\
  276 	  $(RUNNABLE) < $<
  277 install48:	$(IMAGE48) $(DESTDIR)$(S48SLIB)strport.scm \
  278 		$(DESTDIR)$(S48SLIB)record.scm
  279 	$(INSTALL_DATA) $(IMAGE48) $(DESTDIR)$(S48LIB)
  280 	(echo '#! /bin/sh';\
  281 	 echo exec $(RUNNABLE) -i '$(DESTDIR)$(S48LIB)$(IMAGE48)' \"\$$\@\") \
  282 	  > $(DESTDIR)$(bindir)slib48
  283 	chmod +x $(DESTDIR)$(bindir)slib48
  284 uninstall48:
  285 	-rm $(DESTDIR)$(S48LIB)$(IMAGE48)
  286 
  287 install-lib: $(libfiles) installdirs
  288 	-$(INSTALL_DATA) $(libfiles) $(DESTDIR)$(libslibdir)
  289 
  290 install-script: slib.sh installdirs
  291 	echo '#! /bin/sh'			     > slib-script
  292 	echo SCHEME_LIBRARY_PATH=$(libslibdir)      >> slib-script
  293 	echo S48_VICINITY=$(S48LIB)		    >> slib-script
  294 	echo VERSION=$(VERSION)			    >> slib-script
  295 	echo export SCHEME_LIBRARY_PATH S48_VICINITY>> slib-script
  296 	cat $<					    >> slib-script
  297 	$(INSTALL_PROGRAM) slib-script $(DESTDIR)$(bindir)slib
  298 	rm slib-script
  299 
  300 install: install-script install-lib install-infoz install-man
  301 
  302 uninstall: uninstall48
  303 	$(PRE_UNINSTALL)     # Pre-uninstall commands follow.
  304 	-$(INSTALL_INFO) --delete $(DESTDIR)$(infodir)slib.info \
  305 	  $(DESTDIR)$(infodir)dir
  306 	$(NORMAL_UNINSTALL)  # Normal commands follow.
  307 	-rm $(DESTDIR)$(infodir)slib.info*
  308 	-rm $(DESTDIR)$(mandir)man1/slib.1
  309 	-rm $(DESTDIR)$(bindir)slib
  310 	cd $(DESTDIR)$(libslibdir); rm $(libfiles)
  311 	$(POST_UNINSTALL)     # Post-uninstall commands follow.
  312 	-rmdir $(DESTDIR)$(libslibdir)
  313 
  314 ## to build a windows installer
  315 ## make sure makeinfo and NSIS are available on the commandline
  316 w32install: slib.nsi slib.html
  317 	makensis $<
  318 
  319 #### Stuff for maintaining SLIB below ####
  320 
  321 ver = $(VERSION)
  322 
  323 collectx.scm: collect.scm macwork.scm
  324 	echo "(require 'macros-that-work)" > collect.sc
  325 	echo "(require 'pprint-file)" >> collect.sc
  326 	echo "(require 'yasos)" >> collect.sc
  327 	echo "(pprint-filter-file \"collect.scm\" macwork:expand \"collectx.scm\")" >> collect.sc
  328 	echo "(slib:exit #t)" >> collect.sc
  329 	$(SCHEME) < collect.sc
  330 
  331 temp/slib/: $(allfiles)
  332 	-rm -rf temp
  333 	mkdir -p temp/slib/
  334 	ln  $(allfiles) temp/slib/
  335 
  336 #For change-barred HTML.
  337 prevdocs: $(prevdocsdir)slib_toc.html $(prevdocsdir)slib.info
  338 $(prevdocsdir)slib_toc.html:
  339 $(prevdocsdir)slib.info: Makefile
  340 	cd $(prevdocsdir); unzip -ao $(distdir)slib*.zip
  341 	rm $(prevdocsdir)slib/slib.info
  342 	cd $(prevdocsdir)slib; $(MAKE) slib.info; $(MAKE) slib_toc.html
  343 	cd $(prevdocsdir); mv -f slib/slib.info slib/*.html ./
  344 	rm -rf $(prevdocsdir)slib
  345 	-rm -f slib-$(VERSION).info
  346 
  347 release:	dist pdf tar.gz	# rpm
  348 	cvs tag -F slib-$(VERSION)
  349 	cp ANNOUNCE $(htmldir)SLIB_ANNOUNCE.txt
  350 	cp COPYING $(htmldir)SLIB_COPYING.txt
  351 	cp FAQ $(htmldir)SLIB.FAQ
  352 	$(RSYNC) $(htmldir)SLIB.html $(htmldir)SLIB_ANNOUNCE.txt \
  353 	 $(htmldir)SLIB_COPYING.txt $(Uploadee):public_html/
  354 	$(RSYNC) $(distdir)README $(distdir)slib-$(VERSION).zip \
  355 	 $(distdir)slib-$(VERSION).tar.gz \
  356 	 $(distdir)slib-$(VERSION)-$(RELEASE).noarch.rpm \
  357 	 $(distdir)slib-$(VERSION)-$(RELEASE).src.rpm $(Uploadee):dist/
  358 #	upload $(distdir)README $(distdir)slib-$(VERSION).zip ftp.gnu.org:gnu/jacal/
  359 
  360 upzip:	$(snapdir)slib.zip
  361 	$(RSYNC) $(snapdir)slib.zip $(Uploadee):pub/
  362 
  363 dist:	$(distdir)slib-$(VERSION).zip
  364 $(distdir)slib-$(VERSION).zip:	temp/slib/
  365 	$(MAKEDEV) DEST=$(distdir) PROD=slib ver=-$(VERSION) zip
  366 
  367 upgnu:	$(distdir)slib-$(VERSION).tar.gz
  368 	cd $(distdir); gnupload --to ftp.gnu.org:slib slib-$(VERSION).tar.gz
  369 tar.gz:	$(distdir)slib-$(VERSION).tar.gz
  370 $(distdir)slib-$(VERSION).tar.gz:	temp/slib/
  371 	$(MAKEDEV) DEST=$(distdir) PROD=slib ver=-$(VERSION) tar.gz
  372 
  373 rpm:	pubzip
  374 #$(distdir)slib-$(VERSION)-$(RELEASE).noarch.rpm: $(distdir)slib-$(VERSION).zip
  375 	cp $(snapdir)slib.zip $(rpm_prefix)SOURCES/slib-$(VERSION).zip
  376 	rpmbuild -ba slib.spec	# --clean
  377 	rm $(rpm_prefix)SOURCES/slib-$(VERSION).zip
  378 	mv $(rpm_prefix)RPMS/noarch/slib-$(VERSION)-$(RELEASE).noarch.rpm \
  379 	   $(rpm_prefix)SRPMS/slib-$(VERSION)-$(RELEASE).src.rpm $(distdir)
  380 
  381 shar:	slib.shar
  382 slib.shar:	temp/slib/
  383 	$(MAKEDEV) PROD=slib shar
  384 dclshar:	slib.com
  385 com:	slib.com
  386 slib.com:	temp/slib/
  387 	$(MAKEDEV) PROD=slib com
  388 zip:	slib.zip
  389 slib.zip:	temp/slib/
  390 	$(MAKEDEV) DEST=../ PROD=slib zip
  391 doszip:	$(windistdir)slib-$(VERSION).zip
  392 $(windistdir)slib-$(VERSION).zip:	temp/slib/ slib.html
  393 	$(MAKEDEV) DEST=$(windistdir) PROD=slib ver=-$(VERSION) zip
  394 	-cd ..; zip -9ur $(windistdir)slib-$(VERSION).zip slib/slib.html
  395 	zip -d $(windistdir)slib-$(VERSION).zip slib/slib.info
  396 pubzip:	temp/slib/
  397 	$(MAKEDEV) DEST=$(snapdir) PROD=slib zip
  398 
  399 diffs:	pubdiffs
  400 pubdiffs:	temp/slib/
  401 	$(MAKEDEV) DEST=$(snapdir) PROD=slib pubdiffs
  402 distdiffs:	temp/slib/
  403 	$(MAKEDEV) DEST=$(distdir) PROD=slib ver=$(ver) distdiffs
  404 announcediffs:	temp/slib/
  405 	$(MAKEDEV) DEST=$(distdir) PROD=slib ver=-$(VERSION) announcediffs
  406 
  407 psdfiles=COPYING.psd README.psd cmuscheme.el comint.el instrum.scm pexpr.scm \
  408 	primitives.scm psd-slib.scm psd.el read.scm runtime.scm version.scm
  409 psdocfiles=article.bbl article.tex manual.bbl manual.tex quick-intro.tex
  410 
  411 psdtemp/slib/:
  412 	-rm -rf psdtemp
  413 	mkdir -p psdtemp/slib/psd
  414 	cd psd; ln $(psdfiles) ../psdtemp/slib/psd
  415 	mkdir -p psdtemp/slib/psd/doc
  416 	cd psd/doc; ln $(psdocfiles) ../../psdtemp/slib/psd/doc
  417 
  418 psdist:	$(distdir)slib-psd.tar.gz
  419 $(distdir)slib-psd.tar.gz:	psdtemp/slib/
  420 	$(MAKEDEV) DEST=$(distdir) PROD=slib ver=-psd tar.gz TEMP=psdtemp/
  421 
  422 CITERS = FAQ README ANNOUNCE $(distdir)README ../jacal/ANNOUNCE		\
  423 	../jacal/jacal.texi ../scm/ANNOUNCE ../scm/scm.texi		\
  424 	../wb/ANNOUNCE ../wb/README ../synch/ANNOUNCE			\
  425 	$(windistdir)unzipall.bat $(windistdir)buildall			\
  426 	$(htmldir)JACAL.html $(htmldir)README.html $(htmldir)SCM.html	\
  427 	$(htmldir)SIMSYNCH.html $(htmldir)FreeSnell/FreeSnell.texi	\
  428 	$(htmldir)FreeSnell/ANNOUNCE $(htmldir)FreeSnell/index.html
  429 CITES =  require.scm Makefile slib.spec scheme48.init \
  430 	$(htmldir)SLIB.html slib.nsi ../scm/scm.nsi
  431 
  432 new:
  433 	$(CHPAT) slib-$(VERSION) slib-$(ver) $(CITERS)
  434 	$(CHPAT) $(VERSION) $(ver) $(CITES)
  435 	echo @set SLIBVERSION $(ver) > version.txi
  436 	echo @set SLIBDATE `date +"%B %Y"` >> version.txi
  437 	echo `date -I` \ Aubrey Jaffer \ \<`whoami`@`hostname`\>> change
  438 	echo>> change
  439 	echo \	\* require.scm \(*slib-version*\): Bumped from $(VERSION) to $(ver).>>change
  440 	echo>> change
  441 	cat ChangeLog >> change
  442 	mv -f change ChangeLog
  443 	cvs commit -lm '(*slib-version*): Bumped from $(VERSION) to $(ver).'
  444 	cvs tag -F slib-$(ver)
  445 
  446 tags:	$(tagfiles)
  447 	etags $(tagfiles)
  448 rights:
  449 	$(SCHEME) -ladmin -e"(admin:check-all)" $(sfiles) $(tfiles) \
  450 		$(bfiles) $(ifiles)
  451 report:
  452 	$(SCHEME) -e"(slib:report #t)"
  453 clean:
  454 	-rm -f *~ *.bak *.orig *.rej core a.out *.o \#*
  455 	-rm -rf *temp
  456 distclean:	realclean
  457 realclean:
  458 	-rm -f *~ *.bak *.orig *.rej TAGS core a.out *.o \#*
  459 	-rm -f slib.info* slib.?? slib.html
  460 	-rm -rf *temp SLIB-*.exe
  461 realempty:	temp/slib/
  462 	-rm -f $(allfiles)