head	1.5;
access;
symbols;
locks; strict;
comment	@# @;


1.5
date	2002.04.28.09.20.41;	author emmanuel;	state Exp;
branches;
next	1.4;

1.4
date	2002.04.27.11.31.03;	author emmanuel;	state Exp;
branches;
next	1.3;

1.3
date	2002.04.27.09.46.08;	author emmanuel;	state Exp;
branches;
next	1.2;

1.2
date	2002.04.26.08.47.00;	author james;	state Exp;
branches;
next	1.1;

1.1
date	2002.04.24.23.32.48;	author james;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Makefile: the path to fig2dev is now detected automatically to account for
          different distributions.

ssdn2_section_07_DTP-Symbol: New figure showing the structure of DTP-Symbol
	  in section 7.

Plenty of typos, formatting and some references.
@
text
@# -*- Mode: Makefile; coding: iso-8859-1 -*-
#
# Makefile for LaTeX SSDN2.
#
# For any particular file FOO.tex you can use any of the following
#
#    make FOO.dvi
#    make FOO.ps
#    make FOO.pdf
#
# to make that particular output file.  You can't make aux or toc files
# directly, though making a DVI will cause those files to be generated.

SRCS=ssdn2

EPS := $(patsubst %.fig,%.eps,$(wildcard *.fig))

  #
##### Commands.
  #

RM = /bin/rm -f
LATEX = /usr/bin/latex
PDFLATEX = /usr/bin/pdflatex
DVIPS = /usr/bin/dvips
FIG2DEV := $(shell which fig2dev)

  #
##### Special rules.
  #

# Non-file rules.
.PHONY : texclean docclean clean distclean eps

# Erases and redefines .fig and .eps as SUFFIXES
.SUFFIXES :
.SUFFIXES : .fig .eps

# Protect intermediate files from removal.
.PRECIOUS : %.dvi %.ps %.pdf %.eps

# The default target.
.DEFAULT : default

  #
##### Suffix rules.
  #

.fig.eps : 
	$(FIG2DEV) -L eps $*.fig $*.eps 

%.tex : 

%.dvi : %.tex
	$(LATEX) $*
	$(LATEX) $*
	$(LATEX) $*

# Printing with 'cmz' option to dvips depends on TeX installation.  It attempts
# to print using Bluesky's compressed ('z') Type 1 CM fonts.
%.ps : %.dvi
	$(DVIPS) -Pcmz -o $@@ $<

# PDFLaTeX doesn't need DVIs.  It also uses Type 1 fonts by default.
%.pdf : %.tex
	$(PDFLATEX) $*
	$(PDFLATEX) $*

  #
##### Default rule.
  #

default : $(EPS) $(SRCS:=.tex) $(SRCS:=.dvi)

  #
##### Cleansing rules.
  #

# Clean up LaTeX excreta.
texclean :
	$(RM) *.aux *.toc *.lot *.lof *.log *.cb

# Clean up eps files.
epsclean :
	$(RM) *.eps

# Clean up generated docs.
docclean :
	$(RM) *.dvi *.ps *.pdf

clean : texclean docclean epsclean

# Clean up Emacs excreta, etc.
distclean : clean
	$(RM) *~

  #
##### Development rules.
  #

cycle : clean default
@


1.4
log
@Makefile: erased path for fig2dev (which is different depending on the disro)
@
text
@d26 1
a26 1
FIG2DEV=fig2dev
@


1.3
log
@Further modif: Plenty of formatting (chktex is your friend...) in the varous *section*tex files.

Rearranged the graph so that it is more vertical than horizontal.
Makefile to create the eps files automatically.
Modified the .sty \newcommands to add some brackets.
@
text
@d26 1
a26 1
FIG2DEV=/usr/bin/fig2dev
@


1.2
log
@Added *.cb to texclean rule to clean up changebar excreta.
@
text
@d16 2
d26 1
d33 1
a33 1
.PHONY : texclean docclean clean distclean
d35 1
a35 1
# Clear all suffix rules.
d37 1
d40 1
a40 1
.PRECIOUS : %.dvi %.ps %.pdf
d49 4
a52 1
%.tex :
d73 1
a73 1
default : $(SRCS:=.tex) $(SRCS:=.dvi)
d83 4
d91 1
a91 1
clean : texclean docclean
@


1.1
log
@Makefile for ssdn2.  Does all the necessary runs of LaTeX to get
references correct.  Also knows how to generate PS and PDF, as well as
DVI.  Cleans up after itself like a good boy, too.
@
text
@d74 1
a74 1
	$(RM) *.aux *.toc *.lot *.lof *.log
@

