life-cycle-of-story: Add creation of upstream stories
[ti-agile-manual/ti-agile-manual.git] / Makefile
1 PDFLATEX        ?= $(shell which pdflatex)
2 BIBTEX          ?= $(shell which bibtex)
3 VIEWER          ?= $(shell which evince)
5 JOBNAME         ?= "LCPD-Agile-Methodology-Manual"
7 OPTS            = -halt-on-error -file-line-error \
8                   -interaction=batchmode \
9                   -jobname=$(JOBNAME)
11 SOURCE          = main.tex
12 PDF             = $(JOBNAME)
14 V               = @
15 Q               = $(V:1=)
16 QUIET_BIBTEX    = $(Q:@=@echo   '      BIBTEX      '$@;)
17 QUIET_LATEX     = $(Q:@=@echo   '      LATEX       '$@;)
18 QUIET_CLEAN     = $(Q:@=@echo   '      CLEAN       '$@;)
19 QUIET_VIEW      = $(Q:@=@echo   '      VIEW        '$@;)
21 all: pdf
23 pdf: $(PDF)
25 $(PDF): $(SOURCE)
26         $(QUIET_LATEX) $(PDFLATEX) $(OPTS) $<
27         $(QUIET_BIBTEX) $(BIBTEX) $(JOBNAME).aux
28         $(QUIET_LATEX) $(PDFLATEX) $(OPTS) $<
29         $(QUIET_LATEX) $(PDFLATEX) $(OPTS) $<
31 view: $(PDF)
32         $(QUIET_VIEW) $(VIEWER) $(PDF)
34 clean:
35         $(QUIET_CLEAN) rm -f *.log *.aux *.lot *.lof *.toc *.tex~ *.pdf *.out *.idx *.href *.url *.bbl *.blg