2003-04-25 11:51:19 -04:00
|
|
|
.SUFFIXES: .tex .dvi .ps .pdf $(.SUFFIXES)
|
2001-07-13 02:59:22 -04:00
|
|
|
|
|
|
|
TEX= front.tex intro.tex procnotation.tex syscalls.tex network.tex \
|
2002-02-22 05:32:36 -05:00
|
|
|
strings.tex awk.tex miscprocs.tex running.tex
|
2001-07-13 02:59:22 -04:00
|
|
|
|
2002-11-26 05:08:54 -05:00
|
|
|
TEX2PAGE=tex2page
|
2001-07-13 02:59:22 -04:00
|
|
|
|
2003-04-25 11:51:19 -04:00
|
|
|
man.dvi: $(TEX)
|
|
|
|
man.pdf: $(TEX)
|
2001-10-10 06:46:46 -04:00
|
|
|
|
2001-07-13 02:59:22 -04:00
|
|
|
.dvi.ps:
|
2002-12-17 10:00:32 -05:00
|
|
|
dvips -j0 -o $@ $<
|
2001-07-13 02:59:22 -04:00
|
|
|
|
|
|
|
.tex.dvi:
|
2003-02-25 05:53:35 -05:00
|
|
|
latex $< && latex $<
|
2003-04-25 11:51:19 -04:00
|
|
|
makeindex $(<:.tex=.idx)
|
2001-07-13 02:59:22 -04:00
|
|
|
rm $*.log
|
|
|
|
|
2002-04-21 13:32:03 -04:00
|
|
|
.tex.pdf:
|
2002-12-17 10:00:32 -05:00
|
|
|
pdflatex $< && thumbpdf $@ && pdflatex $<
|
2003-04-25 11:51:19 -04:00
|
|
|
makeindex $(<:.tex=.idx)
|
2002-04-21 13:32:03 -04:00
|
|
|
rm $*.log
|
|
|
|
|
2001-07-13 02:59:22 -04:00
|
|
|
clean:
|
2003-01-08 04:00:49 -05:00
|
|
|
-rm -f *.log *.png man.out man.dvi man.ps man.pdf thumb*.png
|
2002-12-17 11:15:50 -05:00
|
|
|
rm -rf html
|
2001-07-13 02:59:22 -04:00
|
|
|
|
|
|
|
INSTALL_DATA= install -c -m 644
|
|
|
|
|
|
|
|
tar:
|
|
|
|
tar cf - *.tex sty | gzip > man.tar.gz
|
|
|
|
|
2001-10-10 06:46:46 -04:00
|
|
|
html: $(TEX)
|
2002-11-26 05:08:54 -05:00
|
|
|
$(TEX2PAGE) man && $(TEX2PAGE) man
|
2001-07-13 02:59:22 -04:00
|
|
|
|
|
|
|
install: man.ps
|
|
|
|
@echo WARNING:
|
|
|
|
@echo WARNING: this depends on /u/su/scsh/scsh
|
|
|
|
@echo WARNING: pointing to the current release
|
|
|
|
@echo WARNING:
|
|
|
|
$(INSTALL_DATA) cheat.txt /u/su/scsh/scsh/doc/
|
|
|
|
$(INSTALL_DATA) man.ps /u/su/scsh/scsh/doc/scsh-manual.ps
|
|
|
|
$(INSTALL_DATA) $(TEX) /u/su/scsh/scsh/doc/scsh-manual/
|
|
|
|
$(INSTALL_DATA) sty/* /u/su/scsh/scsh/doc/scsh-manual/sty/
|