home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume26
/
schemeweb
/
part01
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-12-27
|
859b
|
61 lines
# SchemeWEB Makefile
# $Header: Makefile,v 1.1 90/07/12 08:57:32 ramsdell Exp $
CFLAGS = -O
SRCS = README Makefile astyped.sty sweb.c \
sweb.scm sweb.tex reader.sw
CMDS = sweave stangle
DOCS = sweb.dvi reader.dvi
TEXSTY = astyped.sty
#DEST = /usr/local/bin
DEST = $(HOME)/bin
#TEXDEST = /usr/local/lib/tex/inputs
TEXDEST = $(HOME)/tex/inputs
# Generic rules
.SUFFIXES: .dvi .tex .scm .sw
.sw.dvi:
make $*.tex && make $*.dvi
.sw.tex:
sweave $*.sw $*.tex
.tex.dvi:
latex $*
.sw.scm:
stangle $*.sw $*.scm
# Generic commands.
all: $(CMDS)
doc: $(DOCS) $(CMDS)
install: $(CMDS) $(TEXSTY)
mv $(CMDS) $(DEST)
cp $(TEXSTY) $(TEXDEST)
clean:
-rm $(CMDS)
dist: schemeweb.sh
# Specific commands.
sweave: sweb.c
$(CC) $(CFLAGS) -o $@ $?
stangle: sweb.c
$(CC) -DTANGLE $(CFLAGS) -o $@ $?
schemeweb.sh: $(SRCS)
shar $(SRCS) > $@