From 7c4512e5282f3476ad3a8569f61b351da9fd745b Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Fri, 10 Apr 2020 14:26:43 +0200 Subject: added .el style file for emacs (wip) --- Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e4e89a2..34e846c 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ 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) +HOMEDIR := $$HOME all: $(NAME).pdf test -e README.txt && mv README.txt README || exit 0 $(NAME).pdf: $(NAME).dtx @@ -14,23 +15,29 @@ $(NAME).pdf: $(NAME).dtx $(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 -rf _minted-* rm -f $(NAME).{pdf,sty,lua} README* rm -f *.zip *.tar.gz uninst: rm -rf $(UTREE)/{tex,source,doc}/lualatex/$(NAME) -inst: uninst all + 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 +local: uninst auctex $(CMP) $(NAME).ins mkdir -p $(UTREE)/{tex,source,doc}/lualatex/$(NAME) cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME) @@ -42,7 +49,7 @@ local: uninst # 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}} + zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME)/{README,$(NAME).{pdf,sty,lua,el}} rm $(NAME) package: distclean all mkdir $(NAME)/ @@ -50,7 +57,7 @@ package: distclean all mkdir -p tex/lualatex/$(NAME)/ cp *.lua *.sty tex/lualatex/$(NAME)/ mkdir -p doc/lualatex/$(NAME)/ - cp *.pdf doc/lualatex/$(NAME)/ + cp *.el *.pdf doc/lualatex/$(NAME)/ mkdir -p source/lualatex/$(NAME)/ cp Makefile *.dtx source/lualatex/$(NAME)/ zip -r $(NAME).tds.zip tex doc source -- cgit v1.2.3