diff options
author | Karl Berry <karl@freefriends.org> | 2013-03-11 23:31:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-03-11 23:31:14 +0000 |
commit | 6dbb8dfbb59d7e98e7addb0feae7ff9306c49b0e (patch) | |
tree | c932e8a7b7f6af17c8f9ad2ff67214b61fb17398 /Master/texmf-dist/source/latex/poetrytex/Makefile | |
parent | 240300000e086212731e8d3698d2503a69179681 (diff) |
poetrytex (10mar13)
git-svn-id: svn://tug.org/texlive/trunk@29347 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/poetrytex/Makefile')
-rw-r--r-- | Master/texmf-dist/source/latex/poetrytex/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
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 |