#
# Makefile for distributing the Scheme->C documentation.
#

port:

clean:
	rm -f *.BAK *.CKP *.o core

clean-sc-to-c:
	rm -f *.c

noprogs:

install:
	-install -c scc.l ${DESTROOT}/usr/local/man/man1/scc.1
	-install -c sci.l ${DESTROOT}/usr/local/man/man1/sci.1
	-mkdir ${DESTROOT}/usr/doc/local/schemetoc
	-install -c intro.psf ${DESTROOT}/usr/doc/local/schemetoc/intro.psf
	-install -c index.psf ${DESTROOT}/usr/doc/local/schemetoc/index.psf
	-install -c index.psf ${DESTROOT}/usr/doc/local/schemetoc/r3rs.psf
	-install -c index.psf ${DESTROOT}/usr/doc/local/schemetoc/smithnotes.psf

srcdist:
	rdist -c README makefile index.psf index.mss intro.psf intro.mss \
	      r3rs.psf smithnotes.psf smithnotes.mss scc.l sci.l ${destdir}

bindist:
	rdist -c README makefile makefile index.psf intro.psf r3rs.psf \
	      smithnotes.psf scc.l sci.l ${destdir}

srclinks:
	ln -s ${SRCDIR}/index.psf index.psf
	ln -s ${SRCDIR}/index.mss index.mss
	ln -s ${SRCDIR}/intro.psf intro.psf
	ln -s ${SRCDIR}/intro.mss intro.mss
	ln -s ${SRCDIR}/r3rs.psf r3rs.psf
	ln -s ${SRCDIR}/smithnotes.psf smithnotes.psf
	ln -s ${SRCDIR}/smithnotes.mss smithnotes.mss
	ln -s ${SRCDIR}/scc.l scc.l
	ln -s ${SRCDIR}/sci.l sci.l
	
all:
