1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
#
# Makefile for Tachyon documentation
#
TOPSRCDIR?=..
PKGDOCDIR?=/usr/share/doc/tachyon
PKGEXAMPLESDIR?=$(PKGDOCDIR)/examples
LATEX2HTML=latex2html
PDFLATEX=pdflatex -no-shell-escape -interaction=batchmode
MAKEINDEX=makeindex -q
default:
@echo "Select documentation to build:"
@echo "------------------------------"
@echo " all - All supported file formats"
@echo "html - HTML"
@echo " pdf - Adobe PDF "
all: html pdf
pdf: tachyon.pdf
html: tachyon/tachyon.html
listof_demo_SOURCES = \
glwin.h glwin.c \
mainanim.c \
animspheres.c \
animspheres2.c \
hypertex.c \
fire.c \
animskull.c \
tgatoyuv.c
tachyon/tachyon.html : tachyon.pdf
rm -rf tachyon
$(LATEX2HTML) \
-verbosity 2 \
-local_icons \
-split 5 \
-toc_depth 4 \
-toc_stars \
-t "Tachyon Docs" \
-address "john.stone@gmail.com" \
-up_url "http://www.photonlimited.com/" \
-up_title "photonlimited.com, home of Tachyon" \
-info 0 \
tachyon 1> tachyon.html.log 2>&1
tachyon.pdf :
$(PDFLATEX) tachyon
$(MAKEINDEX) tachyon
$(PDFLATEX) tachyon
$(MAKEINDEX) tachyon
$(PDFLATEX) tachyon
$(MAKEINDEX) tachyon
$(PDFLATEX) tachyon
clean :
-rm -f *.aux *.idx *.lof *.log *.lot *.pdf *.toc *.ilg *.ind
-rm tachyon.html.log
distclean: clean
-rm tachyon.pdf
-rm -rf tachyon
check:
install: all
mkdir -p $(DESTDIR)$(PKGDOCDIR)
mkdir -p $(DESTDIR)$(PKGDOCDIR)/html
mkdir -p $(DESTDIR)$(PKGEXAMPLESDIR)
mkdir -p $(DESTDIR)$(PKGEXAMPLESDIR)/scenes
mkdir -p $(DESTDIR)$(PKGEXAMPLESDIR)/demosrc
cp -p $(TOPSRCDIR)/unix/README $(DESTDIR)$(PKGDOCDIR)/README.unix
cp -p -t $(DESTDIR)$(PKGDOCDIR) tachyon.pdf
cp -p -t $(DESTDIR)$(PKGDOCDIR)/html tachyon/tachyon.css tachyon/*.html tachyon/*.png
cp -pr -t $(DESTDIR)$(PKGEXAMPLESDIR)/scenes $(TOPSRCDIR)/scenes/*
cp -p -t $(DESTDIR)$(PKGEXAMPLESDIR)/demosrc $(addprefix $(TOPSRCDIR)/demosrc/, $(listof_demo_SOURCES))
cp -p -t $(DESTDIR)$(PKGEXAMPLESDIR)/scenes $(TOPSRCDIR)/debian/adhoc/scenes/action.sh
cp -p -t $(DESTDIR)$(PKGEXAMPLESDIR)/demosrc $(TOPSRCDIR)/debian/adhoc/demosrc/Makefile
rdfind -outputname /dev/null -removeidentinode false -makesymlinks true $(DESTDIR)$(PKGDOCDIR)/html
symlinks -r -c -s -v $(DESTDIR)$(PKGDOCDIR)/html
rdfind -outputname /dev/null -removeidentinode false -makesymlinks true $(DESTDIR)$(PKGEXAMPLESDIR)/scenes
symlinks -r -c -s -v $(DESTDIR)$(PKGEXAMPLESDIR)/scenes
|