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
|
NAME = isodoc
SHELL = bash
PWD = $(shell pwd)
VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//')
LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL)
UTREE = $(shell kpsewhich --var-value TEXMFHOME)
LTX = lualatex -shell-escape -recorder -interaction=batchmode >/dev/null
$(NAME).pdf: $(NAME).dtx accept.pdf invoice.pdf letter.pdf logoletter.pdf ntgletter.pdf logo1.pdf logo2.pdf
$(LTX) $(NAME).dtx
if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi
if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi
$(LTX) $(NAME).dtx
$(LTX) $(NAME).dtx
accept.pdf: accept.tex accept.sty acceptform.jpg ntgcolor.png
chmod 755 *.sh
texi2dvi -p -q accept.tex
invoice.pdf: invoice.tex invoice.sty
texi2dvi -p -q invoice.tex
letter.pdf: letter.tex letter.sty signmarked.png
texi2dvi -p -q letter.tex
logoletter.pdf: logoletter.tex logoletter.sty body.tex shiva-shakti.png signblue.png
LATEX=xelatex texi2dvi -q logoletter.tex
logo1.pdf logo2.pdf: logoletter.pdf
pdfseparate -l 2 logoletter.pdf logo%d.pdf
ntgletter.pdf: ntgletter.tex ntgletter.sty ntgcolor.png signshort.png signlong.png
texi2dvi -p -q ntgletter.tex
ChopinScript.ttf body.tex acceptform.jpg ntgcolor.png shiva-shakti.pngsign.png signblue.png signlong.png signmarked.png signshort.png: images.zip
unzip -oqDD images.zip
mkdir -p ~/.fonts
cp -u *.ttf ~/.fonts
images.zip: images.zip.uue
uudecode images.zip.uue
images.zip.uue accept.tex accept.sty invoice.tex invoice.sty letter.tex letter.sty logoletter.tex logoletter.sty ntgletter.tex ntgletter.sty: isodoc.dtx isodoc.ins
luatex isodoc.ins
clean:
rm -f *.{aux,cls,fls,glo,gls,hd,idx,ilg,ind,jpg,log,out,pdf,png,sh,sty,tex,toc,ttf,uue}
rm -f images.zip README Makefile *.synctex.gz
inst: $(NAME).pdf
mkdir -p $(UTREE)/{tex,source,doc}/latex/$(NAME)
rm -rf $(UTREE)/{tex,source,doc}/latex/$(NAME)/*
cp $(NAME).dtx $(UTREE)/source/latex/$(NAME)
cp $(NAME).cls $(UTREE)/tex/latex/$(NAME)
cp $(NAME).pdf README $(UTREE)/doc/latex/$(NAME)
install: $(NAME).pdf
sudo mkdir -p $(LOCAL)/{tex,source,doc}/latex/$(NAME)
sudo rm -rf $(LOCAL)/{tex,source,doc}/latex/$(NAME)/*
sudo cp $(NAME).dtx $(LOCAL)/source/latex/$(NAME)
sudo cp $(NAME).cls $(LOCAL)/tex/latex/$(NAME)
sudo cp $(NAME).pdf README $(LOCAL)/doc/latex/$(NAME)
zip: $(NAME).pdf
ln -sf . $(NAME)
zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME)/{README,$(NAME).{pdf,dtx,ins}}
rm $(NAME)
help:
@ echo "make help Print this help"
@ echo
@ echo "make Create the documentation"
@ echo " (note: creates some truetype font files in ~/.fonts)"
@ echo
@ echo "make inst Install the necessary files in the TEXMFHOME tree"
@ echo
@ echo "make install Install the necessary files in the TEXMFLOCAL tree"
@ echo " (You must have sudo rights)"
@ echo
@ echo "make zip Create a zip file for upload to CTAN"
@ echo
@ echo "make clean Remove all regeneratable files, except isodoc-*.zip"
|