diff options
author | Robert Alessi <alessi@robertalessi.net> | 2020-06-12 17:32:36 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2020-06-12 17:32:36 +0200 |
commit | 4c32ae07a868015986b6a9e1912302cc10c1726d (patch) | |
tree | b9983a4a0cdc1b9de608c76725236b3f4ad03587 /Makefile | |
parent | 66a3577bf279ef34458035d41f8727b6f58cf95d (diff) | |
download | ekdosis-4c32ae07a868015986b6a9e1912302cc10c1726d.tar.gz |
set line number font to \normalfont. new option 'flush' added to alignment. new command \EkdosisDefaultApparatus. started preparing files for documentation
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -6,37 +6,49 @@ VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') | |||
6 | LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) | 6 | LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) |
7 | UTREE = $(shell kpsewhich --var-value TEXMFHOME) | 7 | UTREE = $(shell kpsewhich --var-value TEXMFHOME) |
8 | HOMEDIR := $$HOME | 8 | HOMEDIR := $$HOME |
9 | all: $(NAME).pdf | 9 | |
10 | all: sty $(NAME).pdf | ||
10 | test -e README.txt && mv README.txt README || exit 0 | 11 | test -e README.txt && mv README.txt README || exit 0 |
12 | |||
13 | sty: clean | ||
14 | $(CMP) $(NAME).ins | ||
15 | |||
11 | $(NAME).pdf: $(NAME).dtx | 16 | $(NAME).pdf: $(NAME).dtx |
17 | $(CMP) --shell-escape -recorder -interaction=batchmode $(NAME)-ex.tex >/dev/null | ||
12 | $(CMP) --shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null | 18 | $(CMP) --shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null |
13 | if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi | 19 | if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi |
14 | if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi | 20 | if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi |
15 | $(CMP) --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null | 21 | $(CMP) --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null |
16 | $(CMP) --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null | 22 | $(CMP) --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null |
23 | |||
17 | clean: | 24 | clean: |
18 | rm -rf _minted-* | 25 | rm -rf _minted-* |
19 | rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,log,out,toc,pyg} | 26 | rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,log,out,toc,pyg} |
20 | rm -f *~ | 27 | rm -f *~ |
21 | rm -rf auto/ | 28 | rm -rf auto/ |
22 | # rm -f $(NAME)_*.{bib,lua} | 29 | # rm -f $(NAME)_*.{bib,lua} |
30 | |||
23 | auctex: | 31 | auctex: |
24 | if [ ! -d "$(HOMEDIR)/.emacs.d/auctex/auto" ]; then \ | 32 | if [ ! -d "$(HOMEDIR)/.emacs.d/auctex/auto" ]; then \ |
25 | mkdir -p $(HOMEDIR)/.emacs.d/auctex/auto; \ | 33 | mkdir -p $(HOMEDIR)/.emacs.d/auctex/auto; \ |
26 | fi | 34 | fi |
27 | cp $(NAME)*.el $(HOMEDIR)/.emacs.d/auctex/auto | 35 | cp $(NAME)*.el $(HOMEDIR)/.emacs.d/auctex/auto |
36 | |||
28 | distclean: clean uninst | 37 | distclean: clean uninst |
29 | rm -f $(NAME).{pdf,sty,lua} README* | 38 | rm -f $(NAME).{pdf,sty,lua,ekd} $(NAME)-ex*.* README* |
30 | rm -f *.zip *.tar.gz | 39 | rm -f *.zip *.tar.gz |
40 | |||
31 | uninst: | 41 | uninst: |
32 | rm -rf $(UTREE)/{tex,source,doc}/lualatex/$(NAME) | 42 | rm -rf $(UTREE)/{tex,source,doc}/lualatex/$(NAME) |
33 | rm -rf $(HOMEDIR)/.emacs.d/auctex/auto/$(NAME).{el,elc} | 43 | rm -rf $(HOMEDIR)/.emacs.d/auctex/auto/$(NAME).{el,elc} |
44 | |||
34 | inst: uninst auctex all | 45 | inst: uninst auctex all |
35 | mkdir -p $(UTREE)/{tex,source,doc}/lualatex/$(NAME) | 46 | mkdir -p $(UTREE)/{tex,source,doc}/lualatex/$(NAME) |
36 | cp $(NAME).dtx $(UTREE)/source/lualatex/$(NAME) | 47 | cp $(NAME).dtx $(UTREE)/source/lualatex/$(NAME) |
37 | cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME) | 48 | cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME) |
38 | cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME) | 49 | cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME) |
39 | cp $(NAME).pdf $(UTREE)/doc/lualatex/$(NAME) | 50 | cp $(NAME).pdf $(UTREE)/doc/lualatex/$(NAME) |
51 | |||
40 | local: uninst auctex | 52 | local: uninst auctex |
41 | $(CMP) $(NAME).ins | 53 | $(CMP) $(NAME).ins |
42 | mkdir -p $(UTREE)/{tex,source,doc}/lualatex/$(NAME) | 54 | mkdir -p $(UTREE)/{tex,source,doc}/lualatex/$(NAME) |
@@ -47,10 +59,12 @@ local: uninst auctex | |||
47 | # sudo cp $(NAME).dtx $(LOCAL)/source/lualatex/$(NAME) | 59 | # sudo cp $(NAME).dtx $(LOCAL)/source/lualatex/$(NAME) |
48 | # sudo cp $(NAME).sty $(LOCAL)/tex/lualatex/$(NAME) | 60 | # sudo cp $(NAME).sty $(LOCAL)/tex/lualatex/$(NAME) |
49 | # sudo cp $(NAME).pdf $(LOCAL)/doc/lualatex/$(NAME) | 61 | # sudo cp $(NAME).pdf $(LOCAL)/doc/lualatex/$(NAME) |
62 | |||
50 | zip: all | 63 | zip: all |
51 | ln -sf . $(NAME) | 64 | ln -sf . $(NAME) |
52 | zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME)/{README,$(NAME).{pdf,sty,lua,el}} | 65 | zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME)/{README,$(NAME).{pdf,sty,lua,el}} |
53 | rm $(NAME) | 66 | rm $(NAME) |
67 | |||
54 | package: distclean all | 68 | package: distclean all |
55 | mkdir $(NAME)/ | 69 | mkdir $(NAME)/ |
56 | cp README *.dtx *.pdf $(NAME)/ | 70 | cp README *.dtx *.pdf $(NAME)/ |