summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/poetrytex/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/poetrytex/Makefile')
-rw-r--r--Master/texmf-dist/source/latex/poetrytex/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/poetrytex/Makefile b/Master/texmf-dist/source/latex/poetrytex/Makefile
index 57b2ebeabf6..9731417220c 100644
--- a/Master/texmf-dist/source/latex/poetrytex/Makefile
+++ b/Master/texmf-dist/source/latex/poetrytex/Makefile
@@ -36,7 +36,7 @@ REDIRECT = > /dev/null
# Files grouped by generation mode
COMPILED = $(DOC)
UNPACKED = poetrytex.sty
-SOURCE = $(DTX) Makefile README.md
+SOURCE = $(DTX) Makefile README
GENERATED = $(COMPILED) $(UNPACKED)
CTAN_FILES = $(SOURCE) $(COMPILED)
@@ -44,7 +44,7 @@ CTAN_FILES = $(SOURCE) $(COMPILED)
UNPACKED_DOC =
RUNFILES = $(filter-out $(UNPACKED_DOC), $(UNPACKED))
-DOCFILES = $(COMPILED) README.md $(UNPACKED_DOC)
+DOCFILES = $(COMPILED) README $(UNPACKED_DOC)
SRCFILES = $(DTX) Makefile
ALL_FILES = $(RUNFILES) $(DOCFILES) $(SRCFILES)
@@ -98,7 +98,11 @@ $(UNPACKED): $(DTX)
$(CTAN_ZIP): $(CTAN_FILES) $(TDS_ZIP)
@echo "Making $@ for CTAN upload."
@$(RM) -- $@
- @zip -9 $@ $^ >/dev/null
+ @mkdir -p $(NAME)/
+ @cp $^ $(NAME)/
+ @rm $(NAME)/*.zip
+ @zip -9 $@ $(NAME)/* $(NAME).tds.zip >/dev/null
+ @rm -rf $(NAME)/
define run-install
@mkdir -p $(RUNDIR) && cp $(RUNFILES) $(RUNDIR)
@@ -148,7 +152,7 @@ manifest:
@for f in $(GENERATED); do echo $$f; done
clean:
- @$(RM) -- *.log *.aux *.toc *.idx *.ind *.ilg *.glo *.gls *.example *.out *.synctex* *.tmp poetrytex-style.sty *.ins poetrytex*.pdf poetrytex*.dvi
+ @$(RM) -- *.log *.aux *.toc *.idx *.ind *.ilg *.glo *.gls *.example *.out *.synctex* *.tmp poetrytex-style.sty *.ins poetrytex*.pdf poetrytex*.dvi README *.lot
@$(RM) -- $(GENERATED) $(ZIPS)
@$(RM) -- $(builddir)/*