From 022d0fd2c526bd55b0a42510315c5a49dc5f07ac Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Thu, 6 Apr 2017 10:54:05 +0200 Subject: adapted makefile; all sample files are to be public domain --- makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 1233202..00ef7a0 100644 --- a/makefile +++ b/makefile @@ -11,8 +11,7 @@ doc: clean sty makeindex -s gglo.ist -o $(pkg).gls $(pkg).glo lualatex $(pkg).dtx lualatex $(pkg).dtx - echo "now building the sample documents..." - latexmk -lualatex -e '$$lualatex=q/lualatex %O --shell-escape %S/' -outdir=TMP samples/al-Jahiz + latexmk -outdir=TMP -lualatex -e '$$lualatex=q/lualatex %O --shell-escape %S/' samples/al-Jahiz mv TMP/*.pdf samples/ all: clean sty doc @@ -34,8 +33,9 @@ auctex: clean cp $(pkg)*.el ~/.emacs.d/auctex/auto package: clean all - mkdir arabluatex + mkdir -p arabluatex/samples/ cp *.lua *.ins *.dtx *.md *.pdf arabluatex/ # .bib is in dtx + cp samples/*.{tex,pdf} arabluatex/samples/ mkdir -p tex/lualatex/arabluatex/ cp *.lua *.sty tex/lualatex/arabluatex/ mkdir -p doc/lualatex/arabluatex/samples @@ -49,10 +49,10 @@ package: clean all clean: rm -rf ~/texmf/tex/lualatex/arabluatex/ rm -rf ~/.emacs.d/auctex/auto/arabluatex*.el - rm -rf tex/ doc/ source/ auto/ _minted*/ + rm -rf tex/ doc/ source/ auto/ rm -rf arabluatex/ rm -rf saved/ TMP/ - find ./samples/ -type f | grep -v ".*tex$$" | xargs /usr/bin/rm -f + find ./samples/ | grep -v samples | grep -v ".*tex$$" | xargs rm -rf mkdir saved cp *.{lua,ins,dtx,tex,el} makefile saved # .bib is in dtx rm *.* -- cgit v1.2.3