From b379947edcabe84397a58e68744da0eb275c4765 Mon Sep 17 00:00:00 2001 From: Michael Kohlhase Date: Fri, 20 Nov 2015 11:52:06 +0100 Subject: [PATCH] draining just to be sure for CTAN distribution --- Makefile | 27 +++++++++++++++++++++++---- lib/Makefile.ctan | 4 ---- lib/Makefile.in | 1 - 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 5a10b84..8371249 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,32 @@ -SRCDIRS = -DOCDIRS = eu/examples dfg/examples -DTXDIRS = base dfg eu +######################################################################## +# This Makefile automates maintenance and CTAN submission of complex +# LaTeX packages. +######################################################################## + MAKEDIRS = $(DTXDIRS) TDSCOLL ?= $(shell basename $$PWD) DISTDIRS = $(DTXDIRS) + +# targets for repository maintenance all clean distclean: @for d in $(MAKEDIRS); do (cd $$d && $(MAKE) -$(MAKEFLAGS) $@) done +package doc: + @for d in $(DTXDIRS); do (cd $$d && $(MAKE) -$(MAKEFLAGS) $@) done -package doc filedate checksum enablechecksum disablechecksum: +######################################################################## +# CTAN submission +######################################################################## +# Directories that should be copied into top-level directories +# - source (the *.dtx and *.ins files), +# - doc (package/class documentation), and +# - tex (*.sty and *.cls, etc that LaTeX reads) +# of the CTAN and TDS submissions +SRCDIRS = +DOCDIRS = #eu/examples dfg/examples +DTXDIRS = base dfg eu + +# targets for CTAN. +filedate checksum enablechecksum disablechecksum: @for d in $(DTXDIRS); do (cd $$d && $(MAKE) -$(MAKEFLAGS) $@) done GITURI = git@github.com:KWARC/LaTeX-proposal.git diff --git a/lib/Makefile.ctan b/lib/Makefile.ctan index 82bf837..3a670c1 100644 --- a/lib/Makefile.ctan +++ b/lib/Makefile.ctan @@ -63,13 +63,9 @@ tdsext: @echo " enabling checksums" # $(MAKE) -$(MAKEFLAGS) enablechecksum ******* @echo " copying over stuff to $(TDSDIR)" - @echo " ... from $(DTXDIRS)" @for d in $(DTXDIRS); do (cd $$d && $(MAKE) -$(MAKEFLAGS) ltds) done - @echo " ... and $(SRCDIRS)" @for d in $(SRCDIRS); do (cp -R $$d $(TDSDIR)/source/latex/$(TDSCOLL)) done; - @echo " ... and $(DOCDIRS)" @for d in $(DOCDIRS); do (cp -R $$d $(TDSDIR)/doc/latex/$(TDSCOLL)) done; - @echo " ... and finally $(TDS.doc)" cp $(TDS.doc) $(TDSDIR)/doc/latex/$(TDSCOLL) @echo "zipping the result to $(TDSCOLL).tds.zip" cd $(TDSDIR); zip -r -q $(TDSZIP) .; cd - diff --git a/lib/Makefile.in b/lib/Makefile.in index 7e26f9b..e530bcf 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -1,7 +1,6 @@ all: package doc package: $(DTX.sty) $(DTX.cls) - doc: $(DTX.pdf) $(EXAMPLE.pdf) $(EXAMPLE.pdf): %.pdf: %.tex $(DTX.sty) $(DTX.cls) $(IMG) $(EXAMPLE.deps)