From 4c32ae07a868015986b6a9e1912302cc10c1726d Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Fri, 12 Jun 2020 17:32:36 +0200 Subject: set line number font to \normalfont. new option 'flush' added to alignment. new command \EkdosisDefaultApparatus. started preparing files for documentation --- Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 34e846c..443969a 100644 --- a/Makefile +++ b/Makefile @@ -6,37 +6,49 @@ VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) UTREE = $(shell kpsewhich --var-value TEXMFHOME) HOMEDIR := $$HOME -all: $(NAME).pdf + +all: sty $(NAME).pdf test -e README.txt && mv README.txt README || exit 0 + +sty: clean + $(CMP) $(NAME).ins + $(NAME).pdf: $(NAME).dtx + $(CMP) --shell-escape -recorder -interaction=batchmode $(NAME)-ex.tex >/dev/null $(CMP) --shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null 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 $(CMP) --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null $(CMP) --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null + clean: rm -rf _minted-* rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,log,out,toc,pyg} rm -f *~ rm -rf auto/ # rm -f $(NAME)_*.{bib,lua} + auctex: if [ ! -d "$(HOMEDIR)/.emacs.d/auctex/auto" ]; then \ mkdir -p $(HOMEDIR)/.emacs.d/auctex/auto; \ fi cp $(NAME)*.el $(HOMEDIR)/.emacs.d/auctex/auto + distclean: clean uninst - rm -f $(NAME).{pdf,sty,lua} README* + rm -f $(NAME).{pdf,sty,lua,ekd} $(NAME)-ex*.* README* rm -f *.zip *.tar.gz + uninst: rm -rf $(UTREE)/{tex,source,doc}/lualatex/$(NAME) rm -rf $(HOMEDIR)/.emacs.d/auctex/auto/$(NAME).{el,elc} + inst: uninst auctex all mkdir -p $(UTREE)/{tex,source,doc}/lualatex/$(NAME) cp $(NAME).dtx $(UTREE)/source/lualatex/$(NAME) cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME) cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME) cp $(NAME).pdf $(UTREE)/doc/lualatex/$(NAME) + local: uninst auctex $(CMP) $(NAME).ins mkdir -p $(UTREE)/{tex,source,doc}/lualatex/$(NAME) @@ -47,10 +59,12 @@ local: uninst auctex # sudo cp $(NAME).dtx $(LOCAL)/source/lualatex/$(NAME) # sudo cp $(NAME).sty $(LOCAL)/tex/lualatex/$(NAME) # sudo cp $(NAME).pdf $(LOCAL)/doc/lualatex/$(NAME) + zip: all ln -sf . $(NAME) zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME)/{README,$(NAME).{pdf,sty,lua,el}} rm $(NAME) + package: distclean all mkdir $(NAME)/ cp README *.dtx *.pdf $(NAME)/ -- cgit v1.2.3