From 6dbb8dfbb59d7e98e7addb0feae7ff9306c49b0e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 11 Mar 2013 23:31:14 +0000 Subject: poetrytex (10mar13) git-svn-id: svn://tug.org/texlive/trunk@29347 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/poetrytex/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/source/latex/poetrytex/Makefile') diff --git a/Master/texmf-dist/source/latex/poetrytex/Makefile b/Master/texmf-dist/source/latex/poetrytex/Makefile index 6f406545723..01a07c9d065 100644 --- a/Master/texmf-dist/source/latex/poetrytex/Makefile +++ b/Master/texmf-dist/source/latex/poetrytex/Makefile @@ -20,6 +20,7 @@ help: @echo ' all - unpack & doc' @echo ' world - all & ctan' @echo ' clean - remove all generated and built files' + @echo ' preview - preview the documentation' @echo ' ' @echo ' install - install the complete package into your home texmf tree' @echo ' sty-install - install the package code only' @@ -82,6 +83,10 @@ gendoc: $(DTX) grep -q "Rerun to get" $(NAME).log ) do true; \ done +COMMAND = command -v $(1) >/dev/null 2>&1 +preview: $(DOC) + ($(COMMAND) evince && evince $(NAME).pdf) || ($(COMMAND) open && open $(NAME).pdf) + $(DOC): $(DTX) @echo "Compiling documentation" $(DO_LATEX) @@ -95,13 +100,13 @@ $(DOC): $(DTX) $(UNPACKED): $(DTX) @$(DO_TEX) -$(CTAN_ZIP): $(CTAN_FILES) $(TDS_ZIP) +$(CTAN_ZIP): $(CTAN_FILES) @echo "Making $@ for CTAN upload." @$(RM) -- $@ @mkdir -p $(NAME)/ @cp $^ $(NAME)/ - @rm $(NAME)/*.zip - @zip -9 $@ $(NAME)/* $(NAME).tds.zip >/dev/null + @rm -f $(NAME)/*.zip + @zip -9 $@ $(NAME)/* >/dev/null @rm -rf $(NAME)/ define run-install -- cgit v1.2.3